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
fix docs
zadam534c71491b53
diff --git a/docs/backend_api/Attribute.html b/docs/backend_api/Attribute.htmlindex 72b5ea2a3e..59b5180360 100644--- a/docs/backend_api/Attribute.html+++ b/docs/backend_api/Attribute.html@@ -94,7 +94,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line13">line 13</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line15">line 15</a></li></ul></dd>@@ -128,6 +128,17 @@ and relation (representing named relationship between source and target note)</d</div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -194,7 +205,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line44">line 44</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line46">line 46</a></li></ul></dd>@@ -262,7 +273,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line56">line 56</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line58">line 58</a></li></ul></dd>@@ -330,7 +341,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line50">line 50</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line52">line 52</a></li></ul></dd>@@ -398,7 +409,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line46">line 46</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line48">line 48</a></li></ul></dd>@@ -466,7 +477,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line52">line 52</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line54">line 54</a></li></ul></dd>@@ -534,7 +545,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line48">line 48</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line50">line 50</a></li></ul></dd>@@ -602,7 +613,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line58">line 58</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line60">line 60</a></li></ul></dd>@@ -670,7 +681,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line54">line 54</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line56">line 56</a></li></ul></dd>@@ -746,7 +757,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line112">line 112</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line114">line 114</a></li></ul></dd>@@ -851,7 +862,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line119">line 119</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line121">line 121</a></li></ul></dd>@@ -956,7 +967,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_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line134">line 134</a>+ <a href="becca_entities_attribute.js.html">becca/entities/attribute.js</a>, <a href="becca_entities_attribute.js.html#line136">line 136</a></li></ul></dd>@@ -1005,6 +1016,274 @@ and relation (representing named relationship between source and target note)</d++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>++++++++@@ -1020,13 +1299,13 @@ and relation (representing named relationship between source and target note)</d</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/BackendScriptApi.html b/docs/backend_api/BackendScriptApi.htmlindex 0221756a2f..d99d0c2196 100644--- a/docs/backend_api/BackendScriptApi.html+++ b/docs/backend_api/BackendScriptApi.html@@ -6073,13 +6073,13 @@ 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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/Branch.html b/docs/backend_api/Branch.htmlindex cf98e4e829..4be4b47f53 100644--- a/docs/backend_api/Branch.html+++ b/docs/backend_api/Branch.html@@ -94,7 +94,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line12">line 12</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line14">line 14</a></li></ul></dd>@@ -128,6 +128,17 @@ parents.</div></div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -194,7 +205,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line43">line 43</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line45">line 45</a></li></ul></dd>@@ -252,7 +263,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line88">line 88</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line90">line 90</a></li></ul></dd>@@ -320,7 +331,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line53">line 53</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line55">line 55</a></li></ul></dd>@@ -388,7 +399,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line45">line 45</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line47">line 47</a></li></ul></dd>@@ -456,7 +467,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line51">line 51</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line53">line 53</a></li></ul></dd>@@ -514,7 +525,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line102">line 102</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line104">line 104</a></li></ul></dd>@@ -582,7 +593,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line47">line 47</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line49">line 49</a></li></ul></dd>@@ -650,7 +661,7 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line49">line 49</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line51">line 51</a></li></ul></dd>@@ -718,7 +729,156 @@ parents.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line55">line 55</a>+ <a href="becca_entities_branch.js.html">becca/entities/branch.js</a>, <a href="becca_entities_branch.js.html#line57">line 57</a>+ </li></ul></dd>++++++++</dl>+++++++++++ <h3 class="subsection-title">Methods</h3>++++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a></li></ul></dd>@@ -733,8 +893,63 @@ parents.</div>++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>@@ -742,6 +957,74 @@ parents.</div>+++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>+++++++++++++</article></section>@@ -752,13 +1035,13 @@ parents.</div></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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/EtapiToken.html b/docs/backend_api/EtapiToken.htmlindex 0eefe143f5..bffcb36583 100644--- a/docs/backend_api/EtapiToken.html+++ b/docs/backend_api/EtapiToken.html@@ -99,7 +99,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line16">line 16</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line17">line 17</a></li></ul></dd>@@ -133,6 +133,17 @@ from tokenHash and token.</div></div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -199,7 +210,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line34">line 34</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line35">line 35</a></li></ul></dd>@@ -267,7 +278,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line44">line 44</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line45">line 45</a></li></ul></dd>@@ -335,7 +346,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line36">line 36</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line37">line 37</a></li></ul></dd>@@ -403,7 +414,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line38">line 38</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line39">line 39</a></li></ul></dd>@@ -471,7 +482,7 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line40">line 40</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line41">line 41</a></li></ul></dd>@@ -539,7 +550,156 @@ from tokenHash and token.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line42">line 42</a>+ <a href="becca_entities_etapi_token.js.html">becca/entities/etapi_token.js</a>, <a href="becca_entities_etapi_token.js.html#line43">line 43</a>+ </li></ul></dd>++++++++</dl>+++++++++++ <h3 class="subsection-title">Methods</h3>++++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a></li></ul></dd>@@ -554,10 +714,133 @@ from tokenHash and token.</div>++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>++++++++@@ -573,13 +856,13 @@ from tokenHash and token.</div></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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/Note.html b/docs/backend_api/Note.htmlindex 37f32b8f6d..5a24d464a9 100644--- a/docs/backend_api/Note.html+++ b/docs/backend_api/Note.html@@ -93,7 +93,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line18">line 18</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line20">line 20</a></li></ul></dd>@@ -127,6 +127,17 @@</div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -193,7 +204,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line89">line 89</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line91">line 91</a></li></ul></dd>@@ -268,7 +279,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line115">line 115</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line117">line 117</a></li></ul></dd>@@ -336,7 +347,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line62">line 62</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line64">line 64</a></li></ul></dd>@@ -404,7 +415,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line64">line 64</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line66">line 66</a></li></ul></dd>@@ -475,7 +486,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line78">line 78</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line80">line 80</a></li></ul></dd>@@ -543,7 +554,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line73">line 73</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line75">line 75</a></li></ul></dd>@@ -611,7 +622,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line56">line 56</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line58">line 58</a></li></ul></dd>@@ -679,7 +690,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line60">line 60</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line62">line 62</a></li></ul></dd>@@ -747,7 +758,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line52">line 52</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line54">line 54</a></li></ul></dd>@@ -822,7 +833,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line120">line 120</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line122">line 122</a></li></ul></dd>@@ -890,7 +901,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line91">line 91</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line93">line 93</a></li></ul></dd>@@ -958,7 +969,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line85">line 85</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line87">line 87</a></li></ul></dd>@@ -1026,7 +1037,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line87">line 87</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line89">line 89</a></li></ul></dd>@@ -1101,7 +1112,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line125">line 125</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line127">line 127</a></li></ul></dd>@@ -1169,7 +1180,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line101">line 101</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line103">line 103</a></li></ul></dd>@@ -1237,7 +1248,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line54">line 54</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line56">line 56</a></li></ul></dd>@@ -1305,7 +1316,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line58">line 58</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line60">line 60</a></li></ul></dd>@@ -1373,7 +1384,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line66">line 66</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line68">line 68</a></li></ul></dd>@@ -1441,7 +1452,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line68">line 68</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line70">line 70</a></li></ul></dd>@@ -1517,7 +1528,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line402">line 402</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line404">line 404</a></li></ul></dd>@@ -1619,7 +1630,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1020">line 1020</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1022">line 1022</a></li></ul></dd>@@ -1721,7 +1732,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line942">line 942</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line944">line 944</a></li></ul></dd>@@ -1827,7 +1838,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line862">line 862</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line864">line 864</a></li></ul></dd>@@ -2001,7 +2012,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line520">line 520</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line522">line 522</a></li></ul></dd>@@ -2201,7 +2212,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line333">line 333</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line335">line 335</a></li></ul></dd>@@ -2379,7 +2390,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line531">line 531</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line533">line 533</a></li></ul></dd>@@ -2490,7 +2501,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line147">line 147</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line149">line 149</a></li></ul></dd>@@ -2592,7 +2603,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line167">line 167</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line169">line 169</a></li></ul></dd>@@ -2694,7 +2705,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line157">line 157</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line159">line 159</a></li></ul></dd>@@ -2796,7 +2807,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line181">line 181</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line183">line 183</a></li></ul></dd>@@ -2898,7 +2909,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line215">line 215</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line217">line 217</a></li></ul></dd>@@ -3006,7 +3017,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line657">line 657</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line659">line 659</a></li></ul></dd>@@ -3112,7 +3123,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line226">line 226</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line228">line 228</a></li></ul></dd>@@ -3263,7 +3274,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line462">line 462</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line464">line 464</a></li></ul></dd>@@ -3433,7 +3444,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line552">line 552</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line554">line 554</a></li></ul></dd>@@ -3588,7 +3599,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line486">line 486</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line488">line 488</a></li></ul></dd>@@ -3758,7 +3769,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line560">line 560</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line562">line 562</a></li></ul></dd>@@ -3864,7 +3875,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line626">line 626</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line628">line 628</a></li></ul></dd>@@ -4066,7 +4077,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line601">line 601</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line603">line 603</a></li></ul></dd>@@ -4244,7 +4255,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line542">line 542</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line544">line 544</a></li></ul></dd>@@ -4402,7 +4413,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line468">line 468</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line470">line 470</a></li></ul></dd>@@ -4572,7 +4583,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line568">line 568</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line570">line 570</a></li></ul></dd>@@ -4727,7 +4738,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line492">line 492</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line494">line 494</a></li></ul></dd>@@ -4897,7 +4908,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line576">line 576</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line578">line 578</a></li></ul></dd>@@ -5052,7 +5063,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line480">line 480</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line482">line 482</a></li></ul></dd>@@ -5222,7 +5233,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line592">line 592</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line594">line 594</a></li></ul></dd>@@ -5377,7 +5388,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line504">line 504</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line506">line 506</a></li></ul></dd>@@ -5486,7 +5497,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line139">line 139</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line141">line 141</a></li></ul></dd>@@ -5588,7 +5599,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line152">line 152</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line154">line 154</a></li></ul></dd>@@ -5739,7 +5750,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line474">line 474</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line476">line 476</a></li></ul></dd>@@ -5909,7 +5920,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line584">line 584</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line586">line 586</a></li></ul></dd>@@ -6064,7 +6075,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line498">line 498</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line500">line 500</a></li></ul></dd>@@ -6173,7 +6184,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line312">line 312</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line314">line 314</a></li></ul></dd>@@ -6282,7 +6293,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line805">line 805</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line807">line 807</a></li></ul></dd>@@ -6384,7 +6395,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line784">line 784</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line786">line 786</a></li></ul></dd>@@ -6486,7 +6497,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line753">line 753</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line755">line 755</a></li></ul></dd>@@ -6588,7 +6599,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line904">line 904</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line906">line 906</a></li></ul></dd>@@ -6695,7 +6706,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line888">line 888</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line890">line 890</a></li></ul></dd>@@ -6797,7 +6808,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line162">line 162</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line164">line 164</a></li></ul></dd>@@ -6948,7 +6959,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line438">line 438</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line440">line 440</a></li></ul></dd>@@ -7126,7 +7137,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line511">line 511</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line513">line 513</a></li></ul></dd>@@ -7281,7 +7292,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line444">line 444</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line446">line 446</a></li></ul></dd>@@ -7436,7 +7447,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line456">line 456</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line458">line 458</a></li></ul></dd>@@ -7591,7 +7602,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line450">line 450</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line452">line 452</a></li></ul></dd>@@ -7741,7 +7752,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line963">line 963</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line965">line 965</a></li></ul></dd>@@ -7847,7 +7858,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line301">line 301</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line303">line 303</a></li></ul></dd>@@ -7953,7 +7964,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line293">line 293</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line295">line 295</a></li></ul></dd>@@ -8059,7 +8070,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line288">line 288</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line290">line 290</a></li></ul></dd>@@ -8165,7 +8176,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line283">line 283</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line285">line 285</a></li></ul></dd>@@ -8271,7 +8282,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line307">line 307</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line309">line 309</a></li></ul></dd>@@ -8323,6 +8334,163 @@ This method can be significantly faster than the getAttribute()+++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++++++@@ -8504,7 +8672,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1007">line 1007</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1009">line 1009</a></li></ul></dd>@@ -8684,7 +8852,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1098">line 1098</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1100">line 1100</a></li></ul></dd>@@ -8864,7 +9032,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1106">line 1106</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1108">line 1108</a></li></ul></dd>@@ -8894,6 +9062,117 @@ This method can be significantly faster than the getAttribute()+++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>+++++++@@ -9075,7 +9354,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line976">line 976</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line978">line 978</a></li></ul></dd>@@ -9255,7 +9534,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1082">line 1082</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1084">line 1084</a></li></ul></dd>@@ -9415,7 +9694,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1090">line 1090</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1092">line 1092</a></li></ul></dd>@@ -9657,7 +9936,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1049">line 1049</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1051">line 1051</a></li></ul></dd>@@ -9868,7 +10147,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1065">line 1065</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1067">line 1067</a></li></ul></dd>@@ -10079,7 +10358,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_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1074">line 1074</a>+ <a href="becca_entities_note.js.html">becca/entities/note.js</a>, <a href="becca_entities_note.js.html#line1076">line 1076</a></li></ul></dd>@@ -10125,13 +10404,13 @@ This method can be significantly faster than the getAttribute()</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/NoteRevision.html b/docs/backend_api/NoteRevision.htmlindex 6276280428..f9575d7df4 100644--- a/docs/backend_api/NoteRevision.html+++ b/docs/backend_api/NoteRevision.html@@ -94,7 +94,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line15">line 15</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line17">line 17</a></li></ul></dd>@@ -128,6 +128,17 @@ It's used for seamless note versioning.</div></div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -194,7 +205,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line46">line 46</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line48">line 48</a></li></ul></dd>@@ -262,7 +273,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line38">line 38</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line40">line 40</a></li></ul></dd>@@ -330,7 +341,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line36">line 36</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line38">line 38</a></li></ul></dd>@@ -398,7 +409,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line32">line 32</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line34">line 34</a></li></ul></dd>@@ -466,7 +477,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line30">line 30</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line32">line 32</a></li></ul></dd>@@ -534,7 +545,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line26">line 26</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line28">line 28</a></li></ul></dd>@@ -602,7 +613,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line24">line 24</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line26">line 26</a></li></ul></dd>@@ -670,7 +681,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line34">line 34</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line36">line 36</a></li></ul></dd>@@ -738,7 +749,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line28">line 28</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line30">line 30</a></li></ul></dd>@@ -806,7 +817,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line42">line 42</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line44">line 44</a></li></ul></dd>@@ -874,7 +885,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line40">line 40</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line42">line 42</a></li></ul></dd>@@ -942,7 +953,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line44">line 44</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line46">line 46</a></li></ul></dd>@@ -1018,7 +1029,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line77">line 77</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line79">line 79</a></li></ul></dd>@@ -1120,7 +1131,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line141">line 141</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line143">line 143</a></li></ul></dd>@@ -1222,7 +1233,7 @@ It's used for seamless note versioning.</div><dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line63">line 63</a>+ <a href="becca_entities_note_revision.js.html">becca/entities/note_revision.js</a>, <a href="becca_entities_note_revision.js.html#line65">line 65</a></li></ul></dd>@@ -1275,6 +1286,274 @@ It's used for seamless note versioning.</div>++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>++++++++@@ -1290,13 +1569,13 @@ It's used for seamless note versioning.</div></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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/Option.html b/docs/backend_api/Option.htmlindex 6778a7407c..2c43460c75 100644--- a/docs/backend_api/Option.html+++ b/docs/backend_api/Option.html@@ -93,7 +93,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line9">line 9</a>+ <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line11">line 11</a></li></ul></dd>@@ -127,6 +127,17 @@</div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -193,7 +204,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line22">line 22</a>+ <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line24">line 24</a></li></ul></dd>@@ -261,7 +272,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line18">line 18</a>+ <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line20">line 20</a></li></ul></dd>@@ -329,7 +340,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line24">line 24</a>+ <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line26">line 26</a></li></ul></dd>@@ -397,7 +408,249 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line20">line 20</a>+ <a href="becca_entities_option.js.html">becca/entities/option.js</a>, <a href="becca_entities_option.js.html#line22">line 22</a>+ </li></ul></dd>++++++++</dl>+++++++++++ <h3 class="subsection-title">Methods</h3>++++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a>+ </li></ul></dd>++++++++</dl>+++++++++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a></li></ul></dd>@@ -413,9 +666,39 @@++++++++++<h5>Returns:</h5>++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>++++++@@ -431,13 +714,13 @@</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/RecentNote.html b/docs/backend_api/RecentNote.htmlindex 1e3c22af32..264580c720 100644--- a/docs/backend_api/RecentNote.html+++ b/docs/backend_api/RecentNote.html@@ -93,7 +93,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line9">line 9</a>+ <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line11">line 11</a></li></ul></dd>@@ -127,6 +127,17 @@</div>+ <h3 class="subsection-title">Extends</h3>+++++ <ul>+ <li><a href="AbstractEntity.html">AbstractEntity</a></li>+ </ul>+++@@ -193,7 +204,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line17">line 17</a>+ <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line19">line 19</a></li></ul></dd>@@ -261,7 +272,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line19">line 19</a>+ <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line21">line 21</a></li></ul></dd>@@ -329,7 +340,156 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line21">line 21</a>+ <a href="becca_entities_recent_note.js.html">becca/entities/recent_note.js</a>, <a href="becca_entities_recent_note.js.html#line23">line 23</a>+ </li></ul></dd>++++++++</dl>+++++++++++ <h3 class="subsection-title">Methods</h3>++++++++ <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.+</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="AbstractEntity.html#markAsDeleted">AbstractEntity#markAsDeleted</a>+ </li></ul></dd>++++++++++++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line116">line 116</a></li></ul></dd>@@ -344,8 +504,65 @@++++++++++++++++++++ <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> → {<a href="AbstractEntity.html">AbstractEntity</a>}</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="AbstractEntity.html#save">AbstractEntity#save</a>+ </li></ul></dd>++@@ -353,6 +570,72 @@+++++++++++ <dt class="tag-source">Source:</dt>+ <dd class="tag-source"><ul class="dummy"><li>+ <a href="becca_entities_abstract_entity.js.html">becca/entities/abstract_entity.js</a>, <a href="becca_entities_abstract_entity.js.html#line73">line 73</a>+ </li></ul></dd>++++++++</dl>++++++++++++++++<h5>Returns:</h5>+++++<dl>+ <dt>+ Type+ </dt>+ <dd>++<span class="param-type"><a href="AbstractEntity.html">AbstractEntity</a></span>+++ </dd>+</dl>+++++++++++++</article></section>@@ -363,13 +646,13 @@</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_attribute.js.html b/docs/backend_api/becca_entities_attribute.js.htmlindex c3c28d026b..10515c0652 100644--- a/docs/backend_api/becca_entities_attribute.js.html+++ b/docs/backend_api/becca_entities_attribute.js.html@@ -37,6 +37,8 @@ const promotedAttributeDefinitionParser = require("../../services/promoted_attri/*** Attribute is an abstract concept which has two real uses - label (key - value pair)* and relation (representing named relationship between source and target note)+ *+ * @extends AbstractEntity*/class Attribute extends AbstractEntity {static get entityName() { return "attributes"; }@@ -245,13 +247,13 @@ module.exports = Attribute;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_branch.js.html b/docs/backend_api/becca_entities_branch.js.htmlindex 9acf0a14f7..94ffed9dc6 100644--- a/docs/backend_api/becca_entities_branch.js.html+++ b/docs/backend_api/becca_entities_branch.js.html@@ -36,6 +36,8 @@ const dateUtils = require("../../services/date_utils");/*** Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple* parents.+ *+ * @extends AbstractEntity*/class Branch extends AbstractEntity {static get entityName() { return "branches"; }@@ -193,13 +195,13 @@ module.exports = Branch;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_etapi_token.js.html b/docs/backend_api/becca_entities_etapi_token.js.htmlindex 8f74155d78..da33cc50d0 100644--- a/docs/backend_api/becca_entities_etapi_token.js.html+++ b/docs/backend_api/becca_entities_etapi_token.js.html@@ -30,16 +30,17 @@const dateUtils = require('../../services/date_utils');const AbstractEntity = require("./abstract_entity");-const sql = require("../../services/sql.js");/*** EtapiToken is an entity representing token used to authenticate against Trilium REST API from client applications.* Used by:* - Trilium Sender* - ETAPI clients- *+ ** The format user is presented with is "<etapiTokenId>_<tokenHash>". This is also called "authToken" to distinguish it* from tokenHash and token.+ *+ * @extends AbstractEntity*/class EtapiToken extends AbstractEntity {static get entityName() { return "etapi_tokens"; }@@ -70,10 +71,12 @@ class EtapiToken extends AbstractEntity {this.utcDateModified = row.utcDateModified || this.utcDateCreated;/** @type {boolean} */this.isDeleted = !!row.isDeleted;-- this.becca.etapiTokens[this.etapiTokenId] = this;++ if (this.etapiTokenId) {+ this.becca.etapiTokens[this.etapiTokenId] = this;+ }}-+init() {if (this.etapiTokenId) {this.becca.etapiTokens[this.etapiTokenId] = this;@@ -111,13 +114,13 @@ module.exports = EtapiToken;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_note.js.html b/docs/backend_api/becca_entities_note.js.htmlindex c34f9ca82e..2aae3ae51f 100644--- a/docs/backend_api/becca_entities_note.js.html+++ b/docs/backend_api/becca_entities_note.js.html@@ -42,6 +42,8 @@ const RELATION = 'relation';/*** Trilium's main entity which can represent text note, image, code note, file attachment etc.+ *+ * @extends AbstractEntity*/class Note extends AbstractEntity {static get entityName() { return "notes"; }@@ -1155,6 +1157,7 @@ class Note extends AbstractEntity {if (this.isProtected && !this.isDecrypted && protectedSessionService.isProtectedSessionAvailable()) {try {this.title = protectedSessionService.decryptString(this.title);+ this.flatTextCache = null;this.isDecrypted = true;}@@ -1220,13 +1223,13 @@ module.exports = Note;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_note_revision.js.html b/docs/backend_api/becca_entities_note_revision.js.htmlindex c9a914a1e4..a1f9ca7298 100644--- a/docs/backend_api/becca_entities_note_revision.js.html+++ b/docs/backend_api/becca_entities_note_revision.js.html@@ -39,6 +39,8 @@ const AbstractEntity = require("./abstract_entity");/*** NoteRevision represents snapshot of note's title and content at some point in the past.* It's used for seamless note versioning.+ *+ * @extends AbstractEntity*/class NoteRevision extends AbstractEntity {static get entityName() { return "note_revisions"; }@@ -230,13 +232,13 @@ module.exports = NoteRevision;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_option.js.html b/docs/backend_api/becca_entities_option.js.htmlindex 54244d7f1f..15d02ab4d9 100644--- a/docs/backend_api/becca_entities_option.js.html+++ b/docs/backend_api/becca_entities_option.js.html@@ -33,6 +33,8 @@ const AbstractEntity = require("./abstract_entity");/*** Option represents name-value pair, either directly configurable by the user or some system property.+ *+ * @extends AbstractEntity*/class Option extends AbstractEntity {static get entityName() { return "options"; }@@ -81,13 +83,13 @@ module.exports = Option;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/becca_entities_recent_note.js.html b/docs/backend_api/becca_entities_recent_note.js.htmlindex 9f3a32049c..3c7e3b40b5 100644--- a/docs/backend_api/becca_entities_recent_note.js.html+++ b/docs/backend_api/becca_entities_recent_note.js.html@@ -33,6 +33,8 @@ const AbstractEntity = require("./abstract_entity");/*** RecentNote represents recently visited note.+ *+ * @extends AbstractEntity*/class RecentNote extends AbstractEntity {static get entityName() { return "recent_notes"; }@@ -69,13 +71,13 @@ module.exports = RecentNote;</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/global.html b/docs/backend_api/global.htmlindex 44aefb4338..18ade2d896 100644--- a/docs/backend_api/global.html+++ b/docs/backend_api/global.html@@ -1083,13 +1083,13 @@</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/index.html b/docs/backend_api/index.htmlindex 09371c322e..0799c24655 100644--- a/docs/backend_api/index.html+++ b/docs/backend_api/index.html@@ -50,13 +50,13 @@</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/module-sql.html b/docs/backend_api/module-sql.htmlindex 4c32d5ffb0..a129e51d98 100644--- a/docs/backend_api/module-sql.html+++ b/docs/backend_api/module-sql.html@@ -208,7 +208,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line345">line 345</a>+ <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line355">line 355</a></li></ul></dd>@@ -388,7 +388,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line336">line 336</a>+ <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line346">line 346</a></li></ul></dd>@@ -590,7 +590,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line326">line 326</a>+ <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line336">line 336</a></li></ul></dd>@@ -792,7 +792,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line302">line 302</a>+ <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line312">line 312</a></li></ul></dd>@@ -994,7 +994,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line313">line 313</a>+ <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line323">line 323</a></li></ul></dd>@@ -1196,7 +1196,7 @@<dt class="tag-source">Source:</dt><dd class="tag-source"><ul class="dummy"><li>- <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line292">line 292</a>+ <a href="services_sql.js.html">services/sql.js</a>, <a href="services_sql.js.html#line302">line 302</a></li></ul></dd>@@ -1252,13 +1252,13 @@</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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/services_backend_script_api.js.html b/docs/backend_api/services_backend_script_api.js.htmlindex c90667e2a4..e9641e25b3 100644--- a/docs/backend_api/services_backend_script_api.js.html+++ b/docs/backend_api/services_backend_script_api.js.html@@ -321,7 +321,7 @@ function BackendScriptApi(currentNote, apiParams) {** @param message*/- this.log = message => log.info(`Script "${currentNote.title}" (${currentNote.noteId}): ${message}`);+ this.log = message => log.info(message);/*** Returns root note of the calendar.@@ -467,13 +467,13 @@ 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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/backend_api/services_sql.js.html b/docs/backend_api/services_sql.js.htmlindex 0f6652db64..ccfeaa9845 100644--- a/docs/backend_api/services_sql.js.html+++ b/docs/backend_api/services_sql.js.html@@ -36,6 +36,7 @@ const log = require('./log');const Database = require('better-sqlite3');const dataDir = require('./data_dir');const cls = require('./cls');+const fs = require("fs-extra");const dbConnection = new Database(dataDir.DOCUMENT_PATH);dbConnection.pragma('journal_mode = WAL');@@ -304,6 +305,15 @@ function fillParamList(paramIds, truncate = true) {s.run(paramIds);}+async function copyDatabase(targetFilePath) {+ try {+ fs.unlinkSync(targetFilePath);+ } catch (e) {+ } // unlink throws exception if the file did not exist++ await dbConnection.backup(targetFilePath);+}+module.exports = {dbConnection,insert,@@ -375,7 +385,8 @@ module.exports = {executeScript,transactional,upsert,- fillParamList+ fillParamList,+ copyDatabase};</code></pre></article>@@ -387,13 +398,13 @@ 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="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>+ <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="AbstractEntity.html">AbstractEntity</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="EtapiToken.html">EtapiToken</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3></nav><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/Attribute.html b/docs/frontend_api/Attribute.htmlindex d3623966a8..2dd81757d5 100644--- a/docs/frontend_api/Attribute.html+++ b/docs/frontend_api/Attribute.html@@ -748,7 +748,7 @@ and relation (representing named relationship between source and target note)</d<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/Branch.html b/docs/frontend_api/Branch.htmlindex dd5aec666c..62f0c77229 100644--- a/docs/frontend_api/Branch.html+++ b/docs/frontend_api/Branch.html@@ -1062,7 +1062,7 @@ parents.</div><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/FrontendScriptApi.html b/docs/frontend_api/FrontendScriptApi.htmlindex d925e268c3..59f3b0fffe 100644--- a/docs/frontend_api/FrontendScriptApi.html+++ b/docs/frontend_api/FrontendScriptApi.html@@ -6666,7 +6666,7 @@ Typical use case is when new note has been created, we should wait until it is s<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/NoteComplement.html b/docs/frontend_api/NoteComplement.htmlindex be954630b8..53a162fefd 100644--- a/docs/frontend_api/NoteComplement.html+++ b/docs/frontend_api/NoteComplement.html@@ -781,7 +781,7 @@<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/NoteShort.html b/docs/frontend_api/NoteShort.htmlindex 178d41f859..2bfe195bd0 100644--- a/docs/frontend_api/NoteShort.html+++ b/docs/frontend_api/NoteShort.html@@ -7269,7 +7269,7 @@ This note's representation is used in note tree and is kept in Froca.</div><br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/entities_attribute.js.html b/docs/frontend_api/entities_attribute.js.htmlindex 9f859d8aed..387d4eb2ef 100644--- a/docs/frontend_api/entities_attribute.js.html+++ b/docs/frontend_api/entities_attribute.js.html@@ -110,7 +110,7 @@ export default Attribute;<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/entities_branch.js.html b/docs/frontend_api/entities_branch.js.htmlindex b5a53597dd..0ef296b324 100644--- a/docs/frontend_api/entities_branch.js.html+++ b/docs/frontend_api/entities_branch.js.html@@ -99,7 +99,7 @@ export default Branch;<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/entities_note_complement.js.html b/docs/frontend_api/entities_note_complement.js.htmlindex 1a17e1c486..eb5f6203ac 100644--- a/docs/frontend_api/entities_note_complement.js.html+++ b/docs/frontend_api/entities_note_complement.js.html@@ -82,7 +82,7 @@ export default NoteComplement;<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/entities_note_short.js.html b/docs/frontend_api/entities_note_short.js.htmlindex a82770d7d9..20a9ad5978 100644--- a/docs/frontend_api/entities_note_short.js.html+++ b/docs/frontend_api/entities_note_short.js.html@@ -848,7 +848,7 @@ export default NoteShort;<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/global.html b/docs/frontend_api/global.htmlindex 441ecb139b..e3bb5cbf05 100644--- a/docs/frontend_api/global.html+++ b/docs/frontend_api/global.html@@ -431,7 +431,7 @@<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/index.html b/docs/frontend_api/index.htmlindex 3ea1a69d56..590530faad 100644--- a/docs/frontend_api/index.html+++ b/docs/frontend_api/index.html@@ -56,7 +56,7 @@<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/services_frontend_script_api.js.html b/docs/frontend_api/services_frontend_script_api.js.htmlindex ba3bad2bda..451ca46bcc 100644--- a/docs/frontend_api/services_frontend_script_api.js.html+++ b/docs/frontend_api/services_frontend_script_api.js.html@@ -529,7 +529,7 @@ export default FrontendScriptApi;<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/docs/frontend_api/widgets_collapsible_widget.js.html b/docs/frontend_api/widgets_collapsible_widget.js.htmlindex 905052e62c..ed31ad9b3c 100644--- a/docs/frontend_api/widgets_collapsible_widget.js.html+++ b/docs/frontend_api/widgets_collapsible_widget.js.html@@ -81,7 +81,7 @@ export default class CollapsibleWidget extends NoteContextAwareWidget {<br class="clear"><footer>- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a>+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a></footer><script> prettyPrint(); </script>diff --git a/src/becca/entities/abstract_entity.js b/src/becca/entities/abstract_entity.jsindex 5fa814a75d..9981373c3e 100644--- a/src/becca/entities/abstract_entity.js+++ b/src/becca/entities/abstract_entity.js@@ -10,6 +10,9 @@ const log = require("../../services/log");let becca = null;+/**+ * Base class for all backend entities.+ */class AbstractEntity {beforeSaving() {this.generateIdIfNecessary();@@ -62,6 +65,11 @@ class AbstractEntity {return this.getPojo();}+ /**+ * Saves entity - executes SQL, but doesn't commit the transaction on its own+ *+ * @returns {AbstractEntity}+ */save() {const entityName = this.constructor.entityName;const primaryKeyName = this.constructor.primaryKeyName;@@ -100,6 +108,11 @@ class AbstractEntity {return this;}+ /**+ * Mark the entity as (soft) deleted. It will be completely erased later.+ *+ * @param [deleteId=null]+ */markAsDeleted(deleteId = null) {const entityId = this[this.constructor.primaryKeyName];const entityName = this.constructor.entityName;diff --git a/src/becca/entities/attribute.js b/src/becca/entities/attribute.jsindex 5cdc23231e..4d6cb969de 100644--- a/src/becca/entities/attribute.js+++ b/src/becca/entities/attribute.js@@ -9,6 +9,8 @@ const promotedAttributeDefinitionParser = require("../../services/promoted_attri/*** Attribute is an abstract concept which has two real uses - label (key - value pair)* and relation (representing named relationship between source and target note)+ *+ * @extends AbstractEntity*/class Attribute extends AbstractEntity {static get entityName() { return "attributes"; }diff --git a/src/becca/entities/branch.js b/src/becca/entities/branch.jsindex 75543232b3..10ce46a541 100644--- a/src/becca/entities/branch.js+++ b/src/becca/entities/branch.js@@ -8,6 +8,8 @@ const dateUtils = require("../../services/date_utils");/*** Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple* parents.+ *+ * @extends AbstractEntity*/class Branch extends AbstractEntity {static get entityName() { return "branches"; }diff --git a/src/becca/entities/etapi_token.js b/src/becca/entities/etapi_token.jsindex 170e79bc80..8085d11b46 100644--- a/src/becca/entities/etapi_token.js+++ b/src/becca/entities/etapi_token.js@@ -11,6 +11,8 @@ const AbstractEntity = require("./abstract_entity");** The format user is presented with is "<etapiTokenId>_<tokenHash>". This is also called "authToken" to distinguish it* from tokenHash and token.+ *+ * @extends AbstractEntity*/class EtapiToken extends AbstractEntity {static get entityName() { return "etapi_tokens"; }diff --git a/src/becca/entities/note.js b/src/becca/entities/note.jsindex 43e1c93f17..5f23e2d15d 100644--- a/src/becca/entities/note.js+++ b/src/becca/entities/note.js@@ -14,6 +14,8 @@ const RELATION = 'relation';/*** Trilium's main entity which can represent text note, image, code note, file attachment etc.+ *+ * @extends AbstractEntity*/class Note extends AbstractEntity {static get entityName() { return "notes"; }diff --git a/src/becca/entities/note_revision.js b/src/becca/entities/note_revision.jsindex cd9ce86f6c..db8a997cf1 100644--- a/src/becca/entities/note_revision.js+++ b/src/becca/entities/note_revision.js@@ -11,6 +11,8 @@ const AbstractEntity = require("./abstract_entity");/*** NoteRevision represents snapshot of note's title and content at some point in the past.* It's used for seamless note versioning.+ *+ * @extends AbstractEntity*/class NoteRevision extends AbstractEntity {static get entityName() { return "note_revisions"; }diff --git a/src/becca/entities/option.js b/src/becca/entities/option.jsindex 03760e5157..cbb3eb5762 100644--- a/src/becca/entities/option.js+++ b/src/becca/entities/option.js@@ -5,6 +5,8 @@ const AbstractEntity = require("./abstract_entity");/*** Option represents name-value pair, either directly configurable by the user or some system property.+ *+ * @extends AbstractEntity*/class Option extends AbstractEntity {static get entityName() { return "options"; }diff --git a/src/becca/entities/recent_note.js b/src/becca/entities/recent_note.jsindex 62fd6cd268..e93577b40f 100644--- a/src/becca/entities/recent_note.js+++ b/src/becca/entities/recent_note.js@@ -5,6 +5,8 @@ const AbstractEntity = require("./abstract_entity");/*** RecentNote represents recently visited note.+ *+ * @extends AbstractEntity*/class RecentNote extends AbstractEntity {static get entityName() { return "recent_notes"; }