Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
API docs
zadamfaa402fcdae9
diff --git a/docs/backend_api/AbstractBeccaEntity.html b/docs/backend_api/AbstractBeccaEntity.htmlindex 328d08f0c2..117d2d80b1 100644--- a/docs/backend_api/AbstractBeccaEntity.html+++ b/docs/backend_api/AbstractBeccaEntity.html@@ -93,7 +93,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line16">line 16</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a></li></ul></dd>@@ -183,7 +183,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -205,6 +205,195 @@<h3 class="subsection-title">Methods</h3>+++++++ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|++<span class="param-type">Buffer</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -259,7 +448,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a></li></ul></dd>@@ -343,7 +532,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a></li></ul></dd>@@ -427,7 +616,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -511,7 +700,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -595,7 +784,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -679,7 +868,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -725,7 +914,7 @@<div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -833,7 +1022,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -921,7 +1110,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a></li></ul></dd>@@ -985,7 +1174,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BAttribute.html b/docs/backend_api/BAttribute.htmlindex 29eb98f903..8c693765f6 100644--- a/docs/backend_api/BAttribute.html+++ b/docs/backend_api/BAttribute.html@@ -268,7 +268,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -490,7 +490,7 @@ and relation (representing named relationship between source and target note)</d-<h4 class="name" id="position"><span class="type-signature"></span>position<span class="type-signature"> :int</span></h4>+<h4 class="name" id="position"><span class="type-signature"></span>position<span class="type-signature"> :integer</span></h4>@@ -501,7 +501,7 @@ and relation (representing named relationship between source and target note)</d<ul><li>-<span class="param-type">int</span>+<span class="param-type">integer</span></li>@@ -766,6 +766,205 @@ and relation (representing named relationship between source and target note)</d<h3 class="subsection-title">Methods</h3>+++++++ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|++<span class="param-type">Buffer</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -825,7 +1024,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a></li></ul></dd>@@ -914,7 +1113,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a></li></ul></dd>@@ -1003,7 +1202,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -1092,7 +1291,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -1286,7 +1485,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -1480,7 +1679,7 @@ and relation (representing named relationship between source and target note)</d<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -1628,7 +1827,7 @@ and relation (representing named relationship between source and target note)</d<div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -1741,7 +1940,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -1834,7 +2033,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a></li></ul></dd>@@ -1898,7 +2097,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BBranch.html b/docs/backend_api/BBranch.htmlindex f75738ee7f..b1aca3effe 100644--- a/docs/backend_api/BBranch.html+++ b/docs/backend_api/BBranch.html@@ -203,7 +203,7 @@ Always check noteId instead.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -463,7 +463,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line133">line 133</a>+ <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line134">line 134</a></li></ul></dd>@@ -549,7 +549,7 @@ of deletion should not act as a clone.-<h4 class="name" id="notePosition"><span class="type-signature"></span>notePosition<span class="type-signature"> :int</span></h4>+<h4 class="name" id="notePosition"><span class="type-signature"></span>notePosition<span class="type-signature"> :integer</span></h4>@@ -560,7 +560,7 @@ of deletion should not act as a clone.<ul><li>-<span class="param-type">int</span>+<span class="param-type">integer</span></li>@@ -657,7 +657,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line111">line 111</a>+ <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line112">line 112</a></li></ul></dd>@@ -886,6 +886,205 @@ of deletion should not act as a clone.<h3 class="subsection-title">Methods</h3>+++++++ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|++<span class="param-type">Buffer</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -945,7 +1144,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a></li></ul></dd>@@ -1034,7 +1233,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a></li></ul></dd>@@ -1216,7 +1415,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line145">line 145</a>+ <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line146">line 146</a></li></ul></dd>@@ -1327,7 +1526,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -1416,7 +1615,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -1446,6 +1645,108 @@ of deletion should not act as a clone.+++++++ <h4 class="name" id="getNote"><span class="type-signature"></span>getNote<span class="signature">()</span><span class="type-signature"> → {<a href="BNote.html">BNote</a>}</span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bbranch.js.html">becca/entities/bbranch.js</a>, <a href="becca_entities_bbranch.js.html#line107">line 107</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BNote.html">BNote</a></span>+++ </dd>+</dl>+++++++@@ -1505,7 +1806,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -1594,7 +1895,7 @@ of deletion should not act as a clone.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -1640,7 +1941,7 @@ of deletion should not act as a clone.<div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -1753,7 +2054,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -1846,7 +2147,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a></li></ul></dd>@@ -1910,7 +2211,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BEtapiToken.html b/docs/backend_api/BEtapiToken.htmlindex 2c6eb82187..b48f600da6 100644--- a/docs/backend_api/BEtapiToken.html+++ b/docs/backend_api/BEtapiToken.html@@ -205,7 +205,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -635,6 +635,205 @@ from tokenHash and token.</div><h3 class="subsection-title">Methods</h3>+++++++ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|++<span class="param-type">Buffer</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -694,7 +893,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a></li></ul></dd>@@ -783,7 +982,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a></li></ul></dd>@@ -872,7 +1071,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -961,7 +1160,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -1050,7 +1249,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -1139,7 +1338,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -1185,7 +1384,7 @@ from tokenHash and token.</div><div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -1298,7 +1497,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -1391,7 +1590,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a></li></ul></dd>@@ -1455,7 +1654,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BNote.html b/docs/backend_api/BNote.htmlindex b1d3e2b608..5ed76f456c 100644--- a/docs/backend_api/BNote.html+++ b/docs/backend_api/BNote.html@@ -154,6 +154,77 @@+<h4 class="name" id="__flatTextCache"><span class="type-signature"></span>__flatTextCache<span class="type-signature"> :string|null</span></h4>+++++++ <h5>Type:</h5>+ <ul>+ <li>++<span class="param-type">string</span>+|++<span class="param-type">null</span>+++ </li>+ </ul>++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line90">line 90</a>+ </li></ul></dd>++++++++</dl>++++++++<h4 class="name" id="becca"><span class="type-signature">(protected) </span>becca<span class="type-signature"></span></h4>@@ -199,7 +270,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -217,7 +288,7 @@-<h4 class="name" id="dateCreated"><span class="type-signature"></span>dateCreated<span class="type-signature"> :string</span></h4>+<h4 class="name" id="blobId"><span class="type-signature"></span>blobId<span class="type-signature"> :string</span></h4>@@ -267,7 +338,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line69">line 69</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line70">line 70</a></li></ul></dd>@@ -285,7 +356,7 @@-<h4 class="name" id="dateModified"><span class="type-signature"></span>dateModified<span class="type-signature"> :string</span></h4>+<h4 class="name" id="dateCreated"><span class="type-signature"></span>dateCreated<span class="type-signature"> :string</span></h4>@@ -335,7 +406,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line71">line 71</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line72">line 72</a></li></ul></dd>@@ -353,7 +424,7 @@-<h4 class="name" id="flatTextCache"><span class="type-signature"></span>flatTextCache<span class="type-signature"> :string|null</span></h4>+<h4 class="name" id="dateModified"><span class="type-signature"></span>dateModified<span class="type-signature"> :string</span></h4>@@ -365,9 +436,6 @@<li><span class="param-type">string</span>-|--<span class="param-type">null</span></li>@@ -406,7 +474,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line87">line 87</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line74">line 74</a></li></ul></dd>@@ -478,7 +546,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line77">line 77</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line80">line 80</a></li></ul></dd>@@ -546,7 +614,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line82">line 82</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line85">line 85</a></li></ul></dd>@@ -614,7 +682,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line63">line 63</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line68">line 68</a></li></ul></dd>@@ -682,7 +750,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line67">line 67</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line66">line 66</a></li></ul></dd>@@ -750,7 +818,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line59">line 59</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line60">line 60</a></li></ul></dd>@@ -818,7 +886,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line61">line 61</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line62">line 62</a></li></ul></dd>@@ -886,7 +954,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line65">line 65</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line64">line 64</a></li></ul></dd>@@ -954,7 +1022,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line73">line 73</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line76">line 76</a></li></ul></dd>@@ -1022,7 +1090,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line75">line 75</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line78">line 78</a></li></ul></dd>@@ -1050,17 +1118,13 @@- <h4 class="name" id="addAttribute"><span class="type-signature"></span>addAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>, isInheritable<span class="signature-attributes">opt</span>, position<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>+ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>-<div class="description">- Adds a new attribute to this note. The attribute is saved and returned.-See addLabel, addRelation for more specific methods.-</div>@@ -1070,192 +1134,980 @@ See addLabel, addRelation for more specific methods.- <h5>Parameters:</h5>--<table class="params">- <thead>- <tr>-- <th>Name</th>-- <th>Type</th>-- <th>Attributes</th>-+<dl class="details">-- <th>Default</th>-+- <th class="last">Description</th>- </tr>- </thead>+- <tbody>- <tr>-- <td class="name"><code>type</code></td>-++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>+ </li></ul></dd>+- <td class="type">---<span class="param-type">string</span>++-- </td>+-- <td class="attributes">-+-+-- </td>-+-- <td class="default">-- </td>-+- <td class="description last">attribute type (label / relation)</td>- </tr>++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>+- <tr>-- <td class="name"><code>name</code></td>-+- <td class="type">---<span class="param-type">string</span>+++</dl>-- </td>-- <td class="attributes">---- </td>--- <td class="default">-- </td>-- <td class="description last">name of the attribute, not including the leading ~/#</td>- </tr>-- <tr>-- <td class="name"><code>value</code></td>-- <td class="type">---<span class="param-type">string</span>-- </td>-- <td class="attributes">-- <optional><br>---- </td>--- <td class="default">-- </td>-+<h5>Returns:</h5>- <td class="description last">value of the attribute - text for labels, target note ID for relations; optional.</td>- </tr>+-- <tr>-- <td class="name"><code>isInheritable</code></td>-+<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|- <td class="type">---<span class="param-type">boolean</span>+<span class="param-type">Buffer</span>-- </td>+ </dd>+</dl>-- <td class="attributes">-- <optional><br>-+--- </td>--- <td class="default">-- false-- </td>+++- <td class="description last"></td>- </tr>++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+- <tr>-- <td class="name"><code>position</code></td>-+- <td class="type">---<span class="param-type">int</span>-- </td>+++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="addAttribute"><span class="type-signature"></span>addAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>, isInheritable<span class="signature-attributes">opt</span>, position<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>+++++++<div class="description">+ Adds a new attribute to this note. The attribute is saved and returned.+See addLabel, addRelation for more specific methods.+</div>++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>+++ <th>Attributes</th>++++ <th>Default</th>+++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>type</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last">attribute type (label / relation)</td>+ </tr>++++ <tr>++ <td class="name"><code>name</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last">name of the attribute, not including the leading ~/#</td>+ </tr>++++ <tr>++ <td class="name"><code>value</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last">value of the attribute - text for labels, target note ID for relations; optional.</td>+ </tr>++++ <tr>++ <td class="name"><code>isInheritable</code></td>+++ <td class="type">+++<span class="param-type">boolean</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>++++ <td class="default">++ false++ </td>+++ <td class="description last"></td>+ </tr>++++ <tr>++ <td class="name"><code>position</code></td>+++ <td class="type">+++<span class="param-type">int</span>+|++<span class="param-type">null</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>++++ <td class="default">++ null++ </td>+++ <td class="description last"></td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1302">line 1302</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BAttribute.html">BAttribute</a></span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="addEntityChange"><span class="type-signature">(protected) </span>addEntityChange<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#addEntityChange">AbstractBeccaEntity#addEntityChange</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="addLabel"><span class="type-signature"></span>addLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>, isInheritable<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>+++++++<div class="description">+ Adds a new label to this note. The label attribute is saved and returned.+</div>++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>+++ <th>Attributes</th>++++ <th>Default</th>+++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>name</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last">name of the label, not including the leading #</td>+ </tr>++++ <tr>++ <td class="name"><code>value</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last">text value of the label; optional</td>+ </tr>++++ <tr>++ <td class="name"><code>isInheritable</code></td>+++ <td class="type">+++<span class="param-type">boolean</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>++++ <td class="default">++ false++ </td>+++ <td class="description last"></td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1323">line 1323</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BAttribute.html">BAttribute</a></span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="addRelation"><span class="type-signature"></span>addRelation<span class="signature">(name, targetNoteId, isInheritable<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>+++++++<div class="description">+ Adds a new relation to this note. The relation attribute is saved and+returned.+</div>++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>+++ <th>Attributes</th>++++ <th>Default</th>+++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>name</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last">name of the relation, not including the leading ~</td>+ </tr>++++ <tr>++ <td class="name"><code>targetNoteId</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>++++ <td class="default">++ </td>+++ <td class="description last"></td>+ </tr>++++ <tr>++ <td class="name"><code>isInheritable</code></td>+++ <td class="type">+++<span class="param-type">boolean</span>++++ </td><td class="attributes">@@ -1263,18 +2115,253 @@ See addLabel, addRelation for more specific methods.<optional><br>-++++ </td>++++ <td class="default">++ false++ </td>+++ <td class="description last"></td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1336">line 1336</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BAttribute.html">BAttribute</a></span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="beforeSaving"><span class="type-signature">(protected) </span>beforeSaving<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#beforeSaving">AbstractBeccaEntity#beforeSaving</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="cloneTo"><span class="type-signature"></span>cloneTo<span class="signature">(parentNoteId)</span><span class="type-signature"> → {Object}</span></h4>+++++++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>++-- </td>+++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>parentNoteId</code></td>+ <td class="type">- <td class="default">-- 1000-- </td>+ </td>+++<td class="description last"></td>@@ -1318,7 +2405,7 @@ See addLabel, addRelation for more specific methods.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1334">line 1334</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1421">line 1421</a></li></ul></dd>@@ -1354,7 +2441,7 @@ See addLabel, addRelation for more specific methods.</dt><dd>-<span class="param-type"><a href="BAttribute.html">BAttribute</a></span>+<span class="param-type">Object</span></dd>@@ -1372,13 +2459,27 @@ See addLabel, addRelation for more specific methods.- <h4 class="name" id="addEntityChange"><span class="type-signature">(protected) </span>addEntityChange<span class="signature">()</span><span class="type-signature"></span></h4>+ <h4 class="name" id="convertToParentAttachment"><span class="type-signature"></span>convertToParentAttachment<span class="signature">()</span><span class="type-signature"> → {<a href="BAttachment.html">BAttachment</a>|null}</span></h4>+<div class="description">+ Some notes are eligible for conversion into an attachment of its parent, note must have these properties:+- it has exactly one target relation+- it has a relation from its parent note+- it has no children+- it has no clones+- parent is of type text+- both notes are either unprotected or user is in protected session++Currently, works only for image notes.++In future this functionality might get more generic and some of the requirements relaxed.+</div>+@@ -1400,11 +2501,6 @@ See addLabel, addRelation for more specific methods.- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#addEntityChange">AbstractBeccaEntity#addEntityChange</a>- </li></ul></dd>-@@ -1425,7 +2521,7 @@ See addLabel, addRelation for more specific methods.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1471">line 1471</a></li></ul></dd>@@ -1450,6 +2546,31 @@ See addLabel, addRelation for more specific methods.+<h5>Returns:</h5>+++<div class="param-desc">+ - null if note is not eligible for conversion+</div>++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BAttachment.html">BAttachment</a></span>+|++<span class="param-type">null</span>+++ </dd>+</dl>++@@ -1461,7 +2582,7 @@ See addLabel, addRelation for more specific methods.- <h4 class="name" id="addLabel"><span class="type-signature"></span>addLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>, isInheritable<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>+ <h4 class="name" id="deleteNote"><span class="type-signature"></span>deleteNote<span class="signature">(deleteId<span class="signature-attributes">opt</span>, taskContext<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>@@ -1469,7 +2590,7 @@ See addLabel, addRelation for more specific methods.<div class="description">- Adds a new label to this note. The label attribute is saved and returned.+ (Soft) delete a note and all its descendants.</div>@@ -1509,42 +2630,7 @@ See addLabel, addRelation for more specific methods.<tr>- <td class="name"><code>name</code></td>--- <td class="type">---<span class="param-type">string</span>---- </td>--- <td class="attributes">------ </td>---- <td class="default">-- </td>--- <td class="description last">name of the label, not including the leading #</td>- </tr>---- <tr>-- <td class="name"><code>value</code></td>+ <td class="name"><code>deleteId</code></td><td class="type">@@ -1571,23 +2657,25 @@ See addLabel, addRelation for more specific methods.<td class="default">+ null+</td>- <td class="description last">text value of the label; optional</td>+ <td class="description last">optional delete identified</td></tr><tr>- <td class="name"><code>isInheritable</code></td>+ <td class="name"><code>taskContext</code></td><td class="type">-<span class="param-type">boolean</span>+<span class="param-type">TaskContext</span>@@ -1608,7 +2696,7 @@ See addLabel, addRelation for more specific methods.<td class="default">- false+ null</td>@@ -1654,7 +2742,7 @@ See addLabel, addRelation for more specific methods.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1355">line 1355</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1506">line 1506</a></li></ul></dd>@@ -1679,24 +2767,6 @@ See addLabel, addRelation for more specific methods.-<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type"><a href="BAttribute.html">BAttribute</a></span>--- </dd>-</dl>--@@ -1708,163 +2778,19 @@ See addLabel, addRelation for more specific methods.- <h4 class="name" id="addRelation"><span class="type-signature"></span>addRelation<span class="signature">(name, targetNoteId, isInheritable<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>-------<div class="description">- Adds a new relation to this note. The relation attribute is saved and-returned.-</div>---------- <h5>Parameters:</h5>---<table class="params">- <thead>- <tr>-- <th>Name</th>--- <th>Type</th>--- <th>Attributes</th>---- <th>Default</th>--- <th class="last">Description</th>- </tr>- </thead>-- <tbody>--- <tr>-- <td class="name"><code>name</code></td>--- <td class="type">---<span class="param-type">string</span>---- </td>--- <td class="attributes">------ </td>---- <td class="default">-- </td>--- <td class="description last">name of the relation, not including the leading ~</td>- </tr>-+ <h4 class="name" id="generateHash"><span class="type-signature">(protected) </span>generateHash<span class="signature">()</span><span class="type-signature"></span></h4>- <tr>-- <td class="name"><code>targetNoteId</code></td>--- <td class="type">---<span class="param-type">string</span>---- </td>--- <td class="attributes">------ </td>---- <td class="default">-- </td>--- <td class="description last"></td>- </tr>-- <tr>-- <td class="name"><code>isInheritable</code></td>--- <td class="type">---<span class="param-type">boolean</span>-- </td>-- <td class="attributes">-- <optional><br>---- </td>--- <td class="default">-- false-- </td>-- <td class="description last"></td>- </tr>-- </tbody>-</table>@@ -1880,6 +2806,11 @@ returned.+ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#generateHash">AbstractBeccaEntity#generateHash</a>+ </li></ul></dd>+@@ -1900,7 +2831,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1368">line 1368</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -1925,24 +2856,6 @@ returned.-<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type"><a href="BAttribute.html">BAttribute</a></span>--- </dd>-</dl>--@@ -1954,7 +2867,7 @@ returned.- <h4 class="name" id="beforeSaving"><span class="type-signature">(protected) </span>beforeSaving<span class="signature">()</span><span class="type-signature"></span></h4>+ <h4 class="name" id="generateIdIfNecessary"><span class="type-signature">(protected) </span>generateIdIfNecessary<span class="signature">()</span><span class="type-signature"></span></h4>@@ -1984,7 +2897,7 @@ returned.<dt class="tag-overrides">Overrides:</dt><dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#beforeSaving">AbstractBeccaEntity#beforeSaving</a>+ <a href="AbstractBeccaEntity.html#generateIdIfNecessary">AbstractBeccaEntity#generateIdIfNecessary</a></li></ul></dd>@@ -2007,7 +2920,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -2043,63 +2956,23 @@ returned.- <h4 class="name" id="cloneTo"><span class="type-signature"></span>cloneTo<span class="signature">(parentNoteId)</span><span class="type-signature"> → {Object}</span></h4>--+ <h4 class="name" id="getAllNotePaths"><span class="type-signature"></span>getAllNotePaths<span class="signature">()</span><span class="type-signature"> → {Array.<Array.<string>>}</span></h4>----------- <h5>Parameters:</h5>-<table class="params">- <thead>- <tr>-- <th>Name</th>--- <th>Type</th>---- <th class="last">Description</th>- </tr>- </thead>+<div class="description">+ Gives all possible note paths leading to this note. Paths containing search note are ignored (could form cycles)+</div>- <tbody>-- <tr>-- <td class="name"><code>parentNoteId</code></td>-- <td class="type">-- </td>--- <td class="description last"></td>- </tr>-- </tbody>-</table>@@ -2135,7 +3008,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1453">line 1453</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1143">line 1143</a></li></ul></dd>@@ -2163,6 +3036,10 @@ returned.<h5>Returns:</h5>+<div class="param-desc">+ - array of notePaths (each represented by array of noteIds constituting the particular note path)+</div>+<dl>@@ -2171,7 +3048,7 @@ returned.</dt><dd>-<span class="param-type">Object</span>+<span class="param-type">Array.<Array.<string>></span></dd>@@ -2189,117 +3066,19 @@ returned.- <h4 class="name" id="deleteNote"><span class="type-signature"></span>deleteNote<span class="signature">(deleteId<span class="signature-attributes">opt</span>, taskContext<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>-------<div class="description">- (Soft) delete a note and all its descendants.-</div>---------- <h5>Parameters:</h5>---<table class="params">- <thead>- <tr>-- <th>Name</th>--- <th>Type</th>--- <th>Attributes</th>----- <th class="last">Description</th>- </tr>- </thead>-- <tbody>+ <h4 class="name" id="getAncestorNoteIds"><span class="type-signature"></span>getAncestorNoteIds<span class="signature">()</span><span class="type-signature"> → {Array.<string>}</span></h4>- <tr>-- <td class="name"><code>deleteId</code></td>--- <td class="type">---<span class="param-type">string</span>---- </td>--- <td class="attributes">-- <optional><br>------ </td>----- <td class="description last">optional delete identified</td>- </tr>-- <tr>-- <td class="name"><code>taskContext</code></td>--- <td class="type">---<span class="param-type">TaskContext</span>-- </td>-- <td class="attributes">-- <optional><br>---- </td>--- <td class="description last"></td>- </tr>-- </tbody>-</table>@@ -2335,7 +3114,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1467">line 1467</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1031">line 1031</a></li></ul></dd>@@ -2360,6 +3139,24 @@ returned.+<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Array.<string></span>+++ </dd>+</dl>++@@ -2371,7 +3168,7 @@ returned.- <h4 class="name" id="generateHash"><span class="type-signature">(protected) </span>generateHash<span class="signature">()</span><span class="type-signature"></span></h4>+ <h4 class="name" id="getAncestors"><span class="type-signature"></span>getAncestors<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BNote.html">BNote</a>>}</span></h4>@@ -2399,11 +3196,6 @@ returned.- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#generateHash">AbstractBeccaEntity#generateHash</a>- </li></ul></dd>-@@ -2424,7 +3216,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1005">line 1005</a></li></ul></dd>@@ -2449,6 +3241,24 @@ returned.+<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Array.<<a href="BNote.html">BNote</a>></span>+++ </dd>+</dl>++@@ -2460,7 +3270,7 @@ returned.- <h4 class="name" id="generateIdIfNecessary"><span class="type-signature">(protected) </span>generateIdIfNecessary<span class="signature">()</span><span class="type-signature"></span></h4>+ <h4 class="name" id="getAttachmentById"><span class="type-signature"></span>getAttachmentById<span class="signature">()</span><span class="type-signature"> → {<a href="BAttachment.html">BAttachment</a>|null}</span></h4>@@ -2488,11 +3298,6 @@ returned.- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#generateIdIfNecessary">AbstractBeccaEntity#generateIdIfNecessary</a>- </li></ul></dd>-@@ -2513,7 +3318,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1112">line 1112</a></li></ul></dd>@@ -2538,6 +3343,27 @@ returned.+<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BAttachment.html">BAttachment</a></span>+|++<span class="param-type">null</span>+++ </dd>+</dl>++@@ -2549,17 +3375,13 @@ returned.- <h4 class="name" id="getAllNotePaths"><span class="type-signature"></span>getAllNotePaths<span class="signature">()</span><span class="type-signature"> → {Array.<Array.<string>>}</span></h4>+ <h4 class="name" id="getAttachmentByRole"><span class="type-signature"></span>getAttachmentByRole<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BAttachment.html">BAttachment</a>>}</span></h4>-<div class="description">- Gives all possible note paths leading to this note. Paths containing search note are ignored (could form cycles)-</div>-@@ -2601,7 +3423,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1172">line 1172</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1127">line 1127</a></li></ul></dd>@@ -2629,10 +3451,6 @@ returned.<h5>Returns:</h5>-<div class="param-desc">- - array of notePaths (each represented by array of noteIds constituting the particular note path)-</div>-<dl>@@ -2641,7 +3459,7 @@ returned.</dt><dd>-<span class="param-type">Array.<Array.<string>></span>+<span class="param-type">Array.<<a href="BAttachment.html">BAttachment</a>></span></dd>@@ -2659,7 +3477,7 @@ returned.- <h4 class="name" id="getAncestors"><span class="type-signature"></span>getAncestors<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BNote.html">BNote</a>>}</span></h4>+ <h4 class="name" id="getAttachments"><span class="type-signature"></span>getAttachments<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BAttachment.html">BAttachment</a>>}</span></h4>@@ -2707,7 +3525,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1085">line 1085</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1094">line 1094</a></li></ul></dd>@@ -2743,7 +3561,7 @@ returned.</dt><dd>-<span class="param-type">Array.<<a href="BNote.html">BNote</a>></span>+<span class="param-type">Array.<<a href="BAttachment.html">BAttachment</a>></span></dd>@@ -2881,7 +3699,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line633">line 633</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line571">line 571</a></li></ul></dd>@@ -3059,7 +3877,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line644">line 644</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line582">line 582</a></li></ul></dd>@@ -3262,7 +4080,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line386">line 386</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line324">line 324</a></li></ul></dd>@@ -3441,7 +4259,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1228">line 1228</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1196">line 1196</a></li></ul></dd>@@ -3620,7 +4438,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1238">line 1238</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1206">line 1206</a></li></ul></dd>@@ -3728,7 +4546,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line173">line 173</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line176">line 176</a></li></ul></dd>@@ -3830,7 +4648,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line193">line 193</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line196">line 196</a></li></ul></dd>@@ -3932,7 +4750,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line183">line 183</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line186">line 186</a></li></ul></dd>@@ -3986,7 +4804,7 @@ returned.- <h4 class="name" id="getContent"><span class="type-signature"></span>getContent<span class="signature">()</span><span class="type-signature"> → {*}</span></h4>+ <h4 class="name" id="getContent"><span class="type-signature"></span>getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>@@ -4034,7 +4852,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line207">line 207</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line210">line 210</a></li></ul></dd>@@ -4070,7 +4888,10 @@ returned.</dt><dd>-<span class="param-type">*</span>+<span class="param-type">string</span>+|++<span class="param-type">Buffer</span></dd>@@ -4136,7 +4957,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line241">line 241</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line215">line 215</a></li></ul></dd>@@ -4240,7 +5061,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1032">line 1032</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line952">line 952</a></li></ul></dd>@@ -4330,7 +5151,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line815">line 815</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line753">line 753</a></li></ul></dd>@@ -4436,7 +5257,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1131">line 1131</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1057">line 1057</a></li></ul></dd>@@ -4543,7 +5364,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line268">line 268</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line220">line 220</a></li></ul></dd>@@ -4694,7 +5515,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line574">line 574</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line512">line 512</a></li></ul></dd>@@ -4852,7 +5673,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line598">line 598</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line536">line 536</a></li></ul></dd>@@ -5022,7 +5843,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line673">line 673</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line611">line 611</a></li></ul></dd>@@ -5189,7 +6010,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line665">line 665</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line603">line 603</a></li></ul></dd>@@ -5247,108 +6068,6 @@ returned.- <h4 class="name" id="getNoteRevisions"><span class="type-signature"></span>getNoteRevisions<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BNoteRevision.html">BNoteRevision</a>>}</span></h4>-------------------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1162">line 1162</a>- </li></ul></dd>--------</dl>----------------<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type">Array.<<a href="BNoteRevision.html">BNoteRevision</a>></span>--- </dd>-</dl>-------------<h4 class="name" id="getOwnedAttribute"><span class="type-signature"></span>getOwnedAttribute<span class="signature">()</span><span class="type-signature"> → {<a href="BAttribute.html">BAttribute</a>}</span></h4>@@ -5397,7 +6116,7 @@ returned.<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line740">line 740</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line678">line 678</a></li></ul></dd>@@ -5577,7 +6296,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line655">line 655</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line593">line 593</a></li></ul></dd>@@ -5842,7 +6561,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line715">line 715</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line653">line 653</a></li></ul></dd>@@ -5997,7 +6716,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line580">line 580</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line518">line 518</a></li></ul></dd>@@ -6155,7 +6874,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line604">line 604</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line542">line 542</a></li></ul></dd>@@ -6325,7 +7044,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line689">line 689</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line627">line 627</a></li></ul></dd>@@ -6492,7 +7211,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line681">line 681</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line619">line 619</a></li></ul></dd>@@ -6647,7 +7366,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line592">line 592</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line530">line 530</a></li></ul></dd>@@ -6805,7 +7524,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line616">line 616</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line554">line 554</a></li></ul></dd>@@ -6975,7 +7694,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line705">line 705</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line643">line 643</a></li></ul></dd>@@ -7081,7 +7800,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line156">line 156</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line159">line 159</a></li></ul></dd>@@ -7183,7 +7902,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line178">line 178</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line181">line 181</a></li></ul></dd>@@ -7290,7 +8009,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -7423,7 +8142,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line586">line 586</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line524">line 524</a></li></ul></dd>@@ -7581,7 +8300,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line610">line 610</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line548">line 548</a></li></ul></dd>@@ -7687,35 +8406,141 @@ This method can be significantly faster than the getAttribute()<td class="name"><code>name</code></td>- <td class="type">---<span class="param-type">string</span>+ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>+++++ <td class="description last">relation name to filter</td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line635">line 635</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++<div class="param-desc">+ all note's relations (attributes with type relation), including inherited ones+</div>++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Array.<<a href="BAttribute.html">BAttribute</a>></span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="getRevisions"><span class="type-signature"></span>getRevisions<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BRevision.html">BRevision</a>>}</span></h4>++++-- </td>-- <td class="attributes">-- <optional><br>---- </td>--- <td class="description last">relation name to filter</td>- </tr>-- </tbody>-</table>@@ -7751,7 +8576,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line697">line 697</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1088">line 1088</a></li></ul></dd>@@ -7779,10 +8604,6 @@ This method can be significantly faster than the getAttribute()<h5>Returns:</h5>-<div class="param-desc">- all note's relations (attributes with type relation), including inherited ones-</div>-<dl>@@ -7791,7 +8612,7 @@ This method can be significantly faster than the getAttribute()</dt><dd>-<span class="param-type">Array.<<a href="BAttribute.html">BAttribute</a>></span>+<span class="param-type">Array.<<a href="BRevision.html">BRevision</a>></span></dd>@@ -7857,7 +8678,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line365">line 365</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line303">line 303</a></li></ul></dd>@@ -7966,7 +8787,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line943">line 943</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line863">line 863</a></li></ul></dd>@@ -8137,7 +8958,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1197">line 1197</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1165">line 1165</a></li></ul></dd>@@ -8243,7 +9064,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line165">line 165</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line168">line 168</a></li></ul></dd>@@ -8345,7 +9166,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line966">line 966</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line886">line 886</a></li></ul></dd>@@ -8399,7 +9220,7 @@ This method can be significantly faster than the getAttribute()- <h4 class="name" id="getSubtreeNoteIds"><span class="type-signature"></span>getSubtreeNoteIds<span class="signature">()</span><span class="type-signature"> → {Array.<String>}</span></h4>+ <h4 class="name" id="getSubtreeNoteIds"><span class="type-signature"></span>getSubtreeNoteIds<span class="signature">()</span><span class="type-signature"> → {Array.<string>}</span></h4>@@ -8447,7 +9268,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1025">line 1025</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line945">line 945</a></li></ul></dd>@@ -8476,7 +9297,7 @@ This method can be significantly faster than the getAttribute()<div class="param-desc">- - includes the subtree node as well+ - includes the subtree root note as well</div>@@ -8487,7 +9308,7 @@ This method can be significantly faster than the getAttribute()</dt><dd>-<span class="param-type">Array.<String></span>+<span class="param-type">Array.<string></span></dd>@@ -8553,7 +9374,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line911">line 911</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line831">line 831</a></li></ul></dd>@@ -8607,6 +9428,108 @@ This method can be significantly faster than the getAttribute()+ <h4 class="name" id="getTargetRelations"><span class="type-signature"></span>getTargetRelations<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="BAttribute.html">BAttribute</a>>}</span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1051">line 1051</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Array.<<a href="BAttribute.html">BAttribute</a>></span>+++ </dd>+</dl>+++++++++++++<h4 class="name" id="getUtcDateChanged"><span class="type-signature">(protected) </span>getUtcDateChanged<span class="signature">()</span><span class="type-signature"></span></h4>@@ -8660,7 +9583,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -8744,7 +9667,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1111">line 1111</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1036">line 1036</a></li></ul></dd>@@ -8970,7 +9893,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line504">line 504</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line442">line 442</a></li></ul></dd>@@ -9072,7 +9995,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line188">line 188</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line191">line 191</a></li></ul></dd>@@ -9266,7 +10189,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line533">line 533</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line471">line 471</a></li></ul></dd>@@ -9495,7 +10418,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line624">line 624</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line562">line 562</a></li></ul></dd>@@ -9693,7 +10616,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line554">line 554</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line492">line 492</a></li></ul></dd>@@ -9891,7 +10814,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line568">line 568</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line506">line 506</a></li></ul></dd>@@ -10020,40 +10943,146 @@ This method can be significantly faster than the getAttribute()- <tr>-- <td class="name"><code>value</code></td>-+ <tr>++ <td class="name"><code>value</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>+++++ <td class="description last">relation value</td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line499">line 499</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++<div class="param-desc">+ true if relation exists (including inherited)+</div>++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">boolean</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="hasStringContent"><span class="type-signature"></span>hasStringContent<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4>+++- <td class="type">---<span class="param-type">string</span>-- </td>-- <td class="attributes">-- <optional><br>---- </td>--- <td class="description last">relation value</td>- </tr>-- </tbody>-</table>@@ -10089,7 +11118,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line561">line 561</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line298">line 298</a></li></ul></dd>@@ -10118,7 +11147,7 @@ This method can be significantly faster than the getAttribute()<div class="param-desc">- true if relation exists (including inherited)+ true if the note has string content (not binary)</div>@@ -10239,7 +11268,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1269">line 1269</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1237">line 1237</a></li></ul></dd>@@ -10345,7 +11374,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1247">line 1247</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1215">line 1215</a></li></ul></dd>@@ -10439,7 +11468,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line348">line 348</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line281">line 281</a></li></ul></dd>@@ -10545,7 +11574,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line354">line 354</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line287">line 287</a></li></ul></dd>@@ -10651,7 +11680,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line340">line 340</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line273">line 273</a></li></ul></dd>@@ -10757,7 +11786,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line335">line 335</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line268">line 268</a></li></ul></dd>@@ -10912,7 +11941,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line539">line 539</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line477">line 477</a></li></ul></dd>@@ -11018,7 +12047,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line330">line 330</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line263">line 263</a></li></ul></dd>@@ -11076,7 +12105,7 @@ This method can be significantly faster than the getAttribute()- <h4 class="name" id="isStringNote"><span class="type-signature"></span>isStringNote<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4>+ <h4 class="name" id="isStringNote"><span class="type-signature"></span>isStringNote<span class="signature">()</span><span class="type-signature"></span></h4>@@ -11112,6 +12141,8 @@ This method can be significantly faster than the getAttribute()+ <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use hasStringContent() instead</li></ul></dd>+@@ -11124,7 +12155,7 @@ This method can be significantly faster than the getAttribute()<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line360">line 360</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line293">line 293</a></li></ul></dd>@@ -11149,28 +12180,6 @@ This method can be significantly faster than the getAttribute()-<h5>Returns:</h5>---<div class="param-desc">- true if the note has string content (not binary)-</div>----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type">boolean</span>--- </dd>-</dl>--@@ -11192,7 +12201,7 @@ This method can be significantly faster than the getAttribute()<div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -11305,7 +12314,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -11516,7 +12525,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1313">line 1313</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1281">line 1281</a></li></ul></dd>@@ -11696,7 +12705,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1429">line 1429</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1397">line 1397</a></li></ul></dd>@@ -11876,7 +12885,202 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1437">line 1437</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1405">line 1405</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {this}</span></h4>+++++++<div class="description">+ Saves entity - executes SQL, but doesn't commit the transaction on its own+</div>++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#save">AbstractBeccaEntity#save</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">this</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="saveAttachment"><span class="type-signature"></span>saveAttachment<span class="signature">()</span><span class="type-signature"> → {<a href="BAttachment.html">BAttachment</a>}</span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1609">line 1609</a></li></ul></dd>@@ -11901,6 +13105,24 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '+<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="BAttachment.html">BAttachment</a></span>+++ </dd>+</dl>++@@ -11912,17 +13134,13 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '- <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {this}</span></h4>+ <h4 class="name" id="saveRevision"><span class="type-signature"></span>saveRevision<span class="signature">()</span><span class="type-signature"> → {<a href="BRevision.html">BRevision</a>|null}</span></h4>-<div class="description">- Saves entity - executes SQL, but doesn't commit the transaction on its own-</div>-@@ -11944,11 +13162,6 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#save">AbstractBeccaEntity#save</a>- </li></ul></dd>-@@ -11969,7 +13182,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1560">line 1560</a></li></ul></dd>@@ -12005,7 +13218,10 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</dt><dd>-<span class="param-type">this</span>+<span class="param-type"><a href="BRevision.html">BRevision</a></span>+|++<span class="param-type">null</span></dd>@@ -12023,19 +13239,146 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '- <h4 class="name" id="saveNoteRevision"><span class="type-signature"></span>saveNoteRevision<span class="signature">()</span><span class="type-signature"> → {<a href="BNoteRevision.html">BNoteRevision</a>|null}</span></h4>+ <h4 class="name" id="setAttribute"><span class="type-signature"></span>setAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>+++++++<div class="description">+ Update's given attribute's value or creates it if it doesn't exist+</div>++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>+++ <th>Attributes</th>+++++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>type</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>+++++ <td class="description last">attribute type (label, relation, etc.)</td>+ </tr>++ <tr>++ <td class="name"><code>name</code></td>+++ <td class="type">+++<span class="param-type">string</span>++++ </td>+++ <td class="attributes">++++++ </td>+++++ <td class="description last">attribute name</td>+ </tr>++ <tr>++ <td class="name"><code>value</code></td>+++ <td class="type">+++<span class="param-type">string</span>++ </td>++ <td class="attributes">++ <optional><br>++++ </td>+++ <td class="description last">attribute value (optional)</td>+ </tr>++ </tbody>+</table>@@ -12071,7 +13414,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1519">line 1519</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1250">line 1250</a></li></ul></dd>@@ -12096,27 +13439,6 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '-<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type"><a href="BNoteRevision.html">BNoteRevision</a></span>-|--<span class="param-type">null</span>--- </dd>-</dl>--@@ -12128,17 +13450,13 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '- <h4 class="name" id="setAttribute"><span class="type-signature"></span>setAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>+ <h4 class="name" id="setContent"><span class="type-signature"></span>setContent<span class="signature">(content, opts<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>-<div class="description">- Update's given attribute's value or creates it if it doesn't exist-</div>-@@ -12174,13 +13492,39 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<tr>- <td class="name"><code>type</code></td>+ <td class="name"><code>content</code></td><td class="type">+ </td>+++ <td class="attributes">-<span class="param-type">string</span>+++++ </td>+++++ <td class="description last"></td>+ </tr>++++ <tr>++ <td class="name"><code>opts</code></td>+++ <td class="type">+++<span class="param-type">object</span>@@ -12189,6 +13533,8 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<td class="attributes">+ <optional><br>+@@ -12198,20 +13544,43 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '- <td class="description last">attribute type (label, relation, etc.)</td>- </tr>+ <td class="description last">+ <h6>Properties</h6>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>+++ <th>Attributes</th>++++ <th>Default</th>+++ <th class="last">Description</th>+ </tr>+ </thead>+ <tbody><tr>- <td class="name"><code>name</code></td>+ <td class="name"><code>forceSave</code></td><td class="type">-<span class="param-type">string</span>+<span class="param-type">object</span>@@ -12220,6 +13589,8 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<td class="attributes">+ <optional><br>+@@ -12228,21 +13599,27 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '+ <td class="default">++ false++ </td>+- <td class="description last">attribute name</td>+ <td class="description last">will also save this BNote entity</td></tr><tr>- <td class="name"><code>value</code></td>+ <td class="name"><code>forceFrontendReload</code></td><td class="type">-<span class="param-type">string</span>+<span class="param-type">object</span>@@ -12261,8 +13638,21 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '+ <td class="default">++ false++ </td>+- <td class="description last">attribute value (optional)</td>+ <td class="description last">override frontend heuristics on when to reload, instruct to reload</td>+ </tr>+++ </tbody>+</table>++ </td></tr>@@ -12303,7 +13693,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1282">line 1282</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line236">line 236</a></li></ul></dd>@@ -12483,7 +13873,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1413">line 1413</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1381">line 1381</a></li></ul></dd>@@ -12643,7 +14033,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1421">line 1421</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1389">line 1389</a></li></ul></dd>@@ -12885,7 +14275,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1380">line 1380</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1348">line 1348</a></li></ul></dd>@@ -13096,7 +14486,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1396">line 1396</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1364">line 1364</a></li></ul></dd>@@ -13307,7 +14697,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1405">line 1405</a>+ <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1373">line 1373</a></li></ul></dd>@@ -13353,7 +14743,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BNoteRevision.html b/docs/backend_api/BNoteRevision.htmldeleted file mode 100644index 3a9ccf0d3e..0000000000--- a/docs/backend_api/BNoteRevision.html+++ /dev/null@@ -1,2183 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="utf-8">- <title>JSDoc: Class: BNoteRevision</title>-- <script src="scripts/prettify/prettify.js"> </script>- <script src="scripts/prettify/lang-css.js"> </script>- <!--[if lt IE 9]>- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>- <![endif]-->- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">-</head>--<body>--<div id="main">-- <h1 class="page-title">Class: BNoteRevision</h1>-------<section>--<header>-- <h2><span class="attribs"><span class="type-signature"></span></span>BNoteRevision<span class="signature">()</span><span class="type-signature"></span></h2>-- <div class="class-description">NoteRevision represents snapshot of note's title and content at some point in the past.-It's used for seamless note versioning.</div>---</header>--<article>- <div class="container-overview">----- <h2>Constructor</h2>---- <h4 class="name" id="BNoteRevision"><span class="type-signature"></span>new BNoteRevision<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line17">line 17</a>- </li></ul></dd>--------</dl>---------------------- </div>--- <h3 class="subsection-title">Extends</h3>----- <ul>- <li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li>- </ul>---------------- <h3 class="subsection-title">Members</h3>----<h4 class="name" id="becca"><span class="type-signature">(protected) </span>becca<span class="type-signature"></span></h4>-----------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#becca">AbstractBeccaEntity#becca</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="contentLength"><span class="type-signature"></span>contentLength<span class="type-signature"> :number</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">number</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line48">line 48</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="dateCreated"><span class="type-signature"></span>dateCreated<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line40">line 40</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="dateLastEdited"><span class="type-signature"></span>dateLastEdited<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line38">line 38</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="isProtected"><span class="type-signature"></span>isProtected<span class="type-signature"> :boolean</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">boolean</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line34">line 34</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="mime"><span class="type-signature"></span>mime<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line32">line 32</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="noteId"><span class="type-signature"></span>noteId<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line28">line 28</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="noteRevisionId"><span class="type-signature"></span>noteRevisionId<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line26">line 26</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="title"><span class="type-signature"></span>title<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line36">line 36</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="type"><span class="type-signature"></span>type<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line30">line 30</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="utcDateCreated"><span class="type-signature"></span>utcDateCreated<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line44">line 44</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="utcDateLastEdited"><span class="type-signature"></span>utcDateLastEdited<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line42">line 42</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="utcDateModified"><span class="type-signature"></span>utcDateModified<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line46">line 46</a>- </li></ul></dd>--------</dl>----------- <h3 class="subsection-title">Methods</h3>-------- <h4 class="name" id="addEntityChange"><span class="type-signature">(protected) </span>addEntityChange<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#addEntityChange">AbstractBeccaEntity#addEntityChange</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="beforeSaving"><span class="type-signature">(protected) </span>beforeSaving<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#beforeSaving">AbstractBeccaEntity#beforeSaving</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="generateHash"><span class="type-signature">(protected) </span>generateHash<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#generateHash">AbstractBeccaEntity#generateHash</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="generateIdIfNecessary"><span class="type-signature">(protected) </span>generateIdIfNecessary<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#generateIdIfNecessary">AbstractBeccaEntity#generateIdIfNecessary</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="getContent"><span class="type-signature"></span>getContent<span class="signature">()</span><span class="type-signature"> → {*}</span></h4>-------------------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line76">line 76</a>- </li></ul></dd>--------</dl>----------------<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type">*</span>--- </dd>-</dl>-------------- <h4 class="name" id="getContentMetadata"><span class="type-signature"></span>getContentMetadata<span class="signature">()</span><span class="type-signature"> → {Object}</span></h4>-------------------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line140">line 140</a>- </li></ul></dd>--------</dl>----------------<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type">Object</span>--- </dd>-</dl>-------------- <h4 class="name" id="getPojoToSave"><span class="type-signature">(protected) </span>getPojoToSave<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#getPojoToSave">AbstractBeccaEntity#getPojoToSave</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="getUtcDateChanged"><span class="type-signature">(protected) </span>getUtcDateChanged<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#getUtcDateChanged">AbstractBeccaEntity#getUtcDateChanged</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="isStringNote"><span class="type-signature"></span>isStringNote<span class="signature">()</span><span class="type-signature"> → {boolean}</span></h4>-------------------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_bnote_revision.js.html">becca/entities/bnote_revision.js</a>, <a href="becca_entities_bnote_revision.js.html#line62">line 62</a>- </li></ul></dd>--------</dl>----------------<h5>Returns:</h5>---<div class="param-desc">- true if the note has string content (not binary)-</div>----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type">boolean</span>--- </dd>-</dl>-------------- <h4 class="name" id="markAsDeleted"><span class="type-signature"></span>markAsDeleted<span class="signature">(deleteId<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>-------<div class="description">- Mark the entity as (soft) deleted. It will be completely erased later.--This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.-</div>---------- <h5>Parameters:</h5>---<table class="params">- <thead>- <tr>-- <th>Name</th>--- <th>Type</th>--- <th>Attributes</th>---- <th>Default</th>--- <th class="last">Description</th>- </tr>- </thead>-- <tbody>--- <tr>-- <td class="name"><code>deleteId</code></td>--- <td class="type">-- </td>--- <td class="attributes">-- <optional><br>------ </td>---- <td class="default">-- null-- </td>--- <td class="description last"></td>- </tr>--- </tbody>-</table>-------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#markAsDeleted">AbstractBeccaEntity#markAsDeleted</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>- </li></ul></dd>--------</dl>--------------------------- <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {this}</span></h4>-------<div class="description">- Saves entity - executes SQL, but doesn't commit the transaction on its own-</div>--------------<dl class="details">--------- <dt class="tag-overrides">Overrides:</dt>- <dd class="tag-overrides"><ul class="dummy"><li>- <a href="AbstractBeccaEntity.html#save">AbstractBeccaEntity#save</a>- </li></ul></dd>-------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>- </li></ul></dd>--------</dl>----------------<h5>Returns:</h5>-----<dl>- <dt>- Type- </dt>- <dd>--<span class="param-type">this</span>--- </dd>-</dl>--------------</article>--</section>-----</div>--<nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>-</nav>--<br class="clear">--<footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a>-</footer>--<script> prettyPrint(); </script>-<script src="scripts/linenumber.js"> </script>-</body>-</html>\ No newline at end of filediff --git a/docs/backend_api/BOption.html b/docs/backend_api/BOption.htmlindex 849051190c..e03899bda6 100644--- a/docs/backend_api/BOption.html+++ b/docs/backend_api/BOption.html@@ -199,7 +199,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -493,6 +493,205 @@<h3 class="subsection-title">Methods</h3>+++++++ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|++<span class="param-type">Buffer</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -552,7 +751,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a></li></ul></dd>@@ -641,7 +840,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a></li></ul></dd>@@ -730,7 +929,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -819,7 +1018,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -908,7 +1107,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -997,7 +1196,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -1043,7 +1242,7 @@<div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -1156,7 +1355,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -1249,7 +1448,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a></li></ul></dd>@@ -1313,7 +1512,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BRecentNote.html b/docs/backend_api/BRecentNote.htmlindex cdda77c51b..8c25ed62dc 100644--- a/docs/backend_api/BRecentNote.html+++ b/docs/backend_api/BRecentNote.html@@ -199,7 +199,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line53">line 53</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line55">line 55</a></li></ul></dd>@@ -425,6 +425,205 @@<h3 class="subsection-title">Methods</h3>+++++++ <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> → {string|Buffer}</span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line243">line 243</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+|++<span class="param-type">Buffer</span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>+++++++++++++++++++<dl class="details">+++++++++ <dt class="tag-overrides">Overrides:</dt>+ <dd class="tag-overrides"><ul class="dummy"><li>+ <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line124">line 124</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -484,7 +683,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line62">line 62</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line64">line 64</a></li></ul></dd>@@ -573,7 +772,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line18">line 18</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a></li></ul></dd>@@ -662,7 +861,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line30">line 30</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line32">line 32</a></li></ul></dd>@@ -751,7 +950,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line23">line 23</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line25">line 25</a></li></ul></dd>@@ -840,7 +1039,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line76">line 76</a></li></ul></dd>@@ -929,7 +1128,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line45">line 45</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line47">line 47</a></li></ul></dd>@@ -975,7 +1174,7 @@<div class="description">Mark the entity as (soft) deleted. It will be completely erased later.-This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.</div>@@ -1088,7 +1287,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line260">line 260</a></li></ul></dd>@@ -1181,7 +1380,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line83">line 83</a>+ <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line85">line 85</a></li></ul></dd>@@ -1245,7 +1444,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/BackendScriptApi.html b/docs/backend_api/BackendScriptApi.htmlindex ba6ffbc2b3..383ba8d7a0 100644--- a/docs/backend_api/BackendScriptApi.html+++ b/docs/backend_api/BackendScriptApi.html@@ -1623,7 +1623,7 @@ JSON MIME type. See also createNewNote() for more options.<td class="type">-<span class="param-type">int</span>+<span class="param-type">integer</span>@@ -6272,7 +6272,7 @@ if some action needs to happen on only one specific instance.<td class="type">-<span class="param-type">number</span>+<span class="param-type">integer</span>@@ -7883,7 +7883,7 @@ exists, then we'll use that transaction.</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_abstract_becca_entity.js.html b/docs/backend_api/becca_entities_abstract_becca_entity.js.htmlindex b64387b2d2..f06d1e2020 100644--- a/docs/backend_api/becca_entities_abstract_becca_entity.js.html+++ b/docs/backend_api/becca_entities_abstract_becca_entity.js.html@@ -35,6 +35,8 @@ const eventService = require("../../services/events");const dateUtils = require("../../services/date_utils");const cls = require("../../services/cls");const log = require("../../services/log");+const protectedSessionService = require("../../services/protected_session");+const blobService = require("../../services/blob");let becca = null;@@ -146,10 +148,140 @@ class AbstractBeccaEntity {return this;}+ /** @protected */+ _setContent(content, opts = {}) {+ // client code asks to save entity even if blobId didn't change (something else was changed)+ opts.forceSave = !!opts.forceSave;+ opts.forceFrontendReload = !!opts.forceFrontendReload;++ if (content === null || content === undefined) {+ throw new Error(`Cannot set null content to ${this.constructor.primaryKeyName} '${this[this.constructor.primaryKeyName]}'`);+ }++ if (this.hasStringContent()) {+ content = content.toString();+ }+ else {+ content = Buffer.isBuffer(content) ? content : Buffer.from(content);+ }++ const unencryptedContentForHashCalculation = this.#getUnencryptedContentForHashCalculation(content);++ if (this.isProtected) {+ if (protectedSessionService.isProtectedSessionAvailable()) {+ content = protectedSessionService.encrypt(content);+ } else {+ throw new Error(`Cannot update content of blob since protected session is not available.`);+ }+ }++ sql.transactional(() => {+ const newBlobId = this.#saveBlob(content, unencryptedContentForHashCalculation, opts);+ const oldBlobId = this.blobId;++ if (newBlobId !== oldBlobId || opts.forceSave) {+ this.blobId = newBlobId;+ this.save();++ if (newBlobId !== oldBlobId) {+ this.#deleteBlobIfNoteUsed(oldBlobId);+ }+ }+ });+ }++ #deleteBlobIfNoteUsed(blobId) {+ if (sql.getValue("SELECT 1 FROM notes WHERE blobId = ? LIMIT 1", [blobId])) {+ return;+ }++ if (sql.getValue("SELECT 1 FROM attachments WHERE blobId = ? LIMIT 1", [blobId])) {+ return;+ }++ if (sql.getValue("SELECT 1 FROM revisions WHERE blobId = ? LIMIT 1", [blobId])) {+ return;+ }++ sql.execute("DELETE FROM blobs WHERE blobId = ?", [blobId]);+ sql.execute("DELETE FROM entity_changes WHERE entityName = 'blobs' AND entityId = ?", [blobId]);+ }++ #getUnencryptedContentForHashCalculation(unencryptedContent) {+ if (this.isProtected) {+ // a "random" prefix make sure that the calculated hash/blobId is different for an encrypted note and decrypted+ const encryptedPrefixSuffix = "t$[nvQg7q)&_ENCRYPTED_?M:Bf&j3jr_";+ return Buffer.isBuffer(unencryptedContent)+ ? Buffer.concat([Buffer.from(encryptedPrefixSuffix), unencryptedContent])+ : `${encryptedPrefixSuffix}${unencryptedContent}`;+ } else {+ return unencryptedContent;+ }+ }++ #saveBlob(content, unencryptedContentForHashCalculation, opts = {}) {+ /*+ * We're using the unencrypted blob for the hash calculation, because otherwise the random IV would+ * cause every content blob to be unique which would balloon the database size (esp. with revisioning).+ * This has minor security implications (it's easy to infer that given content is shared between different+ * notes/attachments, but the trade-off comes out clearly positive).+ */+ const newBlobId = utils.hashedBlobId(unencryptedContentForHashCalculation);+ const blobNeedsInsert = !sql.getValue('SELECT 1 FROM blobs WHERE blobId = ?', [newBlobId]);++ if (!blobNeedsInsert) {+ return newBlobId;+ }++ const pojo = {+ blobId: newBlobId,+ content: content,+ dateModified: dateUtils.localNowDateTime(),+ utcDateModified: dateUtils.utcNowDateTime()+ };++ sql.upsert("blobs", "blobId", pojo);++ const hash = utils.hash(`${newBlobId}|${pojo.content.toString()}`);++ entityChangesService.addEntityChange({+ entityName: 'blobs',+ entityId: newBlobId,+ hash: hash,+ isErased: false,+ utcDateChanged: pojo.utcDateModified,+ isSynced: true,+ // overriding componentId will cause frontend to think the change is coming from a different component+ // and thus reload+ componentId: opts.forceFrontendReload ? utils.randomString(10) : null+ });++ eventService.emit(eventService.ENTITY_CHANGED, {+ entityName: 'blobs',+ entity: this+ });++ return newBlobId;+ }++ /**+ * @protected+ * @returns {string|Buffer}+ */+ _getContent() {+ const row = sql.getRow(`SELECT content FROM blobs WHERE blobId = ?`, [this.blobId]);++ if (!row) {+ throw new Error(`Cannot find content for ${this.constructor.primaryKeyName} '${this[this.constructor.primaryKeyName]}', blobId '${this.blobId}'`);+ }++ return blobService.processContent(row.content, this.isProtected, this.hasStringContent());+ }+/*** Mark the entity as (soft) deleted. It will be completely erased later.*- * This is a low level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.+ * This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.** @param [deleteId=null]*/@@ -206,7 +338,7 @@ module.exports = AbstractBeccaEntity;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_battribute.js.html b/docs/backend_api/becca_entities_battribute.js.htmlindex d9715c60b0..8890189fa5 100644--- a/docs/backend_api/becca_entities_battribute.js.html+++ b/docs/backend_api/becca_entities_battribute.js.html@@ -79,7 +79,7 @@ class BAttribute extends AbstractBeccaEntity {this.type = type;/** @type {string} */this.name = name;- /** @type {int} */+ /** @type {integer} */this.position = position;/** @type {string} */this.value = value || "";@@ -169,7 +169,7 @@ class BAttribute extends AbstractBeccaEntity {*/getTargetNote() {if (this.type !== 'relation') {- throw new Error(`Attribute ${this.attributeId} is not relation`);+ throw new Error(`Attribute '${this.attributeId}' is not a relation.`);}if (!this.value) {@@ -216,9 +216,11 @@ class BAttribute extends AbstractBeccaEntity {this.value = "";}- if (this.position === undefined) {- // TODO: can be calculated from becca- this.position = 1 + sql.getValue(`SELECT COALESCE(MAX(position), 0) FROM attributes WHERE noteId = ?`, [this.noteId]);+ if (this.position === undefined || this.position === null) {+ const maxExistingPosition = this.getNote().getAttributes()+ .reduce((maxPosition, attr) => Math.max(maxPosition, attr.position || 0), 0);++ this.position = maxExistingPosition + 10;}if (!this.isInheritable) {@@ -270,7 +272,7 @@ module.exports = BAttribute;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_bbranch.js.html b/docs/backend_api/becca_entities_bbranch.js.htmlindex b2261711d5..8e8282cc09 100644--- a/docs/backend_api/becca_entities_bbranch.js.html+++ b/docs/backend_api/becca_entities_bbranch.js.html@@ -83,7 +83,7 @@ class BBranch extends AbstractBeccaEntity {this.parentNoteId = parentNoteId;/** @type {string|null} */this.prefix = prefix;- /** @type {int} */+ /** @type {integer} */this.notePosition = notePosition;/** @type {boolean} */this.isExpanded = !!isExpanded;@@ -131,6 +131,7 @@ class BBranch extends AbstractBeccaEntity {return this.becca.notes[this.noteId];}+ /** @returns {BNote} */getNote() {return this.childNote;}@@ -214,7 +215,7 @@ class BBranch extends AbstractBeccaEntity {// first delete children and then parent - this will show up better in recent changes- log.info(`Deleting note ${note.noteId}`);+ log.info(`Deleting note '${note.noteId}'`);this.becca.notes[note.noteId].isBeingDeleted = true;@@ -226,6 +227,10 @@ class BBranch extends AbstractBeccaEntity {relation.markAsDeleted(deleteId);}+ for (const attachment of note.getAttachments()) {+ attachment.markAsDeleted(deleteId);+ }+note.markAsDeleted(deleteId);return true;@@ -247,7 +252,7 @@ class BBranch extends AbstractBeccaEntity {for (const childBranch of this.parentNote.getChildBranches()) {if (maxNotePos < childBranch.notePosition- && childBranch.noteId !== '_hidden' // hidden has very large notePosition to always stay last+ && childBranch.noteId !== '_hidden' // hidden has a very large notePosition to always stay last) {maxNotePos = childBranch.notePosition;}@@ -313,7 +318,7 @@ module.exports = BBranch;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_betapi_token.js.html b/docs/backend_api/becca_entities_betapi_token.js.htmlindex 3298435224..16fbdc9ed5 100644--- a/docs/backend_api/becca_entities_betapi_token.js.html+++ b/docs/backend_api/becca_entities_betapi_token.js.html@@ -114,7 +114,7 @@ module.exports = BEtapiToken;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_bnote.js.html b/docs/backend_api/becca_entities_bnote.js.htmlindex 0c729d838e..6c7d41cb21 100644--- a/docs/backend_api/becca_entities_bnote.js.html+++ b/docs/backend_api/becca_entities_bnote.js.html@@ -33,9 +33,9 @@ const log = require('../../services/log');const sql = require('../../services/sql');const utils = require('../../services/utils');const dateUtils = require('../../services/date_utils');-const entityChangesService = require('../../services/entity_changes');const AbstractBeccaEntity = require("./abstract_becca_entity");-const BNoteRevision = require("./bnote_revision");+const BRevision = require("./brevision");+const BAttachment = require("./battachment");const TaskContext = require("../../services/task_context");const dayjs = require("dayjs");const utc = require('dayjs/plugin/utc');@@ -53,7 +53,7 @@ const RELATION = 'relation';class BNote extends AbstractBeccaEntity {static get entityName() { return "notes"; }static get primaryKeyName() { return "noteId"; }- static get hashedProperties() { return ["noteId", "title", "isProtected", "type", "mime"]; }+ static get hashedProperties() { return ["noteId", "title", "isProtected", "type", "mime", "blobId"]; }constructor(row) {super();@@ -73,6 +73,7 @@ class BNote extends AbstractBeccaEntity {row.type,row.mime,row.isProtected,+ row.blobId,row.dateCreated,row.dateModified,row.utcDateCreated,@@ -80,19 +81,21 @@ class BNote extends AbstractBeccaEntity {]);}- update([noteId, title, type, mime, isProtected, dateCreated, dateModified, utcDateCreated, utcDateModified]) {+ update([noteId, title, type, mime, isProtected, blobId, dateCreated, dateModified, utcDateCreated, utcDateModified]) {// ------ Database persisted attributes ------/** @type {string} */this.noteId = noteId;/** @type {string} */this.title = title;- /** @type {boolean} */- this.isProtected = !!isProtected;/** @type {string} */this.type = type;/** @type {string} */this.mime = mime;+ /** @type {boolean} */+ this.isProtected = !!isProtected;+ /** @type {string} */+ this.blobId = blobId;/** @type {string} */this.dateCreated = dateCreated || dateUtils.localNowDateTime();/** @type {string} */@@ -112,7 +115,7 @@ class BNote extends AbstractBeccaEntity {this.decrypt();/** @type {string|null} */- this.flatTextCache = null;+ this.__flatTextCache = null;return this;}@@ -136,7 +139,7 @@ class BNote extends AbstractBeccaEntity {this.__attributeCache = null;/** @type {BAttribute[]|null}* @private */- this.inheritableAttributeCache = null;+ this.__inheritableAttributeCache = null;/** @type {BAttribute[]}* @private */@@ -146,7 +149,7 @@ class BNote extends AbstractBeccaEntity {/** @type {BNote[]|null}* @private */- this.ancestorCache = null;+ this.__ancestorCache = null;// following attributes are filled during searching from database@@ -231,49 +234,41 @@ class BNote extends AbstractBeccaEntity {* - but to the user note content and title changes are one and the same - single dateModified (so all changes must go through Note and content is not a separate entity)*/+ /** @returns {string|Buffer} */+ getContent() {+ return this._getContent();+ }++ /** @returns {{dateModified, utcDateModified}} */+ getContentMetadata() {+ return sql.getRow(`SELECT dateModified, utcDateModified FROM blobs WHERE blobId = ?`, [this.blobId]);+ }+/** @returns {*} */- getContent(silentNotFoundError = false) {- const row = sql.getRow(`SELECT content FROM note_contents WHERE noteId = ?`, [this.noteId]);+ getJsonContent() {+ const content = this.getContent();- if (!row) {- if (silentNotFoundError) {- return undefined;- }- else {- throw new Error(`Cannot find note content for noteId=${this.noteId}`);- }+ if (!content || !content.trim()) {+ return null;}- let content = row.content;+ return JSON.parse(content);+ }- if (this.isProtected) {- if (protectedSessionService.isProtectedSessionAvailable()) {- content = content === null ? null : protectedSessionService.decrypt(content);- }- else {- content = "";- }- }+ /**+ * @param content+ * @param {object} [opts]+ * @param {object} [opts.forceSave=false] - will also save this BNote entity+ * @param {object} [opts.forceFrontendReload=false] - override frontend heuristics on when to reload, instruct to reload+ */+ setContent(content, opts) {+ this._setContent(content, opts);- if (this.isStringNote()) {- return content === null- ? ""- : content.toString("UTF-8");- }- else {- return content;- }+ eventService.emit(eventService.NOTE_CONTENT_CHANGE, { entity: this });}- /** @returns {{contentLength, dateModified, utcDateModified}} */- getContentMetadata() {- return sql.getRow(`- SELECT- LENGTH(content) AS contentLength,- dateModified,- utcDateModified- FROM note_contents- WHERE noteId = ?`, [this.noteId]);+ setJsonContent(content) {+ this.setContent(JSON.stringify(content, null, '\t'));}get dateCreatedObj() {@@ -292,68 +287,6 @@ class BNote extends AbstractBeccaEntity {return this.utcDateModified === null ? null : dayjs.utc(this.utcDateModified);}- /** @returns {*} */- getJsonContent() {- const content = this.getContent();-- if (!content || !content.trim()) {- return null;- }-- return JSON.parse(content);- }-- setContent(content, ignoreMissingProtectedSession = false) {- if (content === null || content === undefined) {- throw new Error(`Cannot set null content to note '${this.noteId}'`);- }-- if (this.isStringNote()) {- content = content.toString();- }- else {- content = Buffer.isBuffer(content) ? content : Buffer.from(content);- }-- const pojo = {- noteId: this.noteId,- content: content,- dateModified: dateUtils.localNowDateTime(),- utcDateModified: dateUtils.utcNowDateTime()- };-- if (this.isProtected) {- if (protectedSessionService.isProtectedSessionAvailable()) {- pojo.content = protectedSessionService.encrypt(pojo.content);- }- else if (!ignoreMissingProtectedSession) {- throw new Error(`Cannot update content of noteId '${this.noteId}' since we're out of protected session.`);- }- }-- sql.upsert("note_contents", "noteId", pojo);-- const hash = utils.hash(`${this.noteId}|${pojo.content.toString()}`);-- entityChangesService.addEntityChange({- entityName: 'note_contents',- entityId: this.noteId,- hash: hash,- isErased: false,- utcDateChanged: pojo.utcDateModified,- isSynced: true- });-- eventService.emit(eventService.ENTITY_CHANGED, {- entityName: 'note_contents',- entity: this- });- }-- setJsonContent(content) {- this.setContent(JSON.stringify(content, null, '\t'));- }-/** @returns {boolean} true if this note is the root of the note tree. Root note has "root" noteId */isRoot() {return this.noteId === 'root';@@ -384,8 +317,13 @@ class BNote extends AbstractBeccaEntity {|| (this.type === 'file' && this.mime?.startsWith('image/'));}- /** @returns {boolean} true if the note has string content (not binary) */+ /** @deprecated use hasStringContent() instead */isStringNote() {+ return this.hasStringContent();+ }++ /** @returns {boolean} true if the note has string content (not binary) */+ hasStringContent() {return utils.isStringNote(this.type, this.mime);}@@ -482,11 +420,11 @@ class BNote extends AbstractBeccaEntity {}}- this.inheritableAttributeCache = [];+ this.__inheritableAttributeCache = [];for (const attr of this.__attributeCache) {if (attr.isInheritable) {- this.inheritableAttributeCache.push(attr);+ this.__inheritableAttributeCache.push(attr);}}}@@ -503,11 +441,11 @@ class BNote extends AbstractBeccaEntity {return [];}- if (!this.inheritableAttributeCache) {- this.__getAttributes(path); // will refresh also this.inheritableAttributeCache+ if (!this.__inheritableAttributeCache) {+ this.__getAttributes(path); // will refresh also this.__inheritableAttributeCache}- return this.inheritableAttributeCache;+ return this.__inheritableAttributeCache;}__validateTypeName(type, name) {@@ -841,40 +779,40 @@ class BNote extends AbstractBeccaEntity {* @returns {string} - returns flattened textual representation of note, prefixes and attributes*/getFlatText() {- if (!this.flatTextCache) {- this.flatTextCache = `${this.noteId} ${this.type} ${this.mime} `;+ if (!this.__flatTextCache) {+ this.__flatTextCache = `${this.noteId} ${this.type} ${this.mime} `;for (const branch of this.parentBranches) {if (branch.prefix) {- this.flatTextCache += `${branch.prefix} `;+ this.__flatTextCache += `${branch.prefix} `;}}- this.flatTextCache += `${this.title} `;+ this.__flatTextCache += `${this.title} `;for (const attr of this.getAttributes()) {// it's best to use space as separator since spaces are filtered from the search string by the tokenization into words- this.flatTextCache += `${attr.type === 'label' ? '#' : '~'}${attr.name}`;+ this.__flatTextCache += `${attr.type === 'label' ? '#' : '~'}${attr.name}`;if (attr.value) {- this.flatTextCache += `=${attr.value}`;+ this.__flatTextCache += `=${attr.value}`;}- this.flatTextCache += ' ';+ this.__flatTextCache += ' ';}- this.flatTextCache = utils.normalize(this.flatTextCache);+ this.__flatTextCache = utils.normalize(this.__flatTextCache);}- return this.flatTextCache;+ return this.__flatTextCache;}invalidateThisCache() {- this.flatTextCache = null;+ this.__flatTextCache = null;this.__attributeCache = null;- this.inheritableAttributeCache = null;- this.ancestorCache = null;+ this.__inheritableAttributeCache = null;+ this.__ancestorCache = null;}invalidateSubTree(path = []) {@@ -903,24 +841,6 @@ class BNote extends AbstractBeccaEntity {}}- invalidateSubtreeFlatText() {- this.flatTextCache = null;-- for (const childNote of this.children) {- childNote.invalidateSubtreeFlatText();- }-- for (const targetRelation of this.targetRelations) {- if (targetRelation.name === 'template' || targetRelation.name === 'inherit') {- const note = targetRelation.note;-- if (note) {- note.invalidateSubtreeFlatText();- }- }- }- }-getRelationDefinitions() {return this.getLabels().filter(l => l.name.startsWith("relation:"));@@ -1049,7 +969,7 @@ class BNote extends AbstractBeccaEntity {};}- /** @returns {String[]} - includes the subtree node as well */+ /** @returns {string[]} - includes the subtree root note as well */getSubtreeNoteIds({includeArchived = true, includeHidden = false, resolveSearch = false} = {}) {return this.getSubtree({includeArchived, includeHidden, resolveSearch}).notes@@ -1111,28 +1031,33 @@ class BNote extends AbstractBeccaEntity {/** @returns {BNote[]} */getAncestors() {- if (!this.ancestorCache) {+ if (!this.__ancestorCache) {const noteIds = new Set();- this.ancestorCache = [];+ this.__ancestorCache = [];for (const parent of this.parents) {if (noteIds.has(parent.noteId)) {continue;}- this.ancestorCache.push(parent);+ this.__ancestorCache.push(parent);noteIds.add(parent.noteId);for (const ancestorNote of parent.getAncestors()) {if (!noteIds.has(ancestorNote.noteId)) {- this.ancestorCache.push(ancestorNote);+ this.__ancestorCache.push(ancestorNote);noteIds.add(ancestorNote.noteId);}}}}- return this.ancestorCache;+ return this.__ancestorCache;+ }++ /** @returns {string[]} */+ getAncestorNoteIds() {+ return this.getAncestors().map(note => note.noteId);}/** @returns {boolean} */@@ -1150,6 +1075,7 @@ class BNote extends AbstractBeccaEntity {return this.noteId === '_hidden' || this.hasAncestor('_hidden');}+ /** @returns {BAttribute[]} */getTargetRelations() {return this.targetRelations;}@@ -1186,10 +1112,55 @@ class BNote extends AbstractBeccaEntity {return minDistance;}- /** @returns {BNoteRevision[]} */- getNoteRevisions() {- return sql.getRows("SELECT * FROM note_revisions WHERE noteId = ?", [this.noteId])- .map(row => new BNoteRevision(row));+ /** @returns {BRevision[]} */+ getRevisions() {+ return sql.getRows("SELECT * FROM revisions WHERE noteId = ?", [this.noteId])+ .map(row => new BRevision(row));+ }++ /** @returns {BAttachment[]} */+ getAttachments(opts = {}) {+ opts.includeContentLength = !!opts.includeContentLength;+ // from testing it looks like calculating length does not make a difference in performance even on large-ish DB+ // given that we're always fetching attachments only for a specific note, we might just do it always++ const query = opts.includeContentLength+ ? `SELECT attachments.*, LENGTH(blobs.content) AS contentLength+ FROM attachments+ JOIN blobs USING (blobId)+ WHERE parentId = ? AND isDeleted = 0+ ORDER BY position`+ : `SELECT * FROM attachments WHERE parentId = ? AND isDeleted = 0 ORDER BY position`;++ return sql.getRows(query, [this.noteId])+ .map(row => new BAttachment(row));+ }++ /** @returns {BAttachment|null} */+ getAttachmentById(attachmentId, opts = {}) {+ opts.includeContentLength = !!opts.includeContentLength;++ const query = opts.includeContentLength+ ? `SELECT attachments.*, LENGTH(blobs.content) AS contentLength+ FROM attachments+ JOIN blobs USING (blobId)+ WHERE parentId = ? AND attachmentId = ? AND isDeleted = 0`+ : `SELECT * FROM attachments WHERE parentId = ? AND attachmentId = ? AND isDeleted = 0`;++ return sql.getRows(query, [this.noteId, attachmentId])+ .map(row => new BAttachment(row))[0];+ }++ /** @returns {BAttachment[]} */+ getAttachmentByRole(role) {+ return sql.getRows(`+ SELECT attachments.*+ FROM attachments+ WHERE parentId = ?+ AND role = ?+ AND isDeleted = 0+ ORDER BY position`, [this.noteId, role])+ .map(row => new BAttachment(row));}/**@@ -1203,13 +1174,10 @@ class BNote extends AbstractBeccaEntity {}const parentNotes = this.getParentNotes();- let notePaths = [];- if (parentNotes.length === 1) { // optimization for most common case- notePaths = parentNotes[0].getAllNotePaths();- } else {- notePaths = parentNotes.flatMap(parentNote => parentNote.getAllNotePaths());- }+ const notePaths = parentNotes.length === 1+ ? parentNotes[0].getAllNotePaths() // optimization for most common case+ : parentNotes.flatMap(parentNote => parentNote.getAllNotePaths());for (const notePath of notePaths) {notePath.push(this.noteId);@@ -1356,10 +1324,10 @@ class BNote extends AbstractBeccaEntity {* @param {string} name - name of the attribute, not including the leading ~/#* @param {string} [value] - value of the attribute - text for labels, target note ID for relations; optional.* @param {boolean} [isInheritable=false]- * @param {int} [position]+ * @param {int|null} [position]* @returns {BAttribute}*/- addAttribute(type, name, value = "", isInheritable = false, position = 1000) {+ addAttribute(type, name, value = "", isInheritable = false, position = null) {const BAttribute = require("./battribute");return new BAttribute({@@ -1486,13 +1454,84 @@ class BNote extends AbstractBeccaEntity {return cloningService.cloneNoteToBranch(this.noteId, branch.branchId);}+ isEligibleForConversionToAttachment() {+ if (this.type !== 'image' || !this.isContentAvailable() || this.hasChildren() || this.getParentBranches().length !== 1) {+ return false;+ }++ const targetRelations = this.getTargetRelations().filter(relation => relation.name === 'imageLink');++ if (targetRelations.length > 1) {+ return false;+ }++ const parentNote = this.getParentNotes()[0]; // at this point note can have only one parent+ const referencingNote = targetRelations[0]?.getNote();++ if (referencingNote && parentNote !== referencingNote) {+ return false;+ } else if (parentNote.type !== 'text' || !parentNote.isContentAvailable()) {+ return false;+ }++ return true;+ }++ /**+ * Some notes are eligible for conversion into an attachment of its parent, note must have these properties:+ * - it has exactly one target relation+ * - it has a relation from its parent note+ * - it has no children+ * - it has no clones+ * - parent is of type text+ * - both notes are either unprotected or user is in protected session+ *+ * Currently, works only for image notes.+ *+ * In future this functionality might get more generic and some of the requirements relaxed.+ *+ * @params {Object} [opts]+ * @params {bolean} [opts.force=false} it is envisioned that user can force the conversion even if some conditions+ * are not satisfied (e.g. relation to parent doesn't exist).+ *+ * @returns {BAttachment|null} - null if note is not eligible for conversion+ */+ convertToParentAttachment(opts = {force: false}) {+ if (!this.isEligibleForConversionToAttachment()) {+ return null;+ }++ const content = this.getContent();++ const parentNote = this.getParentNotes()[0];+ const attachment = parentNote.saveAttachment({+ role: 'image',+ mime: this.mime,+ title: this.title,+ content: content+ });++ let parentContent = parentNote.getContent();++ const oldNoteUrl = `api/images/${this.noteId}/`;+ const newAttachmentUrl = `api/attachments/${attachment.attachmentId}/image/`;++ const fixedContent = utils.replaceAll(parentContent, oldNoteUrl, newAttachmentUrl);++ parentNote.setContent(fixedContent);++ this.deleteNote();++ return attachment;+ }+/*** (Soft) delete a note and all its descendants.*- * @param {string} [deleteId] - optional delete identified+ * @param {string} [deleteId=null] - optional delete identified* @param {TaskContext} [taskContext]*/- deleteNote(deleteId, taskContext) {+ deleteNote(deleteId = null, taskContext = null) {if (this.isDeleted) {return;}@@ -1519,7 +1558,7 @@ class BNote extends AbstractBeccaEntity {if (this.isProtected && !this.isDecrypted && protectedSessionService.isProtectedSessionAvailable()) {try {this.title = protectedSessionService.decryptString(this.title);- this.flatTextCache = null;+ this.__flatTextCache = null;this.isDecrypted = true;}@@ -1538,42 +1577,87 @@ class BNote extends AbstractBeccaEntity {}get isDeleted() {+ // isBeingDeleted is relevant only in the transition period when the deletion process have begun, but not yet+ // finished (note is still in becca)return !(this.noteId in this.becca.notes) || this.isBeingDeleted;}/**- * @returns {BNoteRevision|null}+ * @returns {BRevision|null}*/- saveNoteRevision() {- const content = this.getContent();+ saveRevision() {+ return sql.transactional(() => {+ let noteContent = this.getContent();+ const contentMetadata = this.getContentMetadata();- if (!content || (Buffer.isBuffer(content) && content.byteLength === 0)) {- return null;- }+ const revision = new BRevision({+ noteId: this.noteId,+ // title and text should be decrypted now+ title: this.title,+ type: this.type,+ mime: this.mime,+ isProtected: this.isProtected,+ utcDateLastEdited: this.utcDateModified > contentMetadata.utcDateModified+ ? this.utcDateModified+ : contentMetadata.utcDateModified,+ utcDateCreated: dateUtils.utcNowDateTime(),+ utcDateModified: dateUtils.utcNowDateTime(),+ dateLastEdited: this.dateModified > contentMetadata.dateModified+ ? this.dateModified+ : contentMetadata.dateModified,+ dateCreated: dateUtils.localNowDateTime()+ }, true);++ revision.save(); // to generate revisionId, which is then used to save attachments++ if (this.type === 'text') {+ for (const noteAttachment of this.getAttachments()) {+ if (noteAttachment.utcDateScheduledForErasureSince) {+ continue;+ }- const contentMetadata = this.getContentMetadata();+ const revisionAttachment = noteAttachment.copy();+ revisionAttachment.parentId = revision.revisionId;+ revisionAttachment.setContent(noteAttachment.getContent(), {forceSave: true});- const noteRevision = new BNoteRevision({- noteId: this.noteId,- // title and text should be decrypted now- title: this.title,- type: this.type,- mime: this.mime,- isProtected: this.isProtected,- utcDateLastEdited: this.utcDateModified > contentMetadata.utcDateModified- ? this.utcDateModified- : contentMetadata.utcDateModified,- utcDateCreated: dateUtils.utcNowDateTime(),- utcDateModified: dateUtils.utcNowDateTime(),- dateLastEdited: this.dateModified > contentMetadata.dateModified- ? this.dateModified- : contentMetadata.dateModified,- dateCreated: dateUtils.localNowDateTime()- }, true).save();+ // content is rewritten to point to the revision attachments+ noteContent = noteContent.replaceAll(`attachments/${noteAttachment.attachmentId}`, `attachments/${revisionAttachment.attachmentId}`);+ }++ revision.setContent(noteContent, {forceSave: true});+ }++ return revision;+ });+ }++ /**+ * @returns {BAttachment}+ */+ saveAttachment({attachmentId, role, mime, title, content, position}) {+ let attachment;- noteRevision.setContent(content);+ if (attachmentId) {+ attachment = this.becca.getAttachmentOrThrow(attachmentId);+ } else {+ attachment = new BAttachment({+ parentId: this.noteId,+ title,+ role,+ mime,+ isProtected: this.isProtected,+ position+ });+ }++ content = content || "";+ attachment.setContent(content, {forceSave: true});++ return attachment;+ }- return noteRevision;+ getFileName() {+ return utils.formatDownloadTitle(this.title, this.type, this.mime);}beforeSaving() {@@ -1592,6 +1676,7 @@ class BNote extends AbstractBeccaEntity {isProtected: this.isProtected,type: this.type,mime: this.mime,+ blobId: this.blobId,isDeleted: false,dateCreated: this.dateCreated,dateModified: this.dateModified,@@ -1628,7 +1713,7 @@ module.exports = BNote;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_bnote_revision.js.html b/docs/backend_api/becca_entities_bnote_revision.js.htmldeleted file mode 100644index ea663e51f8..0000000000--- a/docs/backend_api/becca_entities_bnote_revision.js.html+++ /dev/null@@ -1,244 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="utf-8">- <title>JSDoc: Source: becca/entities/bnote_revision.js</title>-- <script src="scripts/prettify/prettify.js"> </script>- <script src="scripts/prettify/lang-css.js"> </script>- <!--[if lt IE 9]>- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>- <![endif]-->- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">-</head>--<body>--<div id="main">-- <h1 class="page-title">Source: becca/entities/bnote_revision.js</h1>------- <section>- <article>- <pre class="prettyprint source linenums"><code>"use strict";--const protectedSessionService = require('../../services/protected_session');-const utils = require('../../services/utils');-const sql = require('../../services/sql');-const dateUtils = require('../../services/date_utils');-const becca = require('../becca');-const entityChangesService = require('../../services/entity_changes');-const AbstractBeccaEntity = require("./abstract_becca_entity");--/**- * NoteRevision represents snapshot of note's title and content at some point in the past.- * It's used for seamless note versioning.- *- * @extends AbstractBeccaEntity- */-class BNoteRevision extends AbstractBeccaEntity {- static get entityName() { return "note_revisions"; }- static get primaryKeyName() { return "noteRevisionId"; }- static get hashedProperties() { return ["noteRevisionId", "noteId", "title", "isProtected", "dateLastEdited", "dateCreated", "utcDateLastEdited", "utcDateCreated", "utcDateModified"]; }-- constructor(row, titleDecrypted = false) {- super();-- /** @type {string} */- this.noteRevisionId = row.noteRevisionId;- /** @type {string} */- this.noteId = row.noteId;- /** @type {string} */- this.type = row.type;- /** @type {string} */- this.mime = row.mime;- /** @type {boolean} */- this.isProtected = !!row.isProtected;- /** @type {string} */- this.title = row.title;- /** @type {string} */- this.dateLastEdited = row.dateLastEdited;- /** @type {string} */- this.dateCreated = row.dateCreated;- /** @type {string} */- this.utcDateLastEdited = row.utcDateLastEdited;- /** @type {string} */- this.utcDateCreated = row.utcDateCreated;- /** @type {string} */- this.utcDateModified = row.utcDateModified;- /** @type {number} */- this.contentLength = row.contentLength;-- if (this.isProtected && !titleDecrypted) {- this.title = protectedSessionService.isProtectedSessionAvailable()- ? protectedSessionService.decryptString(this.title)- : "[protected]";- }- }-- getNote() {- return becca.notes[this.noteId];- }-- /** @returns {boolean} true if the note has string content (not binary) */- isStringNote() {- return utils.isStringNote(this.type, this.mime);- }-- /*- * Note revision content has quite special handling - it's not a separate entity, but a lazily loaded- * part of NoteRevision entity with its own sync. Reason behind this hybrid design is that- * content can be quite large, and it's not necessary to load it / fill memory for any note access even- * if we don't need a content, especially for bulk operations like search.- *- * This is the same approach as is used for Note's content.- */-- /** @returns {*} */- getContent(silentNotFoundError = false) {- const res = sql.getRow(`SELECT content FROM note_revision_contents WHERE noteRevisionId = ?`, [this.noteRevisionId]);-- if (!res) {- if (silentNotFoundError) {- return undefined;- }- else {- throw new Error(`Cannot find note revision content for noteRevisionId=${this.noteRevisionId}`);- }- }-- let content = res.content;-- if (this.isProtected) {- if (protectedSessionService.isProtectedSessionAvailable()) {- content = protectedSessionService.decrypt(content);- }- else {- content = "";- }- }-- if (this.isStringNote()) {- return content === null- ? ""- : content.toString("UTF-8");- }- else {- return content;- }- }-- setContent(content) {- const pojo = {- noteRevisionId: this.noteRevisionId,- content: content,- utcDateModified: dateUtils.utcNowDateTime()- };-- if (this.isProtected) {- if (protectedSessionService.isProtectedSessionAvailable()) {- pojo.content = protectedSessionService.encrypt(pojo.content);- }- else {- throw new Error(`Cannot update content of noteRevisionId=${this.noteRevisionId} since we're out of protected session.`);- }- }-- sql.upsert("note_revision_contents", "noteRevisionId", pojo);-- const hash = utils.hash(`${this.noteRevisionId}|${pojo.content.toString()}`);-- entityChangesService.addEntityChange({- entityName: 'note_revision_contents',- entityId: this.noteRevisionId,- hash: hash,- isErased: false,- utcDateChanged: this.getUtcDateChanged(),- isSynced: true- });- }-- /** @returns {{contentLength, dateModified, utcDateModified}} */- getContentMetadata() {- return sql.getRow(`- SELECT- LENGTH(content) AS contentLength,- dateModified,- utcDateModified- FROM note_revision_contents- WHERE noteRevisionId = ?`, [this.noteRevisionId]);- }-- beforeSaving() {- super.beforeSaving();-- this.utcDateModified = dateUtils.utcNowDateTime();- }-- getPojo() {- return {- noteRevisionId: this.noteRevisionId,- noteId: this.noteId,- type: this.type,- mime: this.mime,- isProtected: this.isProtected,- title: this.title,- dateLastEdited: this.dateLastEdited,- dateCreated: this.dateCreated,- utcDateLastEdited: this.utcDateLastEdited,- utcDateCreated: this.utcDateCreated,- utcDateModified: this.utcDateModified,- content: this.content, // used when retrieving full note revision to frontend- contentLength: this.contentLength- };- }-- getPojoToSave() {- const pojo = this.getPojo();- delete pojo.content; // not getting persisted- delete pojo.contentLength; // not getting persisted-- if (pojo.isProtected) {- if (protectedSessionService.isProtectedSessionAvailable()) {- pojo.title = protectedSessionService.encrypt(this.title);- }- else {- // updating protected note outside of protected session means we will keep original ciphertexts- delete pojo.title;- }- }-- return pojo;- }-}--module.exports = BNoteRevision;-</code></pre>- </article>- </section>-----</div>--<nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>-</nav>--<br class="clear">--<footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a>-</footer>--<script> prettyPrint(); </script>-<script src="scripts/linenumber.js"> </script>-</body>-</html>diff --git a/docs/backend_api/becca_entities_boption.js.html b/docs/backend_api/becca_entities_boption.js.htmlindex 0f2856fdcb..a6dfc490a8 100644--- a/docs/backend_api/becca_entities_boption.js.html+++ b/docs/backend_api/becca_entities_boption.js.html@@ -86,7 +86,7 @@ module.exports = BOption;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/becca_entities_brecent_note.js.html b/docs/backend_api/becca_entities_brecent_note.js.htmlindex 02f6858fb0..f4cb341dc1 100644--- a/docs/backend_api/becca_entities_brecent_note.js.html+++ b/docs/backend_api/becca_entities_brecent_note.js.html@@ -71,7 +71,7 @@ module.exports = BRecentNote;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/index.html b/docs/backend_api/index.htmlindex f9f7919b5f..d3d940f885 100644--- a/docs/backend_api/index.html+++ b/docs/backend_api/index.html@@ -50,7 +50,7 @@</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/module-sql.html b/docs/backend_api/module-sql.htmlindex 2605d65303..aa0b94eda2 100644--- a/docs/backend_api/module-sql.html+++ b/docs/backend_api/module-sql.html@@ -1294,7 +1294,7 @@</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/services_backend_script_api.js.html b/docs/backend_api/services_backend_script_api.js.htmlindex bffce4bcd6..ad5eb02f4a 100644--- a/docs/backend_api/services_backend_script_api.js.html+++ b/docs/backend_api/services_backend_script_api.js.html@@ -243,7 +243,7 @@ function BackendScriptApi(currentNote, apiParams) {* @property {boolean} [params.isProtected=false]* @property {boolean} [params.isExpanded=false]* @property {string} [params.prefix='']- * @property {int} [params.notePosition] - default is last existing notePosition in a parent + 10+ * @property {integer} [params.notePosition] - default is last existing notePosition in a parent + 10* @returns {{note: BNote, branch: BBranch}} object contains newly created entities note and branch*/this.createNewNote = noteService.createNewNote;@@ -440,7 +440,7 @@ function BackendScriptApi(currentNote, apiParams) {* Return randomly generated string of given length. This random string generation is NOT cryptographically secure.** @method- * @param {number} length of the string+ * @param {integer} length of the string* @returns {string} random string*/this.randomString = utils.randomString;@@ -578,7 +578,7 @@ module.exports = BackendScriptApi;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/backend_api/services_sql.js.html b/docs/backend_api/services_sql.js.htmlindex 783bf8301f..29891f5333 100644--- a/docs/backend_api/services_sql.js.html+++ b/docs/backend_api/services_sql.js.html@@ -407,7 +407,7 @@ module.exports = {</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BNoteRevision.html">BNoteRevision</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/FAttribute.html b/docs/frontend_api/FAttribute.htmlindex 901dc598c1..1ef4a4ecab 100644--- a/docs/frontend_api/FAttribute.html+++ b/docs/frontend_api/FAttribute.html@@ -416,7 +416,7 @@ and relation (representing named relationship between source and target note)</d-<h4 class="name" id="position"><span class="type-signature"></span>position<span class="type-signature"> :int</span></h4>+<h4 class="name" id="position"><span class="type-signature"></span>position<span class="type-signature"> :integer</span></h4>@@ -427,7 +427,7 @@ and relation (representing named relationship between source and target note)</d<ul><li>-<span class="param-type">int</span>+<span class="param-type">integer</span></li>@@ -844,7 +844,7 @@ and relation (representing named relationship between source and target note)</d</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/FBranch.html b/docs/frontend_api/FBranch.htmlindex 4ec45ea97e..ded0f398c3 100644--- a/docs/frontend_api/FBranch.html+++ b/docs/frontend_api/FBranch.html@@ -420,7 +420,7 @@ parents.</div>-<h4 class="name" id="notePosition"><span class="type-signature"></span>notePosition<span class="type-signature"> :int</span></h4>+<h4 class="name" id="notePosition"><span class="type-signature"></span>notePosition<span class="type-signature"> :integer</span></h4>@@ -431,7 +431,7 @@ parents.</div><ul><li>-<span class="param-type">int</span>+<span class="param-type">integer</span></li>@@ -1056,7 +1056,7 @@ parents.</div></div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/FNote.html b/docs/frontend_api/FNote.htmlindex cf7e9782c0..4002cd53c0 100644--- a/docs/frontend_api/FNote.html+++ b/docs/frontend_api/FNote.html@@ -211,6 +211,77 @@+<h4 class="name" id="attachments"><span class="type-signature"></span>attachments<span class="type-signature"> :Array.<<a href="FAttachment.html">FAttachment</a>>|null</span></h4>+++++++ <h5>Type:</h5>+ <ul>+ <li>++<span class="param-type">Array.<<a href="FAttachment.html">FAttachment</a>></span>+|++<span class="param-type">null</span>+++ </li>+ </ul>++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line55">line 55</a>+ </li></ul></dd>++++++++</dl>++++++++<h4 class="name" id="attributes"><span class="type-signature"></span>attributes<span class="type-signature"> :Array.<string></span></h4>@@ -465,7 +536,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line63">line 63</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line66">line 66</a></li></ul></dd>@@ -537,7 +608,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line73">line 73</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line76">line 76</a></li></ul></dd>@@ -605,7 +676,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line59">line 59</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line62">line 62</a></li></ul></dd>@@ -877,7 +948,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line61">line 61</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line64">line 64</a></li></ul></dd>@@ -949,7 +1020,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line68">line 68</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line71">line 71</a></li></ul></dd>@@ -1029,7 +1100,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line312">line 312</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line354">line 354</a></li></ul></dd>@@ -1087,6 +1158,210 @@+ <h4 class="name" id="getAttachmentById"><span class="type-signature">(async) </span>getAttachmentById<span class="signature">()</span><span class="type-signature"> → {Promise.<<a href="FAttachment.html">FAttachment</a>>}</span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line241">line 241</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Promise.<<a href="FAttachment.html">FAttachment</a>></span>+++ </dd>+</dl>++++++++++++++ <h4 class="name" id="getAttachments"><span class="type-signature">(async) </span>getAttachments<span class="signature">()</span><span class="type-signature"> → {Promise.<Array.<<a href="FAttachment.html">FAttachment</a>>>}</span></h4>+++++++++++++++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line232">line 232</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Promise.<Array.<<a href="FAttachment.html">FAttachment</a>>></span>+++ </dd>+</dl>+++++++++++++<h4 class="name" id="getAttribute"><span class="type-signature"></span>getAttribute<span class="signature">(type, name)</span><span class="type-signature"> → {<a href="FAttribute.html">FAttribute</a>}</span></h4>@@ -1207,7 +1482,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line580">line 580</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line612">line 612</a></li></ul></dd>@@ -1236,7 +1511,7 @@<div class="param-desc">- attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.+ attribute of the given type and name. If there are more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.</div>@@ -1385,7 +1660,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line602">line 602</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line634">line 634</a></li></ul></dd>@@ -1414,7 +1689,7 @@<div class="param-desc">- attribute value of given type and name or null if no such attribute exists.+ attribute value of the given type and name or null if no such attribute exists.</div>@@ -1585,7 +1860,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line246">line 246</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line288">line 288</a></li></ul></dd>@@ -1651,7 +1926,7 @@<div class="description">- Returns note path considered to be the "best"+ Returns the note path considered to be the "best"</div>@@ -1764,7 +2039,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line368">line 368</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line407">line 407</a></li></ul></dd>@@ -1830,7 +2105,7 @@<div class="description">- Returns note path considered to be the "best"+ Returns the note path considered to be the "best"</div>@@ -1943,7 +2218,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line378">line 378</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line417">line 417</a></li></ul></dd>@@ -2001,6 +2276,172 @@+ <h4 class="name" id="getBlob"><span class="type-signature">(async) </span>getBlob<span class="signature">()</span><span class="type-signature"> → {Promise.<FBlob>}</span></h4>+++++++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>+++ <th>Attributes</th>++++ <th>Default</th>+++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>opts.preview</code></td>+++ <td class="type">++ </td>+++ <td class="attributes">++ <optional><br>++++++ </td>++++ <td class="default">++ false++ </td>+++ <td class="description last">retrieve only first 10 000 characters for a preview</td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line862">line 862</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">Promise.<FBlob></span>+++ </dd>+</dl>+++++++++++++<h4 class="name" id="getBranchIds"><span class="type-signature"></span>getBranchIds<span class="signature">()</span><span class="type-signature"> → {Array.<string>}</span></h4>@@ -2051,7 +2492,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line150">line 150</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line153">line 153</a></li></ul></dd>@@ -2155,7 +2596,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line167">line 167</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line170">line 170</a></li></ul></dd>@@ -2257,7 +2698,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line177">line 177</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line180">line 180</a></li></ul></dd>@@ -2359,7 +2800,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line219">line 219</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line222">line 222</a></li></ul></dd>@@ -2461,7 +2902,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line224">line 224</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line227">line 227</a></li></ul></dd>@@ -2612,7 +3053,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line656">line 656</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line688">line 688</a></li></ul></dd>@@ -2767,7 +3208,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line680">line 680</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line712">line 712</a></li></ul></dd>@@ -2934,7 +3375,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line459">line 459</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line498">line 498</a></li></ul></dd>@@ -2992,17 +3433,13 @@- <h4 class="name" id="getNoteComplement"><span class="type-signature">(async) </span>getNoteComplement<span class="signature">()</span><span class="type-signature"> → {Promise.<<a href="FNoteComplement.html">FNoteComplement</a>>}</span></h4>+ <h4 class="name" id="getNoteComplement"><span class="type-signature">(async) </span>getNoteComplement<span class="signature">()</span><span class="type-signature"> → {Promise.<FBlob>}</span></h4>-<div class="description">- Return note complement which is most importantly note's content-</div>-@@ -3032,6 +3469,8 @@+ <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getBlob() instead</li></ul></dd>+@@ -3044,7 +3483,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line823">line 823</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line854">line 854</a></li></ul></dd>@@ -3080,7 +3519,7 @@</dt><dd>-<span class="param-type">Promise.<<a href="FNoteComplement.html">FNoteComplement</a>></span>+<span class="param-type">Promise.<FBlob></span></dd>@@ -3146,7 +3585,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line722">line 722</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line754">line 754</a></li></ul></dd>@@ -3320,7 +3759,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line569">line 569</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line601">line 601</a></li></ul></dd>@@ -3349,7 +3788,7 @@<div class="param-desc">- attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.+ attribute of the given type and name. If there are more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.</div>@@ -3498,7 +3937,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line591">line 591</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line623">line 623</a></li></ul></dd>@@ -3527,7 +3966,7 @@<div class="param-desc">- attribute value of given type and name or null if no such attribute exists.+ attribute value of the given type and name or null if no such attribute exists.</div>@@ -3698,7 +4137,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line233">line 233</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line275">line 275</a></li></ul></dd>@@ -3853,7 +4292,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line650">line 650</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line682">line 682</a></li></ul></dd>@@ -4008,7 +4447,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line674">line 674</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line706">line 706</a></li></ul></dd>@@ -4175,7 +4614,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line451">line 451</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line490">line 490</a></li></ul></dd>@@ -4330,7 +4769,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line662">line 662</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line694">line 694</a></li></ul></dd>@@ -4485,7 +4924,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line686">line 686</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line718">line 718</a></li></ul></dd>@@ -4652,7 +5091,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line532">line 532</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line564">line 564</a></li></ul></dd>@@ -4758,7 +5197,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line142">line 142</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line145">line 145</a></li></ul></dd>@@ -4860,7 +5299,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line157">line 157</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line160">line 160</a></li></ul></dd>@@ -4962,7 +5401,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line185">line 185</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line188">line 188</a></li></ul></dd>@@ -5064,7 +5503,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line190">line 190</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line193">line 193</a></li></ul></dd>@@ -5215,7 +5654,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line668">line 668</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line700">line 700</a></li></ul></dd>@@ -5370,7 +5809,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line698">line 698</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line730">line 730</a></li></ul></dd>@@ -5540,7 +5979,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line708">line 708</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line740">line 740</a></li></ul></dd>@@ -5691,7 +6130,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line692">line 692</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line724">line 724</a></li></ul></dd>@@ -5858,7 +6297,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line540">line 540</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line572">line 572</a></li></ul></dd>@@ -5964,7 +6403,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line867">line 867</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line906">line 906</a></li></ul></dd>@@ -6142,7 +6581,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line337">line 337</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line376">line 376</a></li></ul></dd>@@ -6196,7 +6635,7 @@- <h4 class="name" id="getTargetRelationSourceNotes"><span class="type-signature">(async) </span>getTargetRelationSourceNotes<span class="signature">()</span><span class="type-signature"> → {Array.<<a href="FNote.html">FNote</a>>}</span></h4>+ <h4 class="name" id="getTargetRelationSourceNotes"><span class="type-signature">(async) </span>getTargetRelationSourceNotes<span class="signature">()</span><span class="type-signature"> → {Promise.<Array.<<a href="FNote.html">FNote</a>>>}</span></h4>@@ -6248,7 +6687,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line812">line 812</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line844">line 844</a></li></ul></dd>@@ -6284,7 +6723,7 @@</dt><dd>-<span class="param-type">Array.<<a href="FNote.html">FNote</a>></span>+<span class="param-type">Promise.<Array.<<a href="FNote.html">FNote</a>>></span></dd>@@ -6354,7 +6793,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line802">line 802</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line834">line 834</a></li></ul></dd>@@ -6528,7 +6967,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line549">line 549</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line581">line 581</a></li></ul></dd>@@ -6634,7 +7073,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line172">line 172</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line175">line 175</a></li></ul></dd>@@ -6785,7 +7224,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line618">line 618</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line650">line 650</a></li></ul></dd>@@ -6963,7 +7402,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line560">line 560</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line592">line 592</a></li></ul></dd>@@ -7118,7 +7557,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line612">line 612</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line644">line 644</a></li></ul></dd>@@ -7273,7 +7712,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line638">line 638</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line670">line 670</a></li></ul></dd>@@ -7428,7 +7867,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line644">line 644</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line676">line 676</a></li></ul></dd>@@ -7536,7 +7975,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line795">line 795</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line827">line 827</a></li></ul></dd>@@ -7620,7 +8059,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line387">line 387</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line426">line 426</a></li></ul></dd>@@ -7714,7 +8153,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line862">line 862</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line901">line 901</a></li></ul></dd>@@ -7820,7 +8259,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line854">line 854</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line893">line 893</a></li></ul></dd>@@ -7926,7 +8365,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line115">line 115</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line118">line 118</a></li></ul></dd>@@ -8077,7 +8516,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line624">line 624</a>+ <a href="entities_fnote.js.html">entities/fnote.js</a>, <a href="entities_fnote.js.html#line656">line 656</a></li></ul></dd>@@ -8145,7 +8584,7 @@</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/FNoteComplement.html b/docs/frontend_api/FNoteComplement.htmldeleted file mode 100644index 1cac29fba6..0000000000--- a/docs/frontend_api/FNoteComplement.html+++ /dev/null@@ -1,790 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="utf-8">- <title>JSDoc: Class: FNoteComplement</title>-- <script src="scripts/prettify/prettify.js"> </script>- <script src="scripts/prettify/lang-css.js"> </script>- <!--[if lt IE 9]>- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>- <![endif]-->- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">-</head>--<body>--<div id="main">-- <h1 class="page-title">Class: FNoteComplement</h1>-------<section>--<header>-- <h2><span class="attribs"><span class="type-signature"></span></span>FNoteComplement<span class="signature">()</span><span class="type-signature"></span></h2>-- <div class="class-description">Complements the FNote with the main note content and other extra attributes</div>---</header>--<article>- <div class="container-overview">----- <h2>Constructor</h2>---- <h4 class="name" id="FNoteComplement"><span class="type-signature"></span>new FNoteComplement<span class="signature">()</span><span class="type-signature"></span></h4>-------------------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line4">line 4</a>- </li></ul></dd>--------</dl>---------------------- </div>--------------- <h3 class="subsection-title">Members</h3>----<h4 class="name" id="combinedDateModified"><span class="type-signature"></span>combinedDateModified<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line33">line 33</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="combinedUtcDateModified"><span class="type-signature"></span>combinedUtcDateModified<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line36">line 36</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="content"><span class="type-signature"></span>content<span class="type-signature"> :string</span></h4>-----<div class="description">- can either contain the whole content (in e.g. string notes), only part (large text notes) or nothing at all (binary notes, images)-</div>---- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line13">line 13</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="contentLength"><span class="type-signature"></span>contentLength<span class="type-signature"> :int</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">int</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line16">line 16</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="dateCreated"><span class="type-signature"></span>dateCreated<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line19">line 19</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="dateModified"><span class="type-signature"></span>dateModified<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line22">line 22</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="noteId"><span class="type-signature"></span>noteId<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line7">line 7</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="utcDateCreated"><span class="type-signature"></span>utcDateCreated<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line25">line 25</a>- </li></ul></dd>--------</dl>---------<h4 class="name" id="utcDateModified"><span class="type-signature"></span>utcDateModified<span class="type-signature"> :string</span></h4>------- <h5>Type:</h5>- <ul>- <li>--<span class="param-type">string</span>--- </li>- </ul>------<dl class="details">--------------------------- <dt class="tag-source">Source:</dt>- <dd class="tag-source"><ul class="dummy"><li>- <a href="entities_fnote_complement.js.html">entities/fnote_complement.js</a>, <a href="entities_fnote_complement.js.html#line28">line 28</a>- </li></ul></dd>--------</dl>---------------</article>--</section>-----</div>--<nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>-</nav>--<br class="clear">--<footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a>-</footer>--<script> prettyPrint(); </script>-<script src="scripts/linenumber.js"> </script>-</body>-</html>\ No newline at end of filediff --git a/docs/frontend_api/FrontendScriptApi.html b/docs/frontend_api/FrontendScriptApi.htmlindex 5e94a32c20..a61c1a6bbd 100644--- a/docs/frontend_api/FrontendScriptApi.html+++ b/docs/frontend_api/FrontendScriptApi.html@@ -625,7 +625,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s- <td class="description last">where script is currently executing</td>+ <td class="description last">where the script is currently executing</td></tr>@@ -958,7 +958,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s- <td class="description last">where script started executing</td>+ <td class="description last">where the script started executing</td></tr>@@ -2021,7 +2021,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s- <h4 class="name" id="createNoteLink"><span class="type-signature"></span>createNoteLink<span class="signature">(notePath, params<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>+ <h4 class="name" id="createLink"><span class="type-signature"></span>createLink<span class="signature">(notePath, params<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>@@ -2029,7 +2029,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s<div class="description">- Create note link (jQuery object) for given note.+ Create a note link (jQuery object) for given note.</div>@@ -2540,6 +2540,161 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s+ <h4 class="name" id="formatNoteSize"><span class="type-signature"></span>formatNoteSize<span class="signature">(size)</span><span class="type-signature"> → {string}</span></h4>+++++++++++++++ <h5>Parameters:</h5>+++<table class="params">+ <thead>+ <tr>++ <th>Name</th>+++ <th>Type</th>++++++ <th class="last">Description</th>+ </tr>+ </thead>++ <tbody>+++ <tr>++ <td class="name"><code>size</code></td>+++ <td class="type">+++<span class="param-type">int</span>++++ </td>++++++ <td class="description last">in bytes</td>+ </tr>+++ </tbody>+</table>+++++++<dl class="details">+++++++++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line491">line 491</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++<div class="param-desc">+ formatted string+</div>++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type">string</span>+++ </dd>+</dl>+++++++++++++<h4 class="name" id="getActiveContextCodeEditor"><span class="type-signature"></span>getActiveContextCodeEditor<span class="signature">()</span><span class="type-signature"> → {Promise.<CodeMirror>}</span></h4>@@ -2833,7 +2988,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s<div class="param-desc">- returns note path of active note or null if there isn't active note+ returns a note path of active note or null if there isn't active note</div>@@ -2862,7 +3017,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s- <h4 class="name" id="getActiveContextTextEditor"><span class="type-signature"></span>getActiveContextTextEditor<span class="signature">()</span><span class="type-signature"> → {Promise.<CKEditor>}</span></h4>+ <h4 class="name" id="getActiveContextTextEditor"><span class="type-signature"></span>getActiveContextTextEditor<span class="signature">()</span><span class="type-signature"> → {Promise.<BalloonEditor>}</span></h4>@@ -2870,7 +3025,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s<div class="description">- See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html for a documentation on the returned instance.+ See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html for documentation on the returned instance.</div>@@ -2954,7 +3109,7 @@ available in the JS frontend notes. You can use e.g. <code>api.showMessage(api.s</dt><dd>-<span class="param-type">Promise.<CKEditor></span>+<span class="param-type">Promise.<BalloonEditor></span></dd>@@ -3087,7 +3242,7 @@ implementation of actual widget type.<div class="description">- Returns component which owns given DOM element (the nearest parent component in DOM tree)+ Returns component which owns the given DOM element (the nearest parent component in DOM tree)</div>@@ -3659,7 +3814,7 @@ if some action needs to happen on only one specific instance.<div class="description">- Returns note by given noteId. If note is missing from cache, it's loaded.+ Returns note by given noteId. If note is missing from the cache, it's loaded.*</div>@@ -3815,10 +3970,10 @@ if some action needs to happen on only one specific instance.<div class="description">- Returns list of notes. If note is missing from cache, it's loaded.+ Returns list of notes. If note is missing from the cache, it's loaded.This is often used to bulk-fill the cache with notes which would have to be picked one by one-otherwise (by e.g. createNoteLink())+otherwise (by e.g. createLink())</div>@@ -4520,7 +4675,7 @@ otherwise (by e.g. createNoteLink())<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line495">line 495</a>+ <a href="services_frontend_script_api.js.html">services/frontend_script_api.js</a>, <a href="services_frontend_script_api.js.html#line502">line 502</a></li></ul></dd>@@ -5483,7 +5638,7 @@ otherwise (by e.g. createNoteLink())<td class="type">-<span class="param-type">number</span>+<span class="param-type">integer</span>@@ -6688,7 +6843,7 @@ Internally this serializes the anonymous function into string and sends it to ba<div class="description">- Show error message to the user.+ Show an error message to the user.</div>@@ -6825,7 +6980,7 @@ Internally this serializes the anonymous function into string and sends it to ba<div class="description">- Show info message to the user.+ Show an info message to the user.</div>@@ -6962,7 +7117,7 @@ Internally this serializes the anonymous function into string and sends it to ba<div class="description">- Trigger command.+ Trigger command. This is a very low-level API which should be avoided if possible.</div>@@ -7122,7 +7277,7 @@ Internally this serializes the anonymous function into string and sends it to ba<div class="description">- Trigger event.+ Trigger event. This is a very low-level API which should be avoided if possible.</div>@@ -7282,11 +7437,11 @@ Internally this serializes the anonymous function into string and sends it to ba<div class="description">- Trilium runs in backend and frontend process, when something is changed on the backend from script,+ Trilium runs in a backend and frontend process, when something is changed on the backend from a script,frontend will get asynchronously synchronized.This method returns a promise which resolves once all the backend -> frontend synchronization is finished.-Typical use case is when new note has been created, we should wait until it is synced into frontend and only then activate it.+Typical use case is when a new note has been created, we should wait until it is synced into frontend and only then activate it.</div>@@ -7394,7 +7549,7 @@ Typical use case is when new note has been created, we should wait until it is s</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/entities_fattribute.js.html b/docs/frontend_api/entities_fattribute.js.htmlindex a9cb49a5f4..690ae0b49b 100644--- a/docs/frontend_api/entities_fattribute.js.html+++ b/docs/frontend_api/entities_fattribute.js.html@@ -50,7 +50,7 @@ class FAttribute {this.name = row.name;/** @type {string} */this.value = row.value;- /** @type {int} */+ /** @type {integer} */this.position = row.position;/** @type {boolean} */this.isInheritable = !!row.isInheritable;@@ -115,7 +115,7 @@ export default FAttribute;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/entities_fbranch.js.html b/docs/frontend_api/entities_fbranch.js.htmlindex deae06846d..6a51a59a81 100644--- a/docs/frontend_api/entities_fbranch.js.html+++ b/docs/frontend_api/entities_fbranch.js.html@@ -47,7 +47,7 @@ class FBranch {this.noteId = row.noteId;/** @type {string} */this.parentNoteId = row.parentNoteId;- /** @type {int} */+ /** @type {integer} */this.notePosition = row.notePosition;/** @type {string} */this.prefix = row.prefix;@@ -99,7 +99,7 @@ export default FBranch;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/entities_fnote.js.html b/docs/frontend_api/entities_fnote.js.htmlindex 84616e2cbf..db2d8c859e 100644--- a/docs/frontend_api/entities_fnote.js.html+++ b/docs/frontend_api/entities_fnote.js.html@@ -29,10 +29,10 @@<pre class="prettyprint source linenums"><code>import server from '../services/server.js';import noteAttributeCache from "../services/note_attribute_cache.js";import ws from "../services/ws.js";-import options from "../services/options.js";import froca from "../services/froca.js";import protectedSessionHolder from "../services/protected_session_holder.js";import cssClassManager from "../services/css_class_manager.js";+import FAttachment from "./fattachment.js";const LABEL = 'label';const RELATION = 'relation';@@ -79,6 +79,9 @@ class FNote {/** @type {Object.<string, string>} */this.childToBranch = {};+ /** @type {FAttachment[]|null} */+ this.attachments = null; // lazy loaded+this.update(row);}@@ -220,7 +223,7 @@ class FNote {}// will sort the parents so that non-search & non-archived are first and archived at the end- // this is done so that non-search & non-archived paths are always explored as first when looking for note path+ // this is done so that non-search & non-archived paths are always explored as first when looking for a note pathsortParents() {this.parents.sort((aNoteId, bNoteId) => {const aBranchId = this.parentToBranch[aNoteId];@@ -253,6 +256,45 @@ class FNote {return await this.froca.getNotes(this.children);}+ /** @returns {Promise<FAttachment[]>} */+ async getAttachments() {+ if (!this.attachments) {+ this.attachments = await this.froca.getAttachmentsForNote(this.noteId);+ }++ return this.attachments;+ }++ /** @returns {Promise<FAttachment>} */+ async getAttachmentById(attachmentId) {+ const attachments = await this.getAttachments();++ return attachments.find(att => att.attachmentId === attachmentId);+ }++ isEligibleForConversionToAttachment() {+ if (this.type !== 'image' || !this.isContentAvailable() || this.hasChildren() || this.getParentBranches().length !== 1) {+ return false;+ }++ const targetRelations = this.getTargetRelations().filter(relation => relation.name === 'imageLink');++ if (targetRelations.length > 1) {+ return false;+ }++ const parentNote = this.getParentNotes()[0]; // at this point note can have only one parent+ const referencingNote = targetRelations[0]?.getNote();++ if (referencingNote && referencingNote !== parentNote) {+ return false;+ } else if (parentNote.type !== 'text' || !parentNote.isContentAvailable()) {+ return false;+ }++ return true;+ }+/*** @param {string} [type] - (optional) attribute type to filter* @param {string} [name] - (optional) attribute name to filter@@ -343,13 +385,10 @@ class FNote {}const parentNotes = this.getParentNotes().filter(note => note.type !== 'search');- let notePaths = [];- if (parentNotes.length === 1) { // optimization for most common case- notePaths = parentNotes[0].getAllNotePaths();- } else {- notePaths = parentNotes.flatMap(parentNote => parentNote.getAllNotePaths());- }+ const notePaths = parentNotes.length === 1+ ? parentNotes[0].getAllNotePaths() // optimization for the most common case+ : parentNotes.flatMap(parentNote => parentNote.getAllNotePaths());for (const notePath of notePaths) {notePath.push(this.noteId);@@ -388,7 +427,7 @@ class FNote {}/**- * Returns note path considered to be the "best"+ * Returns the note path considered to be the "best"** @param {string} [hoistedNoteId='root']* @return {string[]} array of noteIds constituting the particular note path@@ -398,7 +437,7 @@ class FNote {}/**- * Returns note path considered to be the "best"+ * Returns the note path considered to be the "best"** @param {string} [hoistedNoteId='root']* @return {string} serialized note path (e.g. 'root/a1h315/js725h')@@ -538,17 +577,10 @@ class FNote {return;}- if (options.is("hideIncludedImages_main")) {- const imageLinks = this.getRelations('imageLink');-- // image is already visible in the parent note so no need to display it separately in the book- childBranches = childBranches.filter(branch => !imageLinks.find(rel => rel.value === branch.noteId));- }-// we're not checking hideArchivedNotes since that would mean we need to lazy load the child notes// which would seriously slow down everything.// we check this flag only once user chooses to expand the parent. This has the negative consequence that- // note may appear as folder but not contain any children when all of them are archived+ // note may appear as a folder but not contain any children when all of them are archivedreturn childBranches;}@@ -592,7 +624,7 @@ class FNote {/*** @param {string} type - attribute type (label, relation, etc.)* @param {string} name - attribute name- * @returns {FAttribute} attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.+ * @returns {FAttribute} attribute of the given type and name. If there are more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.*/getOwnedAttribute(type, name) {const attributes = this.getOwnedAttributes();@@ -603,7 +635,7 @@ class FNote {/*** @param {string} type - attribute type (label, relation, etc.)* @param {string} name - attribute name- * @returns {FAttribute} attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.+ * @returns {FAttribute} attribute of the given type and name. If there are more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.*/getAttribute(type, name) {const attributes = this.getAttributes();@@ -614,7 +646,7 @@ class FNote {/*** @param {string} type - attribute type (label, relation, etc.)* @param {string} name - attribute name- * @returns {string} attribute value of given type and name or null if no such attribute exists.+ * @returns {string} attribute value of the given type and name or null if no such attribute exists.*/getOwnedAttributeValue(type, name) {const attr = this.getOwnedAttribute(type, name);@@ -625,7 +657,7 @@ class FNote {/*** @param {string} type - attribute type (label, relation, etc.)* @param {string} name - attribute name- * @returns {string} attribute value of given type and name or null if no such attribute exists.+ * @returns {string} attribute value of the given type and name or null if no such attribute exists.*/getAttributeValue(type, name) {const attr = this.getAttribute(type, name);@@ -757,7 +789,7 @@ class FNote {}getPromotedDefinitionAttributes() {- if (this.hasLabel('hidePromotedAttributes')) {+ if (this.isLabelTruthy('hidePromotedAttributes')) {return [];}@@ -769,7 +801,7 @@ class FNote {return def && def.isPromoted;});- // attrs are not resorted if position changes after initial load+ // attrs are not resorted if position changes after the initial loadpromotedAttrs.sort((a, b) => {if (a.noteId === b.noteId) {return a.position < b.position ? -1 : 1;@@ -835,7 +867,7 @@ class FNote {/*** Get relations which target this note*- * @returns {FNote[]}+ * @returns {Promise<FNote[]>}*/async getTargetRelationSourceNotes() {const targetRelations = this.getTargetRelations();@@ -844,12 +876,19 @@ class FNote {}/**- * Return note complement which is most importantly note's content- *- * @returns {Promise<FNoteComplement>}+ * @deprecated use getBlob() instead+ * @return {Promise<FBlob>}*/async getNoteComplement() {- return await this.froca.getNoteComplement(this.noteId);+ return this.getBlob();+ }++ /**+ * @param [opts.preview=false] - retrieve only first 10 000 characters for a preview+ * @return {Promise<FBlob>}+ */+ async getBlob(opts = {}) {+ return await this.froca.getBlob('notes', this.noteId, opts);}toString() {@@ -971,7 +1010,7 @@ export default FNote;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/entities_fnote_complement.js.html b/docs/frontend_api/entities_fnote_complement.js.htmldeleted file mode 100644index 252ea6a2fb..0000000000--- a/docs/frontend_api/entities_fnote_complement.js.html+++ /dev/null@@ -1,91 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>- <meta charset="utf-8">- <title>JSDoc: Source: entities/fnote_complement.js</title>-- <script src="scripts/prettify/prettify.js"> </script>- <script src="scripts/prettify/lang-css.js"> </script>- <!--[if lt IE 9]>- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>- <![endif]-->- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">-</head>--<body>--<div id="main">-- <h1 class="page-title">Source: entities/fnote_complement.js</h1>------- <section>- <article>- <pre class="prettyprint source linenums"><code>/**- * Complements the FNote with the main note content and other extra attributes- */-class FNoteComplement {- constructor(row) {- /** @type {string} */- this.noteId = row.noteId;-- /**- * can either contain the whole content (in e.g. string notes), only part (large text notes) or nothing at all (binary notes, images)- * @type {string}- */- this.content = row.content;-- /** @type {int} */- this.contentLength = row.contentLength;-- /** @type {string} */- this.dateCreated = row.dateCreated;-- /** @type {string} */- this.dateModified = row.dateModified;-- /** @type {string} */- this.utcDateCreated = row.utcDateCreated;-- /** @type {string} */- this.utcDateModified = row.utcDateModified;-- // "combined" date modified give larger out of note's and note_content's dateModified-- /** @type {string} */- this.combinedDateModified = row.combinedDateModified;-- /** @type {string} */- this.combinedUtcDateModified = row.combinedUtcDateModified;- }-}--export default FNoteComplement;-</code></pre>- </article>- </section>-----</div>--<nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>-</nav>--<br class="clear">--<footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a>-</footer>--<script> prettyPrint(); </script>-<script src="scripts/linenumber.js"> </script>-</body>-</html>diff --git a/docs/frontend_api/index.html b/docs/frontend_api/index.htmlindex 6465f193ac..46ccdc9a8b 100644--- a/docs/frontend_api/index.html+++ b/docs/frontend_api/index.html@@ -50,7 +50,7 @@</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">diff --git a/docs/frontend_api/services_frontend_script_api.js.html b/docs/frontend_api/services_frontend_script_api.js.htmlindex 679f2e5eb1..76970d3e05 100644--- a/docs/frontend_api/services_frontend_script_api.js.html+++ b/docs/frontend_api/services_frontend_script_api.js.html@@ -53,9 +53,9 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain/** @property {jQuery} container of all the rendered script content */this.$container = $container;- /** @property {object} note where script started executing */+ /** @property {object} note where the script started executing */this.startNote = startNote;- /** @property {object} note where script is currently executing */+ /** @property {object} note where the script is currently executing */this.currentNote = currentNote;/** @property {object|null} entity whose event triggered this execution */this.originEntity = originEntity;@@ -192,7 +192,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containparams: prepareParams(params),startNoteId: startNote.noteId,currentNoteId: currentNote.noteId,- originEntityName: "notes", // currently there's no other entity on frontend which can trigger event+ originEntityName: "notes", // currently there's no other entity on the frontend which can trigger eventoriginEntityId: originEntity ? originEntity.noteId : null}, "script");@@ -233,7 +233,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain};/**- * Returns note by given noteId. If note is missing from cache, it's loaded.+ * Returns note by given noteId. If note is missing from the cache, it's loaded.*** @method* @param {string} noteId@@ -242,10 +242,10 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.getNote = async noteId => await froca.getNote(noteId);/**- * Returns list of notes. If note is missing from cache, it's loaded.+ * Returns list of notes. If note is missing from the cache, it's loaded.** This is often used to bulk-fill the cache with notes which would have to be picked one by one- * otherwise (by e.g. createNoteLink())+ * otherwise (by e.g. createLink())** @method* @param {string[]} noteIds@@ -286,7 +286,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.parseDate = utils.parseDate;/**- * Show info message to the user.+ * Show an info message to the user.** @method* @param {string} message@@ -294,7 +294,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.showMessage = toastService.showMessage;/**- * Show error message to the user.+ * Show an error message to the user.** @method* @param {string} message@@ -302,7 +302,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.showError = toastService.showError;/**- * Trigger command.+ * Trigger command. This is a very low-level API which should be avoided if possible.** @method* @param {string} name@@ -311,7 +311,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.triggerCommand = (name, data) => appContext.triggerCommand(name, data);/**- * Trigger event.+ * Trigger event. This is a very low-level API which should be avoided if possible.** @method* @param {string} name@@ -320,7 +320,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.triggerEvent = (name, data) => appContext.triggerEvent(name, data);/**- * Create note link (jQuery object) for given note.+ * Create a note link (jQuery object) for given note.** @method* @param {string} notePath (or noteId)@@ -330,7 +330,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain* @param {boolean} [params.showNoteIcon=false] - show also note icon before the title* @param {string} [params.title=] - custom link tile with note's title as default*/- this.createNoteLink = linkService.createNoteLink;+ this.createLink = linkService.createLink;/*** Adds given text to the editor cursor@@ -347,10 +347,10 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.getActiveContextNote = () => appContext.tabManager.getActiveContextNote();/**- * See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html for a documentation on the returned instance.+ * See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html for documentation on the returned instance.** @method- * @returns {Promise<CKEditor>} instance of CKEditor+ * @returns {Promise<BalloonEditor>} instance of CKEditor*/this.getActiveContextTextEditor = () => appContext.tabManager.getActiveContext()?.getTextEditor();@@ -373,12 +373,12 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain/*** @method- * @returns {Promise<string|null>} returns note path of active note or null if there isn't active note+ * @returns {Promise<string|null>} returns a note path of active note or null if there isn't active note*/this.getActiveContextNotePath = () => appContext.tabManager.getActiveContextNotePath();/**- * Returns component which owns given DOM element (the nearest parent component in DOM tree)+ * Returns component which owns the given DOM element (the nearest parent component in DOM tree)** @method* @param {Element} el - DOM element@@ -483,11 +483,11 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $containthis.bindGlobalShortcut = shortcutService.bindGlobalShortcut;/**- * Trilium runs in backend and frontend process, when something is changed on the backend from script,+ * Trilium runs in a backend and frontend process, when something is changed on the backend from a script,* frontend will get asynchronously synchronized.** This method returns a promise which resolves once all the backend -> frontend synchronization is finished.- * Typical use case is when new note has been created, we should wait until it is synced into frontend and only then activate it.+ * Typical use case is when a new note has been created, we should wait until it is synced into frontend and only then activate it.** @method* @returns {Promise<void>}@@ -506,11 +506,18 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain* Return randomly generated string of given length. This random string generation is NOT cryptographically secure.** @method- * @param {number} length of the string+ * @param {integer} length of the string* @returns {string} random string*/this.randomString = utils.randomString;+ /**+ * @method+ * @param {int} size in bytes+ * @return {string} formatted string+ */+ this.formatNoteSize = utils.formatNoteSize;+this.logMessages = {};this.logSpacedUpdates = {};@@ -551,7 +558,7 @@ export default FrontendScriptApi;</div><nav>- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FNoteComplement.html">FNoteComplement</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul>+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FAttribute.html">FAttribute</a></li><li><a href="FBranch.html">FBranch</a></li><li><a href="FNote.html">FNote</a></li><li><a href="FrontendScriptApi.html">FrontendScriptApi</a></li></ul></nav><br class="clear">