diff --git a/docs/backend_api/AbstractEntity.html b/docs/backend_api/AbstractBeccaEntity.html similarity index 73% rename from docs/backend_api/AbstractEntity.html rename to docs/backend_api/AbstractBeccaEntity.html index afa51341e..ad11edfb0 100644 --- a/docs/backend_api/AbstractEntity.html +++ b/docs/backend_api/AbstractBeccaEntity.html @@ -2,7 +2,7 @@ - JSDoc: Class: AbstractEntity + JSDoc: Class: AbstractBeccaEntity @@ -17,7 +17,7 @@
-

Class: AbstractEntity

+

Class: AbstractBeccaEntity

@@ -28,7 +28,7 @@
-

AbstractEntity()

+

AbstractBeccaEntity()

Base class for all backend entities.
@@ -45,7 +45,7 @@ -

new AbstractEntity()

+

new AbstractBeccaEntity()

@@ -93,7 +93,7 @@
Source:
@@ -183,7 +183,7 @@
Source:
@@ -259,7 +259,7 @@
Source:
@@ -343,7 +343,7 @@
Source:
@@ -427,7 +427,7 @@
Source:
@@ -511,7 +511,7 @@
Source:
@@ -595,7 +595,7 @@
Source:
@@ -679,7 +679,7 @@
Source:
@@ -833,7 +833,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -921,7 +921,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
Source:
@@ -985,7 +985,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '

diff --git a/docs/backend_api/Attribute.html b/docs/backend_api/BAttribute.html similarity index 72% rename from docs/backend_api/Attribute.html rename to docs/backend_api/BAttribute.html index 6b9aa5ed8..8ae4ede4f 100644 --- a/docs/backend_api/Attribute.html +++ b/docs/backend_api/BAttribute.html @@ -2,7 +2,7 @@ - JSDoc: Class: Attribute + JSDoc: Class: BAttribute @@ -17,7 +17,7 @@
-

Class: Attribute

+

Class: BAttribute

@@ -28,7 +28,7 @@
-

Attribute()

+

BAttribute()

Attribute is an abstract concept which has two real uses - label (key - value pair) and relation (representing named relationship between source and target note)
@@ -46,7 +46,7 @@ and relation (representing named relationship between source and target note)new Attribute() +

new BAttribute()

@@ -94,7 +94,7 @@ and relation (representing named relationship between source and target note)Source:
@@ -134,7 +134,7 @@ and relation (representing named relationship between source and target note) -
  • AbstractEntity
  • +
  • AbstractBeccaEntity
  • @@ -205,7 +205,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -245,7 +245,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -268,7 +268,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -336,7 +336,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -404,7 +404,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -472,7 +472,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -540,7 +540,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -608,7 +608,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -676,7 +676,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -744,7 +744,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -802,7 +802,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -825,7 +825,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -891,7 +891,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -914,7 +914,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -980,7 +980,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -1003,7 +1003,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1069,7 +1069,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -1092,7 +1092,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1128,7 +1128,7 @@ and relation (representing named relationship between source and target note)getNote() → {Note|null} +

    getNote() → {BNote|null}

    @@ -1176,7 +1176,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1212,7 +1212,7 @@ and relation (representing named relationship between source and target note)
    -Note +BNote | null @@ -1263,7 +1263,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -1286,7 +1286,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1322,7 +1322,7 @@ and relation (representing named relationship between source and target note)getTargetNote() → {Note|null} +

    getTargetNote() → {BNote|null}

    @@ -1370,7 +1370,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1406,7 +1406,7 @@ and relation (representing named relationship between source and target note)
    -Note +BNote | null @@ -1457,7 +1457,7 @@ and relation (representing named relationship between source and target note)Overrides:
    @@ -1480,7 +1480,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1564,7 +1564,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -1718,7 +1718,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1741,7 +1741,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1811,7 +1811,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1834,7 +1834,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1898,7 +1898,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '

    diff --git a/docs/backend_api/Branch.html b/docs/backend_api/BBranch.html similarity index 76% rename from docs/backend_api/Branch.html rename to docs/backend_api/BBranch.html index bba99a3bc..7aea50f32 100644 --- a/docs/backend_api/Branch.html +++ b/docs/backend_api/BBranch.html @@ -2,7 +2,7 @@ - JSDoc: Class: Branch + JSDoc: Class: BBranch @@ -17,7 +17,7 @@
    -

    Class: Branch

    +

    Class: BBranch

    @@ -28,7 +28,7 @@
    -

    Branch()

    +

    BBranch()

    Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple parents. @@ -49,7 +49,7 @@ Always check noteId instead.
    -

    new Branch()

    +

    new BBranch()

    @@ -97,7 +97,7 @@ Always check noteId instead.
    Source:
    @@ -137,7 +137,7 @@ Always check noteId instead. @@ -180,7 +180,7 @@ Always check noteId instead.
    Overrides:
    @@ -203,7 +203,7 @@ Always check noteId instead.
    Source:
    @@ -271,7 +271,7 @@ Always check noteId instead.
    Source:
    @@ -329,7 +329,7 @@ Always check noteId instead.
    Source:
    @@ -397,7 +397,7 @@ Always check noteId instead.
    Source:
    @@ -463,7 +463,7 @@ of deletion should not act as a clone.
    Source:
    @@ -531,7 +531,7 @@ of deletion should not act as a clone.
    Source:
    @@ -599,7 +599,7 @@ of deletion should not act as a clone.
    Source:
    @@ -657,7 +657,7 @@ of deletion should not act as a clone.
    Source:
    @@ -725,7 +725,7 @@ of deletion should not act as a clone.
    Source:
    @@ -793,7 +793,7 @@ of deletion should not act as a clone.
    Source:
    @@ -861,7 +861,7 @@ of deletion should not act as a clone.
    Source:
    @@ -919,7 +919,7 @@ of deletion should not act as a clone.
    Overrides:
    @@ -942,7 +942,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1008,7 +1008,7 @@ of deletion should not act as a clone.
    Overrides:
    @@ -1031,7 +1031,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1213,7 +1213,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1301,7 +1301,7 @@ of deletion should not act as a clone.
    Overrides:
    @@ -1324,7 +1324,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1390,7 +1390,7 @@ of deletion should not act as a clone.
    Overrides:
    @@ -1413,7 +1413,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1479,7 +1479,7 @@ of deletion should not act as a clone.
    Overrides:
    @@ -1502,7 +1502,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1568,7 +1568,7 @@ of deletion should not act as a clone.
    Overrides:
    @@ -1591,7 +1591,7 @@ of deletion should not act as a clone.
    Source:
    @@ -1727,7 +1727,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1750,7 +1750,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1820,7 +1820,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1843,7 +1843,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1907,7 +1907,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    diff --git a/docs/backend_api/EtapiToken.html b/docs/backend_api/BEtapiToken.html similarity index 72% rename from docs/backend_api/EtapiToken.html rename to docs/backend_api/BEtapiToken.html index 22cf9e2eb..3e9bcbe39 100644 --- a/docs/backend_api/EtapiToken.html +++ b/docs/backend_api/BEtapiToken.html @@ -2,7 +2,7 @@ - JSDoc: Class: EtapiToken + JSDoc: Class: BEtapiToken @@ -17,7 +17,7 @@
    -

    Class: EtapiToken

    +

    Class: BEtapiToken

    @@ -28,7 +28,7 @@
    -

    EtapiToken()

    +

    BEtapiToken()

    EtapiToken is an entity representing token used to authenticate against Trilium REST API from client applications. Used by: @@ -51,7 +51,7 @@ from tokenHash and token.
    -

    new EtapiToken()

    +

    new BEtapiToken()

    @@ -99,7 +99,7 @@ from tokenHash and token.
    Source:
    @@ -139,7 +139,7 @@ from tokenHash and token. @@ -182,7 +182,7 @@ from tokenHash and token.
    Overrides:
    @@ -205,7 +205,7 @@ from tokenHash and token.
    Source:
    @@ -273,7 +273,7 @@ from tokenHash and token.
    Source:
    @@ -341,7 +341,7 @@ from tokenHash and token.
    Source:
    @@ -409,7 +409,7 @@ from tokenHash and token.
    Source:
    @@ -477,7 +477,7 @@ from tokenHash and token.
    Source:
    @@ -545,7 +545,7 @@ from tokenHash and token.
    Source:
    @@ -613,7 +613,7 @@ from tokenHash and token.
    Source:
    @@ -671,7 +671,7 @@ from tokenHash and token.
    Overrides:
    @@ -694,7 +694,7 @@ from tokenHash and token.
    Source:
    @@ -760,7 +760,7 @@ from tokenHash and token.
    Overrides:
    @@ -783,7 +783,7 @@ from tokenHash and token.
    Source:
    @@ -849,7 +849,7 @@ from tokenHash and token.
    Overrides:
    @@ -872,7 +872,7 @@ from tokenHash and token.
    Source:
    @@ -938,7 +938,7 @@ from tokenHash and token.
    Overrides:
    @@ -961,7 +961,7 @@ from tokenHash and token.
    Source:
    @@ -1027,7 +1027,7 @@ from tokenHash and token.
    Overrides:
    @@ -1050,7 +1050,7 @@ from tokenHash and token.
    Source:
    @@ -1116,7 +1116,7 @@ from tokenHash and token.
    Overrides:
    @@ -1139,7 +1139,7 @@ from tokenHash and token.
    Source:
    @@ -1275,7 +1275,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1298,7 +1298,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1368,7 +1368,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1391,7 +1391,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1455,7 +1455,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    diff --git a/docs/backend_api/Note.html b/docs/backend_api/BNote.html similarity index 86% rename from docs/backend_api/Note.html rename to docs/backend_api/BNote.html index 763500c81..cc39f2216 100644 --- a/docs/backend_api/Note.html +++ b/docs/backend_api/BNote.html @@ -2,7 +2,7 @@ - JSDoc: Class: Note + JSDoc: Class: BNote @@ -17,7 +17,7 @@
    -

    Class: Note

    +

    Class: BNote

    @@ -28,7 +28,7 @@
    -

    Note()

    +

    BNote()

    Trilium's main entity which can represent text note, image, code note, file attachment etc.
    @@ -45,7 +45,7 @@ -

    new Note()

    +

    new BNote()

    @@ -93,7 +93,7 @@
    Source:
    @@ -133,7 +133,7 @@ @@ -176,7 +176,7 @@
    Overrides:
    @@ -199,7 +199,7 @@
    Source:
    @@ -267,7 +267,7 @@
    Source:
    @@ -335,7 +335,7 @@
    Source:
    @@ -406,7 +406,7 @@
    Source:
    @@ -478,7 +478,7 @@
    Source:
    @@ -546,7 +546,7 @@
    Source:
    @@ -614,7 +614,7 @@
    Source:
    @@ -682,7 +682,7 @@
    Source:
    @@ -750,7 +750,7 @@
    Source:
    @@ -818,7 +818,7 @@
    Source:
    @@ -886,7 +886,7 @@
    Source:
    @@ -954,7 +954,7 @@
    Source:
    @@ -1022,7 +1022,7 @@
    Source:
    @@ -1050,7 +1050,7 @@ -

    addAttribute(type, name, valueopt, isInheritableopt, positionopt) → {Attribute}

    +

    addAttribute(type, name, valueopt, isInheritableopt, positionopt) → {Attribute}

    @@ -1318,7 +1318,7 @@ See addLabel, addRelation for more specific methods.
    Source:
    @@ -1354,7 +1354,7 @@ See addLabel, addRelation for more specific methods.
    -Attribute +Attribute
    @@ -1402,7 +1402,7 @@ See addLabel, addRelation for more specific methods.
    Overrides:
    @@ -1425,7 +1425,7 @@ See addLabel, addRelation for more specific methods.
    Source:
    @@ -1461,7 +1461,7 @@ See addLabel, addRelation for more specific methods. -

    addLabel(name, valueopt, isInheritableopt) → {Attribute}

    +

    addLabel(name, valueopt, isInheritableopt) → {Attribute}

    @@ -1654,7 +1654,7 @@ See addLabel, addRelation for more specific methods.
    Source:
    @@ -1690,7 +1690,7 @@ See addLabel, addRelation for more specific methods.
    -Attribute +Attribute
    @@ -1708,7 +1708,7 @@ See addLabel, addRelation for more specific methods. -

    addRelation(name, targetNoteId, isInheritableopt) → {Attribute}

    +

    addRelation(name, targetNoteId, isInheritableopt) → {Attribute}

    @@ -1900,7 +1900,7 @@ returned.
    Source:
    @@ -1936,7 +1936,7 @@ returned.
    -Attribute +Attribute
    @@ -1984,7 +1984,7 @@ returned.
    Overrides:
    @@ -2007,7 +2007,7 @@ returned.
    Source:
    @@ -2135,7 +2135,7 @@ returned.
    Source:
    @@ -2335,7 +2335,7 @@ returned.
    Source:
    @@ -2401,7 +2401,7 @@ returned.
    Overrides:
    @@ -2424,7 +2424,7 @@ returned.
    Source:
    @@ -2490,7 +2490,7 @@ returned.
    Overrides:
    @@ -2513,7 +2513,7 @@ returned.
    Source:
    @@ -2597,7 +2597,7 @@ returned.
    Source:
    @@ -2655,7 +2655,7 @@ returned. -

    getAncestors() → {Array.<Note>}

    +

    getAncestors() → {Array.<BNote>}

    @@ -2703,7 +2703,7 @@ returned.
    Source:
    @@ -2739,7 +2739,7 @@ returned.
    -Array.<Note> +Array.<BNote>
    @@ -2757,7 +2757,7 @@ returned. -

    getAttribute(type, name) → {Attribute}

    +

    getAttribute(type, name) → {Attribute}

    @@ -2877,7 +2877,7 @@ returned.
    Source:
    @@ -2917,7 +2917,7 @@ returned.
    -Attribute +Attribute
    @@ -3055,7 +3055,7 @@ returned.
    Source:
    @@ -3116,7 +3116,7 @@ returned. -

    getAttributes(typeopt, nameopt) → {Array.<Attribute>}

    +

    getAttributes(typeopt, nameopt) → {Array.<Attribute>}

    @@ -3258,7 +3258,7 @@ returned.
    Source:
    @@ -3298,7 +3298,7 @@ returned.
    -Array.<Attribute> +Array.<Attribute>
    @@ -3316,7 +3316,7 @@ returned. -

    getBranches() → {Array.<Branch>}

    +

    getBranches() → {Array.<Branch>}

    @@ -3366,7 +3366,7 @@ returned.
    Source:
    @@ -3402,7 +3402,7 @@ returned.
    -Array.<Branch> +Array.<Branch>
    @@ -3420,7 +3420,7 @@ returned. -

    getChildBranches() → {Array.<Branch>}

    +

    getChildBranches() → {Array.<Branch>}

    @@ -3468,7 +3468,7 @@ returned.
    Source:
    @@ -3504,7 +3504,7 @@ returned.
    -Array.<Branch> +Array.<Branch>
    @@ -3522,7 +3522,7 @@ returned. -

    getChildNotes() → {Array.<Note>}

    +

    getChildNotes() → {Array.<BNote>}

    @@ -3570,7 +3570,7 @@ returned.
    Source:
    @@ -3606,7 +3606,7 @@ returned.
    -Array.<Note> +Array.<BNote>
    @@ -3672,7 +3672,7 @@ returned.
    Source:
    @@ -3774,7 +3774,7 @@ returned.
    Source:
    @@ -3878,7 +3878,7 @@ returned.
    Source:
    @@ -3968,7 +3968,7 @@ returned.
    Source:
    @@ -4074,7 +4074,7 @@ returned.
    Source:
    @@ -4128,7 +4128,7 @@ returned. -

    getLabel(name) → {Attribute|null}

    +

    getLabel(name) → {Attribute|null}

    @@ -4225,7 +4225,7 @@ returned.
    Source:
    @@ -4265,7 +4265,7 @@ returned.
    -Attribute +Attribute | null @@ -4383,7 +4383,7 @@ returned.
    Source:
    @@ -4553,7 +4553,7 @@ returned.
    Source:
    @@ -4611,7 +4611,7 @@ returned. -

    getLabels(nameopt) → {Array.<Attribute>}

    +

    getLabels(nameopt) → {Array.<Attribute>}

    @@ -4720,7 +4720,7 @@ returned.
    Source:
    @@ -4760,7 +4760,7 @@ returned.
    -Array.<Attribute> +Array.<Attribute>
    @@ -4778,7 +4778,7 @@ returned. -

    getOwnedAttribute() → {Attribute}

    +

    getOwnedAttribute() → {Attribute}

    @@ -4826,7 +4826,7 @@ returned.
    Source:
    @@ -4868,7 +4868,7 @@ This method can be significantly faster than the getAttribute()
    -Attribute +Attribute
    @@ -5006,7 +5006,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -5067,7 +5067,7 @@ This method can be significantly faster than the getAttribute() -

    getOwnedAttributes(typeopt, nameopt, valueopt) → {Array.<Attribute>}

    +

    getOwnedAttributes(typeopt, nameopt, valueopt) → {Array.<Attribute>}

    @@ -5271,7 +5271,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -5311,7 +5311,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Attribute> +Array.<Attribute>
    @@ -5329,7 +5329,7 @@ This method can be significantly faster than the getAttribute() -

    getOwnedLabel(name) → {Attribute|null}

    +

    getOwnedLabel(name) → {Attribute|null}

    @@ -5426,7 +5426,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -5466,7 +5466,7 @@ This method can be significantly faster than the getAttribute()
    -Attribute +Attribute | null @@ -5584,7 +5584,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -5754,7 +5754,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -5812,7 +5812,7 @@ This method can be significantly faster than the getAttribute() -

    getOwnedLabels(nameopt) → {Array.<Attribute>}

    +

    getOwnedLabels(nameopt) → {Array.<Attribute>}

    @@ -5921,7 +5921,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -5961,7 +5961,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Attribute> +Array.<Attribute>
    @@ -5979,7 +5979,7 @@ This method can be significantly faster than the getAttribute() -

    getOwnedRelation(name) → {Attribute|null}

    +

    getOwnedRelation(name) → {Attribute|null}

    @@ -6076,7 +6076,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6116,7 +6116,7 @@ This method can be significantly faster than the getAttribute()
    -Attribute +Attribute | null @@ -6234,7 +6234,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6295,7 +6295,7 @@ This method can be significantly faster than the getAttribute() -

    getOwnedRelations(nameopt) → {Array.<Attribute>}

    +

    getOwnedRelations(nameopt) → {Array.<Attribute>}

    @@ -6404,7 +6404,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6444,7 +6444,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Attribute> +Array.<Attribute>
    @@ -6462,7 +6462,7 @@ This method can be significantly faster than the getAttribute() -

    getParentBranches() → {Array.<Branch>}

    +

    getParentBranches() → {Array.<Branch>}

    @@ -6510,7 +6510,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6546,7 +6546,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Branch> +Array.<Branch>
    @@ -6564,7 +6564,7 @@ This method can be significantly faster than the getAttribute() -

    getParentNotes() → {Array.<Note>}

    +

    getParentNotes() → {Array.<BNote>}

    @@ -6612,7 +6612,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6648,7 +6648,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Note> +Array.<BNote>
    @@ -6696,7 +6696,7 @@ This method can be significantly faster than the getAttribute()
    Overrides:
    @@ -6719,7 +6719,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6755,7 +6755,7 @@ This method can be significantly faster than the getAttribute() -

    getRelation(name) → {Attribute|null}

    +

    getRelation(name) → {Attribute|null}

    @@ -6852,7 +6852,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -6892,7 +6892,7 @@ This method can be significantly faster than the getAttribute()
    -Attribute +Attribute | null @@ -7010,7 +7010,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7071,7 +7071,7 @@ This method can be significantly faster than the getAttribute() -

    getRelations(nameopt) → {Array.<Attribute>}

    +

    getRelations(nameopt) → {Array.<Attribute>}

    @@ -7180,7 +7180,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7220,7 +7220,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Attribute> +Array.<Attribute>
    @@ -7286,7 +7286,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7347,7 +7347,7 @@ This method can be significantly faster than the getAttribute() -

    getSearchResultNotes() → {Array.<Note>}

    +

    getSearchResultNotes() → {Array.<BNote>}

    @@ -7395,7 +7395,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7431,7 +7431,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Note> +Array.<BNote>
    @@ -7449,7 +7449,7 @@ This method can be significantly faster than the getAttribute() -

    getStrongParentBranches() → {Array.<Branch>}

    +

    getStrongParentBranches() → {Array.<Branch>}

    @@ -7501,7 +7501,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7537,7 +7537,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Branch> +Array.<Branch>
    @@ -7603,7 +7603,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7705,7 +7705,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7763,7 +7763,7 @@ This method can be significantly faster than the getAttribute() -

    getSubtreeNotesIncludingTemplated() → {Array.<Note>}

    +

    getSubtreeNotesIncludingTemplated() → {Array.<BNote>}

    @@ -7811,7 +7811,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7847,7 +7847,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Note> +Array.<BNote>
    @@ -7865,7 +7865,7 @@ This method can be significantly faster than the getAttribute() -

    getTemplatedNotes() → {Array.<Note>}

    +

    getTemplatedNotes() → {Array.<BNote>}

    @@ -7913,7 +7913,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -7954,7 +7954,7 @@ This method can be significantly faster than the getAttribute()
    -Array.<Note> +Array.<BNote>
    @@ -8002,7 +8002,7 @@ This method can be significantly faster than the getAttribute()
    Overrides:
    @@ -8025,7 +8025,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -8109,7 +8109,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -8335,7 +8335,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -8437,7 +8437,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -8631,7 +8631,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -8860,7 +8860,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9058,7 +9058,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9256,7 +9256,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9454,7 +9454,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9604,7 +9604,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9710,7 +9710,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9816,7 +9816,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -9922,7 +9922,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -10028,7 +10028,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -10134,7 +10134,7 @@ This method can be significantly faster than the getAttribute()
    Source:
    @@ -10292,7 +10292,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -10315,7 +10315,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -10526,7 +10526,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -10706,7 +10706,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -10886,7 +10886,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -10956,7 +10956,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -10979,7 +10979,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -11033,7 +11033,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and ' -

    saveNoteRevision() → {NoteRevision|null}

    +

    saveNoteRevision() → {BNoteRevision|null}

    @@ -11081,7 +11081,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -11117,7 +11117,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    -NoteRevision +BNoteRevision | null @@ -11313,7 +11313,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -11493,7 +11493,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -11653,7 +11653,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -11895,7 +11895,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -12106,7 +12106,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -12317,7 +12317,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -12363,7 +12363,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '

    diff --git a/docs/backend_api/NoteRevision.html b/docs/backend_api/BNoteRevision.html similarity index 74% rename from docs/backend_api/NoteRevision.html rename to docs/backend_api/BNoteRevision.html index 890162f52..220d0b294 100644 --- a/docs/backend_api/NoteRevision.html +++ b/docs/backend_api/BNoteRevision.html @@ -2,7 +2,7 @@ - JSDoc: Class: NoteRevision + JSDoc: Class: BNoteRevision @@ -17,7 +17,7 @@
    -

    Class: NoteRevision

    +

    Class: BNoteRevision

    @@ -28,7 +28,7 @@
    -

    NoteRevision()

    +

    BNoteRevision()

    NoteRevision represents snapshot of note's title and content at some point in the past. It's used for seamless note versioning.
    @@ -46,7 +46,7 @@ It's used for seamless note versioning.
    -

    new NoteRevision()

    +

    new BNoteRevision()

    @@ -94,7 +94,7 @@ It's used for seamless note versioning.
    Source:
    @@ -134,7 +134,7 @@ It's used for seamless note versioning. @@ -177,7 +177,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -200,7 +200,7 @@ It's used for seamless note versioning.
    Source:
    @@ -268,7 +268,7 @@ It's used for seamless note versioning.
    Source:
    @@ -336,7 +336,7 @@ It's used for seamless note versioning.
    Source:
    @@ -404,7 +404,7 @@ It's used for seamless note versioning.
    Source:
    @@ -472,7 +472,7 @@ It's used for seamless note versioning.
    Source:
    @@ -540,7 +540,7 @@ It's used for seamless note versioning.
    Source:
    @@ -608,7 +608,7 @@ It's used for seamless note versioning.
    Source:
    @@ -676,7 +676,7 @@ It's used for seamless note versioning.
    Source:
    @@ -744,7 +744,7 @@ It's used for seamless note versioning.
    Source:
    @@ -812,7 +812,7 @@ It's used for seamless note versioning.
    Source:
    @@ -880,7 +880,7 @@ It's used for seamless note versioning.
    Source:
    @@ -948,7 +948,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1016,7 +1016,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1074,7 +1074,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -1097,7 +1097,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1163,7 +1163,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -1186,7 +1186,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1252,7 +1252,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -1275,7 +1275,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1341,7 +1341,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -1364,7 +1364,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1448,7 +1448,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1550,7 +1550,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1634,7 +1634,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -1657,7 +1657,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1723,7 +1723,7 @@ It's used for seamless note versioning.
    Overrides:
    @@ -1746,7 +1746,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1830,7 +1830,7 @@ It's used for seamless note versioning.
    Source:
    @@ -1988,7 +1988,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -2011,7 +2011,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -2081,7 +2081,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -2104,7 +2104,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -2168,7 +2168,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    diff --git a/docs/backend_api/Option.html b/docs/backend_api/BOption.html similarity index 72% rename from docs/backend_api/Option.html rename to docs/backend_api/BOption.html index 00e1e5f69..729982cb5 100644 --- a/docs/backend_api/Option.html +++ b/docs/backend_api/BOption.html @@ -2,7 +2,7 @@ - JSDoc: Class: Option + JSDoc: Class: BOption @@ -17,7 +17,7 @@
    -

    Class: Option

    +

    Class: BOption

    @@ -28,7 +28,7 @@
    -

    Option()

    +

    BOption()

    Option represents name-value pair, either directly configurable by the user or some system property.
    @@ -45,7 +45,7 @@ -

    new Option()

    +

    new BOption()

    @@ -93,7 +93,7 @@
    Source:
    @@ -133,7 +133,7 @@ @@ -176,7 +176,7 @@
    Overrides:
    @@ -199,7 +199,7 @@
    Source:
    @@ -267,7 +267,7 @@
    Source:
    @@ -335,7 +335,7 @@
    Source:
    @@ -403,7 +403,7 @@
    Source:
    @@ -471,7 +471,7 @@
    Source:
    @@ -529,7 +529,7 @@
    Overrides:
    @@ -552,7 +552,7 @@
    Source:
    @@ -618,7 +618,7 @@
    Overrides:
    @@ -641,7 +641,7 @@
    Source:
    @@ -707,7 +707,7 @@
    Overrides:
    @@ -730,7 +730,7 @@
    Source:
    @@ -796,7 +796,7 @@
    Overrides:
    @@ -819,7 +819,7 @@
    Source:
    @@ -885,7 +885,7 @@
    Overrides:
    @@ -908,7 +908,7 @@
    Source:
    @@ -974,7 +974,7 @@
    Overrides:
    @@ -997,7 +997,7 @@
    Source:
    @@ -1133,7 +1133,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1156,7 +1156,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1226,7 +1226,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1249,7 +1249,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1313,7 +1313,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '

    diff --git a/docs/backend_api/RecentNote.html b/docs/backend_api/BRecentNote.html similarity index 71% rename from docs/backend_api/RecentNote.html rename to docs/backend_api/BRecentNote.html index 227cca7a3..62fc0b099 100644 --- a/docs/backend_api/RecentNote.html +++ b/docs/backend_api/BRecentNote.html @@ -2,7 +2,7 @@ - JSDoc: Class: RecentNote + JSDoc: Class: BRecentNote @@ -17,7 +17,7 @@
    -

    Class: RecentNote

    +

    Class: BRecentNote

    @@ -28,7 +28,7 @@
    -

    RecentNote()

    +

    BRecentNote()

    RecentNote represents recently visited note.
    @@ -45,7 +45,7 @@ -

    new RecentNote()

    +

    new BRecentNote()

    @@ -93,7 +93,7 @@
    Source:
    @@ -133,7 +133,7 @@ @@ -176,7 +176,7 @@
    Overrides:
    @@ -199,7 +199,7 @@
    Source:
    @@ -267,7 +267,7 @@
    Source:
    @@ -335,7 +335,7 @@
    Source:
    @@ -403,7 +403,7 @@
    Source:
    @@ -461,7 +461,7 @@
    Overrides:
    @@ -484,7 +484,7 @@
    Source:
    @@ -550,7 +550,7 @@
    Overrides:
    @@ -573,7 +573,7 @@
    Source:
    @@ -639,7 +639,7 @@
    Overrides:
    @@ -662,7 +662,7 @@
    Source:
    @@ -728,7 +728,7 @@
    Overrides:
    @@ -751,7 +751,7 @@
    Source:
    @@ -817,7 +817,7 @@
    Overrides:
    @@ -840,7 +840,7 @@
    Source:
    @@ -906,7 +906,7 @@
    Overrides:
    @@ -929,7 +929,7 @@
    Source:
    @@ -1065,7 +1065,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1088,7 +1088,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1158,7 +1158,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Overrides:
    @@ -1181,7 +1181,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '
    Source:
    @@ -1245,7 +1245,7 @@ This is a low level method, for notes and branches use `note.deleteNote()` and '

    diff --git a/docs/backend_api/BackendScriptApi.html b/docs/backend_api/BackendScriptApi.html index 81aeeaa36..4c4b8b850 100644 --- a/docs/backend_api/BackendScriptApi.html +++ b/docs/backend_api/BackendScriptApi.html @@ -185,7 +185,7 @@
    Source:
    @@ -356,7 +356,7 @@ -Note +BNote @@ -796,7 +796,7 @@ -Note +BNote @@ -2518,7 +2518,7 @@ JSON MIME type. See also createNewNote() for more options. -

    exportSubtreeToZipFile(noteId, format, zipFilePath)

    +

    exportSubtreeToZipFile(noteId, format, zipFilePath) → {Promise}

    @@ -2661,7 +2661,7 @@ JSON MIME type. See also createNewNote() for more options.
    Source:
    @@ -2686,6 +2686,24 @@ JSON MIME type. See also createNewNote() for more options. +
    Returns:
    + + + + +
    +
    + Type +
    +
    + +Promise + + +
    +
    + + @@ -2806,7 +2824,7 @@ JSON MIME type. See also createNewNote() for more options. -

    getAttribute(attributeId) → {Attribute|null}

    +

    getAttribute(attributeId) → {Attribute|null}

    @@ -2939,7 +2957,7 @@ JSON MIME type. See also createNewNote() for more options.
    -Attribute +Attribute | null @@ -2960,7 +2978,7 @@ JSON MIME type. See also createNewNote() for more options. -

    getBranch(branchId) → {Branch|null}

    +

    getBranch(branchId) → {Branch|null}

    @@ -3093,7 +3111,7 @@ JSON MIME type. See also createNewNote() for more options.
    -Branch +Branch | null @@ -3114,7 +3132,7 @@ JSON MIME type. See also createNewNote() for more options. -

    getDateNote(date, rootNoteopt) → {Note|null}

    +

    getDateNote(date, rootNoteopt) → {BNote|null}

    @@ -3197,7 +3215,7 @@ JSON MIME type. See also createNewNote() for more options. -Note +BNote @@ -3296,7 +3314,7 @@ JSON MIME type. See also createNewNote() for more options.
    -Note +BNote | null @@ -3317,7 +3335,7 @@ JSON MIME type. See also createNewNote() for more options. -

    getDayNote(date, rootNoteopt) → {Note|null}

    +

    getDayNote(date, rootNoteopt) → {BNote|null}

    @@ -3400,7 +3418,7 @@ JSON MIME type. See also createNewNote() for more options. -Note +BNote @@ -3497,7 +3515,7 @@ JSON MIME type. See also createNewNote() for more options.
    -Note +BNote | null @@ -3628,7 +3646,7 @@ if some action needs to happen on only one specific instance. -

    getMonthNote(date, rootNoteopt) → {Note|null}

    +

    getMonthNote(date, rootNoteopt) → {BNote|null}

    @@ -3711,7 +3729,7 @@ if some action needs to happen on only one specific instance. -Note +BNote @@ -3808,7 +3826,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -3829,7 +3847,7 @@ if some action needs to happen on only one specific instance. -

    getNote(noteId) → {Note|null}

    +

    getNote(noteId) → {BNote|null}

    @@ -3962,7 +3980,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -3983,7 +4001,7 @@ if some action needs to happen on only one specific instance. -

    getNoteWithLabel(name, valueopt) → {Note|null}

    +

    getNoteWithLabel(name, valueopt) → {BNote|null}

    @@ -4163,7 +4181,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -4184,7 +4202,7 @@ if some action needs to happen on only one specific instance. -

    getNotesWithLabel(name, valueopt) → {Array.<Note>}

    +

    getNotesWithLabel(name, valueopt) → {Array.<BNote>}

    @@ -4364,7 +4382,7 @@ if some action needs to happen on only one specific instance.
    -Array.<Note> +Array.<BNote>
    @@ -4382,7 +4400,7 @@ if some action needs to happen on only one specific instance. -

    getRootCalendarNote() → {Note|null}

    +

    getRootCalendarNote() → {BNote|null}

    @@ -4470,7 +4488,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -4491,7 +4509,7 @@ if some action needs to happen on only one specific instance. -

    getTodayNote(rootNoteopt) → {Note|null}

    +

    getTodayNote(rootNoteopt) → {BNote|null}

    @@ -4543,7 +4561,7 @@ if some action needs to happen on only one specific instance. -Note +BNote @@ -4640,7 +4658,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -4661,7 +4679,7 @@ if some action needs to happen on only one specific instance. -

    getWeekNote(date, optionsopt, rootNoteopt) → {Note|null}

    +

    getWeekNote(date, optionsopt, rootNoteopt) → {BNote|null}

    @@ -4777,7 +4795,7 @@ if some action needs to happen on only one specific instance. -Note +BNote @@ -4874,7 +4892,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -4895,7 +4913,7 @@ if some action needs to happen on only one specific instance. -

    getYearNote(year, rootNoteopt) → {Note|null}

    +

    getYearNote(year, rootNoteopt) → {BNote|null}

    @@ -4978,7 +4996,7 @@ if some action needs to happen on only one specific instance. -Note +BNote @@ -5075,7 +5093,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -5473,7 +5491,7 @@ if some action needs to happen on only one specific instance. -

    searchForNote(query, searchParamsopt) → {Note|null}

    +

    searchForNote(query, searchParamsopt) → {BNote|null}

    @@ -5654,7 +5672,7 @@ if some action needs to happen on only one specific instance.
    -Note +BNote | null @@ -5675,7 +5693,7 @@ if some action needs to happen on only one specific instance. -

    searchForNotes(query, searchParamsopt) → {Array.<Note>}

    +

    searchForNotes(query, searchParamsopt) → {Array.<BNote>}

    @@ -5856,7 +5874,7 @@ if some action needs to happen on only one specific instance.
    -Array.<Note> +Array.<BNote>
    @@ -6929,7 +6947,7 @@ exists, then we'll use that transaction.
    diff --git a/docs/backend_api/becca_entities_abstract_entity.js.html b/docs/backend_api/becca_entities_abstract_becca_entity.js.html similarity index 88% rename from docs/backend_api/becca_entities_abstract_entity.js.html rename to docs/backend_api/becca_entities_abstract_becca_entity.js.html index b30f61521..65f982723 100644 --- a/docs/backend_api/becca_entities_abstract_entity.js.html +++ b/docs/backend_api/becca_entities_abstract_becca_entity.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/abstract_entity.js + JSDoc: Source: becca/entities/abstract_becca_entity.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/abstract_entity.js

    +

    Source: becca/entities/abstract_becca_entity.js

    @@ -41,7 +41,7 @@ let becca = null; /** * Base class for all backend entities. */ -class AbstractEntity { +class AbstractBeccaEntity { /** @protected */ beforeSaving() { this.generateIdIfNecessary(); @@ -195,7 +195,7 @@ class AbstractEntity { } } -module.exports = AbstractEntity; +module.exports = AbstractBeccaEntity; @@ -206,7 +206,7 @@ module.exports = AbstractEntity;

    diff --git a/docs/backend_api/becca_entities_attribute.js.html b/docs/backend_api/becca_entities_battribute.js.html similarity index 87% rename from docs/backend_api/becca_entities_attribute.js.html rename to docs/backend_api/becca_entities_battribute.js.html index e2084c5ff..447c8fca3 100644 --- a/docs/backend_api/becca_entities_attribute.js.html +++ b/docs/backend_api/becca_entities_battribute.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/attribute.js + JSDoc: Source: becca/entities/battribute.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/attribute.js

    +

    Source: becca/entities/battribute.js

    @@ -28,8 +28,8 @@
    "use strict";
     
    -const Note = require('./note');
    -const AbstractEntity = require("./abstract_entity");
    +const BNote = require('./bnote');
    +const AbstractBeccaEntity = require("./abstract_becca_entity");
     const sql = require("../../services/sql");
     const dateUtils = require("../../services/date_utils");
     const promotedAttributeDefinitionParser = require("../../services/promoted_attribute_definition_parser");
    @@ -39,9 +39,9 @@ const {sanitizeAttributeName} = require("../../services/sanitize_attribute_name"
      * 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
    + * @extends AbstractBeccaEntity
      */
    -class Attribute extends AbstractEntity {
    +class BAttribute extends AbstractBeccaEntity {
         static get entityName() { return "attributes"; }
         static get primaryKeyName() { return "attributeId"; }
         static get hashedProperties() { return ["attributeId", "noteId", "type", "name", "value", "isInheritable"]; }
    @@ -98,7 +98,7 @@ class Attribute extends AbstractEntity {
     
             if (!(this.noteId in this.becca.notes)) {
                 // entities can come out of order in sync, create skeleton which will be filled later
    -            this.becca.addNote(this.noteId, new Note({noteId: this.noteId}));
    +            this.becca.addNote(this.noteId, new BNote({noteId: this.noteId}));
             }
     
             this.becca.notes[this.noteId].ownedAttributes.push(this);
    @@ -152,7 +152,7 @@ class Attribute extends AbstractEntity {
         }
     
         /**
    -     * @returns {Note|null}
    +     * @returns {BNote|null}
          */
         getNote() {
             const note = this.becca.getNote(this.noteId);
    @@ -165,7 +165,7 @@ class Attribute extends AbstractEntity {
         }
     
         /**
    -     * @returns {Note|null}
    +     * @returns {BNote|null}
          */
         getTargetNote() {
             if (this.type !== 'relation') {
    @@ -245,7 +245,7 @@ class Attribute extends AbstractEntity {
         }
     
         createClone(type, name, value, isInheritable) {
    -        return new Attribute({
    +        return new BAttribute({
                 noteId: this.noteId,
                 type: type,
                 name: name,
    @@ -257,7 +257,7 @@ class Attribute extends AbstractEntity {
         }
     }
     
    -module.exports = Attribute;
    +module.exports = BAttribute;
     
    @@ -268,7 +268,7 @@ module.exports = Attribute;

    diff --git a/docs/backend_api/becca_entities_branch.js.html b/docs/backend_api/becca_entities_bbranch.js.html similarity index 88% rename from docs/backend_api/becca_entities_branch.js.html rename to docs/backend_api/becca_entities_bbranch.js.html index e914ea3ad..516a40431 100644 --- a/docs/backend_api/becca_entities_branch.js.html +++ b/docs/backend_api/becca_entities_bbranch.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/branch.js + JSDoc: Source: becca/entities/bbranch.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/branch.js

    +

    Source: becca/entities/bbranch.js

    @@ -28,8 +28,8 @@
    "use strict";
     
    -const Note = require('./note');
    -const AbstractEntity = require("./abstract_entity");
    +const BNote = require('./bnote');
    +const AbstractBeccaEntity = require("./abstract_becca_entity");
     const dateUtils = require("../../services/date_utils");
     const utils = require("../../services/utils");
     const TaskContext = require("../../services/task_context");
    @@ -43,9 +43,9 @@ const log = require("../../services/log");
      * Note that you should not rely on the branch's identity, since it can change easily with a note's move.
      * Always check noteId instead.
      *
    - * @extends AbstractEntity
    + * @extends AbstractBeccaEntity
      */
    -class Branch extends AbstractEntity {
    +class BBranch extends AbstractBeccaEntity {
         static get entityName() { return "branches"; }
         static get primaryKeyName() { return "branchId"; }
         // notePosition is not part of hash because it would produce a lot of updates in case of reordering
    @@ -121,11 +121,11 @@ class Branch extends AbstractEntity {
             }
         }
     
    -    /** @returns {Note} */
    +    /** @returns {BNote} */
         get childNote() {
             if (!(this.noteId in this.becca.notes)) {
                 // entities can come out of order in sync/import, create skeleton which will be filled later
    -            this.becca.addNote(this.noteId, new Note({noteId: this.noteId}));
    +            this.becca.addNote(this.noteId, new BNote({noteId: this.noteId}));
             }
     
             return this.becca.notes[this.noteId];
    @@ -135,11 +135,11 @@ class Branch extends AbstractEntity {
             return this.childNote;
         }
     
    -    /** @returns {Note|undefined} - root branch will have undefined parent, all other branches have to have a parent note */
    +    /** @returns {BNote|undefined} - root branch will have undefined parent, all other branches have to have a parent note */
         get parentNote() {
             if (!(this.parentNoteId in this.becca.notes) && this.parentNoteId !== 'none') {
                 // entities can come out of order in sync/import, create skeleton which will be filled later
    -            this.becca.addNote(this.parentNoteId, new Note({noteId: this.parentNoteId}));
    +            this.becca.addNote(this.parentNoteId, new BNote({noteId: this.parentNoteId}));
             }
     
             return this.becca.notes[this.parentNoteId];
    @@ -291,7 +291,7 @@ class Branch extends AbstractEntity {
                 existingBranch.notePosition = notePosition;
                 return existingBranch;
             } else {
    -            return new Branch({
    +            return new BBranch({
                     noteId: this.noteId,
                     parentNoteId: parentNoteId,
                     notePosition: notePosition,
    @@ -302,7 +302,7 @@ class Branch extends AbstractEntity {
         }
     }
     
    -module.exports = Branch;
    +module.exports = BBranch;
     
    @@ -313,7 +313,7 @@ module.exports = Branch;

    diff --git a/docs/backend_api/becca_entities_etapi_token.js.html b/docs/backend_api/becca_entities_betapi_token.js.html similarity index 78% rename from docs/backend_api/becca_entities_etapi_token.js.html rename to docs/backend_api/becca_entities_betapi_token.js.html index 064d6494b..78682c44c 100644 --- a/docs/backend_api/becca_entities_etapi_token.js.html +++ b/docs/backend_api/becca_entities_betapi_token.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/etapi_token.js + JSDoc: Source: becca/entities/betapi_token.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/etapi_token.js

    +

    Source: becca/entities/betapi_token.js

    @@ -29,7 +29,7 @@
    "use strict";
     
     const dateUtils = require('../../services/date_utils');
    -const AbstractEntity = require("./abstract_entity");
    +const AbstractBeccaEntity = require("./abstract_becca_entity");
     
     /**
      * EtapiToken is an entity representing token used to authenticate against Trilium REST API from client applications.
    @@ -40,9 +40,9 @@ 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
    + * @extends AbstractBeccaEntity
      */
    -class EtapiToken extends AbstractEntity {
    +class BEtapiToken extends AbstractBeccaEntity {
         static get entityName() { return "etapi_tokens"; }
         static get primaryKeyName() { return "etapiTokenId"; }
         static get hashedProperties() { return ["etapiTokenId", "name", "tokenHash", "utcDateCreated", "utcDateModified", "isDeleted"]; }
    @@ -103,7 +103,7 @@ class EtapiToken extends AbstractEntity {
         }
     }
     
    -module.exports = EtapiToken;
    +module.exports = BEtapiToken;
     
    @@ -114,7 +114,7 @@ module.exports = EtapiToken;

    diff --git a/docs/backend_api/becca_entities_note.js.html b/docs/backend_api/becca_entities_bnote.js.html similarity index 96% rename from docs/backend_api/becca_entities_note.js.html rename to docs/backend_api/becca_entities_bnote.js.html index 0a5e86b0c..2e481ccf6 100644 --- a/docs/backend_api/becca_entities_note.js.html +++ b/docs/backend_api/becca_entities_bnote.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/note.js + JSDoc: Source: becca/entities/bnote.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/note.js

    +

    Source: becca/entities/bnote.js

    @@ -34,8 +34,8 @@ const sql = require('../../services/sql'); const utils = require('../../services/utils'); const dateUtils = require('../../services/date_utils'); const entityChangesService = require('../../services/entity_changes'); -const AbstractEntity = require("./abstract_entity"); -const NoteRevision = require("./note_revision"); +const AbstractBeccaEntity = require("./abstract_becca_entity"); +const BNoteRevision = require("./bnote_revision"); const TaskContext = require("../../services/task_context"); const dayjs = require("dayjs"); const utc = require('dayjs/plugin/utc'); @@ -47,9 +47,9 @@ const RELATION = 'relation'; /** * Trilium's main entity which can represent text note, image, code note, file attachment etc. * - * @extends AbstractEntity + * @extends AbstractBeccaEntity */ -class Note extends AbstractEntity { +class BNote extends AbstractBeccaEntity { static get entityName() { return "notes"; } static get primaryKeyName() { return "noteId"; } static get hashedProperties() { return ["noteId", "title", "isProtected", "type", "mime"]; } @@ -120,10 +120,10 @@ class Note extends AbstractEntity { /** @type {Branch[]} * @private */ this.parentBranches = []; - /** @type {Note[]} + /** @type {BNote[]} * @private */ this.parents = []; - /** @type {Note[]} + /** @type {BNote[]} * @private*/ this.children = []; /** @type {Attribute[]} @@ -143,7 +143,7 @@ class Note extends AbstractEntity { this.becca.addNote(this.noteId, this); - /** @type {Note[]|null} + /** @type {BNote[]|null} * @private */ this.ancestorCache = null; @@ -201,12 +201,12 @@ class Note extends AbstractEntity { return this.parentBranches; } - /** @returns {Note[]} */ + /** @returns {BNote[]} */ getParentNotes() { return this.parents; } - /** @returns {Note[]} */ + /** @returns {BNote[]} */ getChildNotes() { return this.children; } @@ -860,7 +860,7 @@ class Note extends AbstractEntity { return !!this.targetRelations.find(rel => rel.name === 'template'); } - /** @returns {Note[]} */ + /** @returns {BNote[]} */ getSubtreeNotesIncludingTemplated() { const set = new Set(); @@ -891,7 +891,7 @@ class Note extends AbstractEntity { return Array.from(set); } - /** @return {Note[]} */ + /** @return {BNote[]} */ getSearchResultNotes() { if (this.type !== 'search') { return []; @@ -913,7 +913,7 @@ class Note extends AbstractEntity { } /** - * @returns {{notes: Note[], relationships: Array.<{parentNoteId: string, childNoteId: string}>}} + * @returns {{notes: BNote[], relationships: Array.<{parentNoteId: string, childNoteId: string}>}} */ getSubtree({includeArchived = true, includeHidden = false, resolveSearch = false} = {}) { const noteSet = new Set(); @@ -1033,7 +1033,7 @@ class Note extends AbstractEntity { return this.getAttributes().length; } - /** @returns {Note[]} */ + /** @returns {BNote[]} */ getAncestors() { if (!this.ancestorCache) { const noteIds = new Set(); @@ -1078,7 +1078,7 @@ class Note extends AbstractEntity { return this.targetRelations; } - /** @returns {Note[]} - returns only notes which are templated, does not include their subtrees + /** @returns {BNote[]} - returns only notes which are templated, does not include their subtrees * in effect returns notes which are influenced by note's non-inheritable attributes */ getTemplatedNotes() { const arr = [this]; @@ -1112,7 +1112,7 @@ class Note extends AbstractEntity { getNoteRevisions() { return sql.getRows("SELECT * FROM note_revisions WHERE noteId = ?", [this.noteId]) - .map(row => new NoteRevision(row)); + .map(row => new BNoteRevision(row)); } /** @@ -1165,9 +1165,9 @@ class Note extends AbstractEntity { } } else { - const Attribute = require("./attribute"); + const BAttribute = require("./battribute"); - new Attribute({ + new BAttribute({ noteId: this.noteId, type: type, name: name, @@ -1205,7 +1205,7 @@ class Note extends AbstractEntity { * @return {Attribute} */ addAttribute(type, name, value = "", isInheritable = false, position = 1000) { - const Attribute = require("./attribute"); + const BAttribute = require("./battribute"); return new Attribute({ noteId: this.noteId, @@ -1387,7 +1387,7 @@ class Note extends AbstractEntity { } /** - * @return {NoteRevision|null} + * @return {BNoteRevision|null} */ saveNoteRevision() { const content = this.getContent(); @@ -1398,7 +1398,7 @@ class Note extends AbstractEntity { const contentMetadata = this.getContentMetadata(); - const noteRevision = new NoteRevision({ + const noteRevision = new BNoteRevision({ noteId: this.noteId, // title and text should be decrypted now title: this.title, @@ -1462,7 +1462,7 @@ class Note extends AbstractEntity { } } -module.exports = Note; +module.exports = BNote; @@ -1473,7 +1473,7 @@ module.exports = Note;

    diff --git a/docs/backend_api/becca_entities_note_revision.js.html b/docs/backend_api/becca_entities_bnote_revision.js.html similarity index 90% rename from docs/backend_api/becca_entities_note_revision.js.html rename to docs/backend_api/becca_entities_bnote_revision.js.html index 701317705..134307c84 100644 --- a/docs/backend_api/becca_entities_note_revision.js.html +++ b/docs/backend_api/becca_entities_bnote_revision.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/note_revision.js + JSDoc: Source: becca/entities/bnote_revision.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/note_revision.js

    +

    Source: becca/entities/bnote_revision.js

    @@ -34,15 +34,15 @@ const sql = require('../../services/sql'); const dateUtils = require('../../services/date_utils'); const becca = require('../becca'); const entityChangesService = require('../../services/entity_changes'); -const AbstractEntity = require("./abstract_entity"); +const AbstractBeccaEntity = require("./abstract_becca_entity"); /** * NoteRevision represents snapshot of note's title and content at some point in the past. * It's used for seamless note versioning. * - * @extends AbstractEntity + * @extends AbstractBeccaEntity */ -class NoteRevision extends AbstractEntity { +class BNoteRevision extends AbstractBeccaEntity { static get entityName() { return "note_revisions"; } static get primaryKeyName() { return "noteRevisionId"; } static get hashedProperties() { return ["noteRevisionId", "noteId", "title", "isProtected", "dateLastEdited", "dateCreated", "utcDateLastEdited", "utcDateCreated", "utcDateModified"]; } @@ -218,7 +218,7 @@ class NoteRevision extends AbstractEntity { } } -module.exports = NoteRevision; +module.exports = BNoteRevision; @@ -229,7 +229,7 @@ module.exports = NoteRevision;

    diff --git a/docs/backend_api/becca_entities_option.js.html b/docs/backend_api/becca_entities_boption.js.html similarity index 72% rename from docs/backend_api/becca_entities_option.js.html rename to docs/backend_api/becca_entities_boption.js.html index f63984cec..3a35c6105 100644 --- a/docs/backend_api/becca_entities_option.js.html +++ b/docs/backend_api/becca_entities_boption.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/option.js + JSDoc: Source: becca/entities/boption.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/option.js

    +

    Source: becca/entities/boption.js

    @@ -29,14 +29,14 @@
    "use strict";
     
     const dateUtils = require('../../services/date_utils');
    -const AbstractEntity = require("./abstract_entity");
    +const AbstractBeccaEntity = require("./abstract_becca_entity");
     
     /**
      * Option represents name-value pair, either directly configurable by the user or some system property.
      *
    - * @extends AbstractEntity
    + * @extends AbstractBeccaEntity
      */
    -class Option extends AbstractEntity {
    +class BOption extends AbstractBeccaEntity {
         static get entityName() { return "options"; }
         static get primaryKeyName() { return "name"; }
         static get hashedProperties() { return ["name", "value"]; }
    @@ -72,7 +72,7 @@ class Option extends AbstractEntity {
         }
     }
     
    -module.exports = Option;
    +module.exports = BOption;
     
    @@ -83,7 +83,7 @@ module.exports = Option;

    diff --git a/docs/backend_api/becca_entities_recent_note.js.html b/docs/backend_api/becca_entities_brecent_note.js.html similarity index 67% rename from docs/backend_api/becca_entities_recent_note.js.html rename to docs/backend_api/becca_entities_brecent_note.js.html index 5d6268cb2..359c20669 100644 --- a/docs/backend_api/becca_entities_recent_note.js.html +++ b/docs/backend_api/becca_entities_brecent_note.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: becca/entities/recent_note.js + JSDoc: Source: becca/entities/brecent_note.js @@ -17,7 +17,7 @@
    -

    Source: becca/entities/recent_note.js

    +

    Source: becca/entities/brecent_note.js

    @@ -29,14 +29,14 @@
    "use strict";
     
     const dateUtils = require('../../services/date_utils');
    -const AbstractEntity = require("./abstract_entity");
    +const AbstractBeccaEntity = require("./abstract_becca_entity");
     
     /**
      * RecentNote represents recently visited note.
      *
    - * @extends AbstractEntity
    + * @extends AbstractBeccaEntity
      */
    -class RecentNote extends AbstractEntity {
    +class BRecentNote extends AbstractBeccaEntity {
         static get entityName() { return "recent_notes"; }
         static get primaryKeyName() { return "noteId"; }
     
    @@ -60,7 +60,7 @@ class RecentNote extends AbstractEntity {
         }
     }
     
    -module.exports = RecentNote;
    +module.exports = BRecentNote;
     
    @@ -71,7 +71,7 @@ module.exports = RecentNote;

    diff --git a/docs/backend_api/global.html b/docs/backend_api/global.html index 0cba37b8c..099cb2d0b 100644 --- a/docs/backend_api/global.html +++ b/docs/backend_api/global.html @@ -1711,7 +1711,7 @@
    diff --git a/docs/backend_api/index.html b/docs/backend_api/index.html index afc8c4960..7171d3635 100644 --- a/docs/backend_api/index.html +++ b/docs/backend_api/index.html @@ -50,7 +50,7 @@
    diff --git a/docs/backend_api/module-sql.html b/docs/backend_api/module-sql.html index 58ca58289..1716e1a65 100644 --- a/docs/backend_api/module-sql.html +++ b/docs/backend_api/module-sql.html @@ -1294,7 +1294,7 @@
    diff --git a/docs/backend_api/services_backend_script_api.js.html b/docs/backend_api/services_backend_script_api.js.html index eb02c31b5..9be900162 100644 --- a/docs/backend_api/services_backend_script_api.js.html +++ b/docs/backend_api/services_backend_script_api.js.html @@ -55,9 +55,9 @@ const exportService = require("./export/zip"); * @hideconstructor */ function BackendScriptApi(currentNote, apiParams) { - /** @property {Note} note where script started executing */ + /** @property {BNote} note where script started executing */ this.startNote = apiParams.startNote; - /** @property {Note} note where script is currently executing. Don't mix this up with concept of active note */ + /** @property {BNote} note where script is currently executing. Don't mix this up with concept of active note */ this.currentNote = currentNote; /** @property {Entity} entity whose event triggered this executions */ this.originEntity = apiParams.originEntity; @@ -89,7 +89,7 @@ function BackendScriptApi(currentNote, apiParams) { /** * @method * @param {string} noteId - * @returns {Note|null} + * @returns {BNote|null} */ this.getNote = noteId => becca.getNote(noteId); @@ -114,7 +114,7 @@ function BackendScriptApi(currentNote, apiParams) { * @method * @param {string} query * @param {Object} [searchParams] - * @returns {Note[]} + * @returns {BNote[]} */ this.searchForNotes = (query, searchParams = {}) => { if (searchParams.includeArchivedNotes === undefined) { @@ -138,7 +138,7 @@ function BackendScriptApi(currentNote, apiParams) { * @method * @param {string} query * @param {Object} [searchParams] - * @returns {Note|null} + * @returns {BNote|null} */ this.searchForNote = (query, searchParams = {}) => { const notes = this.searchForNotes(query, searchParams); @@ -152,7 +152,7 @@ function BackendScriptApi(currentNote, apiParams) { * @method * @param {string} name - attribute name * @param {string} [value] - attribute value - * @returns {Note[]} + * @returns {BNote[]} */ this.getNotesWithLabel = attributeService.getNotesWithLabel; @@ -162,7 +162,7 @@ function BackendScriptApi(currentNote, apiParams) { * @method * @param {string} name - attribute name * @param {string} [value] - attribute value - * @returns {Note|null} + * @returns {BNote|null} */ this.getNoteWithLabel = attributeService.getNoteWithLabel; @@ -212,7 +212,7 @@ function BackendScriptApi(currentNote, apiParams) { * @param {string} parentNoteId * @param {string} title * @param {string} content - * @return {{note: Note, branch: Branch}} - object having "note" and "branch" keys representing respective objects + * @return {{note: BNote, branch: Branch}} - object having "note" and "branch" keys representing respective objects */ this.createTextNote = (parentNoteId, title, content = '') => noteService.createNewNote({ parentNoteId, @@ -228,7 +228,7 @@ function BackendScriptApi(currentNote, apiParams) { * @param {string} parentNoteId * @param {string} title * @param {object} content - * @return {{note: Note, branch: Branch}} object having "note" and "branch" keys representing respective objects + * @return {{note: BNote, branch: Branch}} object having "note" and "branch" keys representing respective objects */ this.createDataNote = (parentNoteId, title, content = {}) => noteService.createNewNote({ parentNoteId, @@ -255,7 +255,7 @@ function BackendScriptApi(currentNote, apiParams) { * @method * * @param {CreateNewNoteParams} [params] - * @returns {{note: Note, branch: Branch}} object contains newly created entities note and branch + * @returns {{note: BNote, branch: Branch}} object contains newly created entities note and branch */ this.createNewNote = noteService.createNewNote; @@ -283,7 +283,7 @@ function BackendScriptApi(currentNote, apiParams) { * @param {string} title * @param {string} [content=""] * @param {CreateNoteExtraOptions} [extraOptions={}] - * @returns {{note: Note, branch: Branch}} object contains newly created entities note and branch + * @returns {{note: BNote, branch: Branch}} object contains newly created entities note and branch */ this.createNote = (parentNoteId, title, content = "", extraOptions= {}) => { extraOptions.parentNoteId = parentNoteId; @@ -354,7 +354,7 @@ function BackendScriptApi(currentNote, apiParams) { * Returns root note of the calendar. * * @method - * @returns {Note|null} + * @returns {BNote|null} */ this.getRootCalendarNote = dateNoteService.getRootCalendarNote; @@ -363,8 +363,8 @@ function BackendScriptApi(currentNote, apiParams) { * * @method * @param {string} date in YYYY-MM-DD format - * @param {Note} [rootNote] - specify calendar root note, normally leave empty to use default calendar - * @returns {Note|null} + * @param {BNote} [rootNote] - specify calendar root note, normally leave empty to use default calendar + * @returns {BNote|null} * @deprecated use getDayNote instead */ this.getDateNote = dateNoteService.getDayNote; @@ -374,8 +374,8 @@ function BackendScriptApi(currentNote, apiParams) { * * @method * @param {string} date in YYYY-MM-DD format - * @param {Note} [rootNote] - specify calendar root note, normally leave empty to use default calendar - * @returns {Note|null} + * @param {BNote} [rootNote] - specify calendar root note, normally leave empty to use default calendar + * @returns {BNote|null} */ this.getDayNote = dateNoteService.getDayNote; @@ -383,8 +383,8 @@ function BackendScriptApi(currentNote, apiParams) { * Returns today's day note. If such note doesn't exist, it is created. * * @method - * @param {Note} [rootNote] - specify calendar root note, normally leave empty to use default calendar - * @returns {Note|null} + * @param {BNote} [rootNote] - specify calendar root note, normally leave empty to use default calendar + * @returns {BNote|null} */ this.getTodayNote = dateNoteService.getTodayNote; @@ -394,8 +394,8 @@ function BackendScriptApi(currentNote, apiParams) { * @method * @param {string} date in YYYY-MM-DD format * @param {object} [options] - "startOfTheWeek" - either "monday" (default) or "sunday" - * @param {Note} [rootNote] - specify calendar root note, normally leave empty to use default calendar - * @returns {Note|null} + * @param {BNote} [rootNote] - specify calendar root note, normally leave empty to use default calendar + * @returns {BNote|null} */ this.getWeekNote = dateNoteService.getWeekNote; @@ -404,8 +404,8 @@ function BackendScriptApi(currentNote, apiParams) { * * @method * @param {string} date in YYYY-MM format - * @param {Note} [rootNote] - specify calendar root note, normally leave empty to use default calendar - * @returns {Note|null} + * @param {BNote} [rootNote] - specify calendar root note, normally leave empty to use default calendar + * @returns {BNote|null} */ this.getMonthNote = dateNoteService.getMonthNote; @@ -414,8 +414,8 @@ function BackendScriptApi(currentNote, apiParams) { * * @method * @param {string} year in YYYY format - * @param {Note} [rootNote] - specify calendar root note, normally leave empty to use default calendar - * @returns {Note|null} + * @param {BNote} [rootNote] - specify calendar root note, normally leave empty to use default calendar + * @returns {BNote|null} */ this.getYearNote = dateNoteService.getYearNote; @@ -596,8 +596,9 @@ function BackendScriptApi(currentNote, apiParams) { * @param {string} noteId * @param {string} format - either 'html' or 'markdown' * @param {string} zipFilePath + * @returns {Promise} */ - this.exportSubtreeToZipFile = (noteId, format, zipFilePath) => exportService.exportToZipFile(noteId, format, zipFilePath); + this.exportSubtreeToZipFile = async (noteId, format, zipFilePath) => await exportService.exportToZipFile(noteId, format, zipFilePath); /** * This object contains "at your risk" and "no BC guarantees" objects for advanced use cases. @@ -620,7 +621,7 @@ module.exports = BackendScriptApi;
    diff --git a/docs/backend_api/services_sql.js.html b/docs/backend_api/services_sql.js.html index 91b2d3863..66ec0b8fc 100644 --- a/docs/backend_api/services_sql.js.html +++ b/docs/backend_api/services_sql.js.html @@ -404,7 +404,7 @@ module.exports = {
    diff --git a/docs/frontend_api/Attribute.html b/docs/frontend_api/FAttribute.html similarity index 73% rename from docs/frontend_api/Attribute.html rename to docs/frontend_api/FAttribute.html index 2f337a101..5a1ca75a2 100644 --- a/docs/frontend_api/Attribute.html +++ b/docs/frontend_api/FAttribute.html @@ -2,7 +2,7 @@ - JSDoc: Class: Attribute + JSDoc: Class: FAttribute @@ -17,7 +17,7 @@
    -

    Class: Attribute

    +

    Class: FAttribute

    @@ -28,7 +28,7 @@
    -

    Attribute()

    +

    FAttribute()

    Attribute is an abstract concept which has two real uses - label (key - value pair) and relation (representing named relationship between source and target note)
    @@ -46,7 +46,7 @@ and relation (representing named relationship between source and target note)new Attribute() +

    new FAttribute()

    @@ -94,7 +94,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -194,7 +194,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -262,7 +262,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -330,7 +330,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -398,7 +398,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -466,7 +466,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -534,7 +534,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -602,7 +602,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -630,7 +630,7 @@ and relation (representing named relationship between source and target note)getNote() → {NoteShort} +

    getNote() → {FNote}

    @@ -678,7 +678,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -714,7 +714,7 @@ and relation (representing named relationship between source and target note)
    -NoteShort +FNote
    @@ -732,7 +732,7 @@ and relation (representing named relationship between source and target note)(async) getTargetNote() → {Promise.<NoteShort>} +

    (async) getTargetNote() → {Promise.<FNote>}

    @@ -780,7 +780,7 @@ and relation (representing named relationship between source and target note)Source:
    @@ -816,7 +816,7 @@ and relation (representing named relationship between source and target note)
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -844,7 +844,7 @@ and relation (representing named relationship between source and target note)
    diff --git a/docs/frontend_api/Branch.html b/docs/frontend_api/FBranch.html similarity index 74% rename from docs/frontend_api/Branch.html rename to docs/frontend_api/FBranch.html index b67be1575..864cc8008 100644 --- a/docs/frontend_api/Branch.html +++ b/docs/frontend_api/FBranch.html @@ -2,7 +2,7 @@ - JSDoc: Class: Branch + JSDoc: Class: FBranch @@ -17,7 +17,7 @@
    -

    Class: Branch

    +

    Class: FBranch

    @@ -28,7 +28,7 @@
    -

    Branch()

    +

    FBranch()

    Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple parents.
    @@ -46,7 +46,7 @@ parents.
    -

    new Branch()

    +

    new FBranch()

    @@ -94,7 +94,7 @@ parents.
    Source:
    @@ -198,7 +198,7 @@ parents.
    Source:
    @@ -266,7 +266,7 @@ parents.
    Source:
    @@ -334,7 +334,7 @@ parents.
    Source:
    @@ -402,7 +402,7 @@ parents.
    Source:
    @@ -470,7 +470,7 @@ parents.
    Source:
    @@ -538,7 +538,7 @@ parents.
    Source:
    @@ -606,7 +606,7 @@ parents.
    Source:
    @@ -634,7 +634,7 @@ parents. -

    (async) getNote() → {NoteShort}

    +

    (async) getNote() → {FNote}

    @@ -682,7 +682,7 @@ parents.
    Source:
    @@ -718,7 +718,7 @@ parents.
    -NoteShort +FNote
    @@ -736,7 +736,7 @@ parents. -

    getNoteFromCache() → {NoteShort}

    +

    getNoteFromCache() → {FNote}

    @@ -784,7 +784,7 @@ parents.
    Source:
    @@ -820,7 +820,7 @@ parents.
    -NoteShort +FNote
    @@ -838,7 +838,7 @@ parents. -

    (async) getParentNote() → {NoteShort}

    +

    (async) getParentNote() → {FNote}

    @@ -886,7 +886,7 @@ parents.
    Source:
    @@ -922,7 +922,7 @@ parents.
    -NoteShort +FNote
    @@ -988,7 +988,7 @@ parents.
    Source:
    @@ -1056,7 +1056,7 @@ parents.
    diff --git a/docs/frontend_api/NoteShort.html b/docs/frontend_api/FNote.html similarity index 83% rename from docs/frontend_api/NoteShort.html rename to docs/frontend_api/FNote.html index efb32f107..72731a225 100644 --- a/docs/frontend_api/NoteShort.html +++ b/docs/frontend_api/FNote.html @@ -2,7 +2,7 @@ - JSDoc: Class: NoteShort + JSDoc: Class: FNote @@ -17,7 +17,7 @@
    -

    Class: NoteShort

    +

    Class: FNote

    @@ -28,11 +28,7 @@
    -

    NoteShort(froca, row)

    - -
    FIXME: since there's no "full note" anymore we can rename this to Note - -This note's representation is used in note tree and is kept in Froca.
    +

    FNote(froca, row)

    @@ -43,11 +39,9 @@ This note's representation is used in note tree and is kept in Froca.
    -

    Constructor

    - -

    new NoteShort(froca, row)

    +

    new FNote(froca, row)

    @@ -167,7 +161,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -267,7 +261,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -335,7 +329,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -403,7 +397,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -471,7 +465,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -543,7 +537,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -611,7 +605,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -679,7 +673,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -747,7 +741,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -815,7 +809,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -883,7 +877,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -955,7 +949,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -983,7 +977,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getAttribute(type, name) → {Attribute}

    +

    getAttribute(type, name) → {FAttribute}

    @@ -1103,7 +1097,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1143,7 +1137,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Attribute +FAttribute
    @@ -1281,7 +1275,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1339,7 +1333,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getAttributes(typeopt, nameopt) → {Array.<Attribute>}

    +

    getAttributes(typeopt, nameopt) → {Array.<FAttribute>}

    @@ -1481,7 +1475,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1521,7 +1515,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -1589,7 +1583,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1643,7 +1637,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getBranches() → {Array.<Branch>}

    +

    getBranches() → {Array.<FBranch>}

    @@ -1693,7 +1687,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1729,7 +1723,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Branch> +Array.<FBranch>
    @@ -1747,7 +1741,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getChildBranches() → {Array.<Branch>}

    +

    getChildBranches() → {Array.<FBranch>}

    @@ -1795,7 +1789,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1831,7 +1825,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Branch> +Array.<FBranch>
    @@ -1897,7 +1891,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -1951,7 +1945,7 @@ This note's representation is used in note tree and is kept in Froca. -

    (async) getChildNotes() → {Promise.<Array.<NoteShort>>}

    +

    (async) getChildNotes() → {Promise.<Array.<FNote>>}

    @@ -1999,7 +1993,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2035,7 +2029,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Promise.<Array.<NoteShort>> +Promise.<Array.<FNote>>
    @@ -2053,7 +2047,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getLabel(name) → {Attribute}

    +

    getLabel(name) → {FAttribute}

    @@ -2150,7 +2144,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2190,7 +2184,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Attribute +FAttribute
    @@ -2305,7 +2299,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2363,7 +2357,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getLabels(nameopt) → {Array.<Attribute>}

    +

    getLabels(nameopt) → {Array.<FAttribute>}

    @@ -2472,7 +2466,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2512,7 +2506,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -2530,7 +2524,7 @@ This note's representation is used in note tree and is kept in Froca. -

    (async) getNoteComplement() → {Promise.<NoteComplement>}

    +

    (async) getNoteComplement() → {Promise.<FNoteComplement>}

    @@ -2582,7 +2576,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2618,7 +2612,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Promise.<NoteComplement> +Promise.<FNoteComplement>
    @@ -2636,7 +2630,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getOwnedAttribute(type, name) → {Attribute}

    +

    getOwnedAttribute(type, name) → {FAttribute}

    @@ -2756,7 +2750,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2796,7 +2790,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Attribute +FAttribute
    @@ -2934,7 +2928,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -2992,7 +2986,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getOwnedAttributes(typeopt, nameopt) → {Array.<Attribute>}

    +

    getOwnedAttributes(typeopt, nameopt) → {Array.<FAttribute>}

    @@ -3134,7 +3128,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -3174,7 +3168,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -3192,7 +3186,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getOwnedLabel(name) → {Attribute}

    +

    getOwnedLabel(name) → {FAttribute}

    @@ -3289,7 +3283,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -3329,7 +3323,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Attribute +FAttribute
    @@ -3444,7 +3438,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -3502,7 +3496,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getOwnedLabels(nameopt) → {Array.<Attribute>}

    +

    getOwnedLabels(nameopt) → {Array.<FAttribute>}

    @@ -3611,7 +3605,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -3651,7 +3645,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -3669,7 +3663,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getOwnedRelation(name) → {Attribute}

    +

    getOwnedRelation(name) → {FAttribute}

    @@ -3766,7 +3760,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -3806,7 +3800,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Attribute +FAttribute
    @@ -3921,7 +3915,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -3979,7 +3973,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getOwnedRelations(nameopt) → {Array.<Attribute>}

    +

    getOwnedRelations(nameopt) → {Array.<FAttribute>}

    @@ -4088,7 +4082,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4128,7 +4122,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -4194,7 +4188,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4248,7 +4242,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getParentBranches() → {Array.<Branch>}

    +

    getParentBranches() → {Array.<FBranch>}

    @@ -4296,7 +4290,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4332,7 +4326,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Branch> +Array.<FBranch>
    @@ -4398,7 +4392,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4452,7 +4446,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getParentNotes() → {Array.<NoteShort>}

    +

    getParentNotes() → {Array.<FNote>}

    @@ -4500,7 +4494,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4536,7 +4530,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<NoteShort> +Array.<FNote>
    @@ -4554,7 +4548,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getRelation(name) → {Attribute}

    +

    getRelation(name) → {FAttribute}

    @@ -4651,7 +4645,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4691,7 +4685,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Attribute +FAttribute
    @@ -4709,7 +4703,7 @@ This note's representation is used in note tree and is kept in Froca. -

    (async) getRelationTarget(name) → {Promise.<NoteShort>|null}

    +

    (async) getRelationTarget(name) → {Promise.<FNote>|null}

    @@ -4806,7 +4800,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -4846,7 +4840,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Promise.<NoteShort> +Promise.<FNote> | null @@ -4867,7 +4861,7 @@ This note's representation is used in note tree and is kept in Froca. -

    (async) getRelationTargets(nameopt) → {Promise.<Array.<NoteShort>>}

    +

    (async) getRelationTargets(nameopt) → {Promise.<Array.<FNote>>}

    @@ -4976,7 +4970,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5012,7 +5006,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Promise.<Array.<NoteShort>> +Promise.<Array.<FNote>>
    @@ -5127,7 +5121,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5185,7 +5179,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getRelations(nameopt) → {Array.<Attribute>}

    +

    getRelations(nameopt) → {Array.<FAttribute>}

    @@ -5294,7 +5288,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5334,7 +5328,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -5400,7 +5394,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5461,7 +5455,7 @@ This note's representation is used in note tree and is kept in Froca. -

    (async) getTargetRelationSourceNotes() → {Array.<NoteShort>}

    +

    (async) getTargetRelationSourceNotes() → {Array.<FNote>}

    @@ -5513,7 +5507,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5549,7 +5543,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<NoteShort> +Array.<FNote>
    @@ -5567,7 +5561,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getTargetRelations() → {Array.<Attribute>}

    +

    getTargetRelations() → {Array.<FAttribute>}

    @@ -5619,7 +5613,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5655,7 +5649,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<Attribute> +Array.<FAttribute>
    @@ -5673,7 +5667,7 @@ This note's representation is used in note tree and is kept in Froca. -

    getTemplateNotes() → {Array.<NoteShort>}

    +

    getTemplateNotes() → {Array.<FNote>}

    @@ -5721,7 +5715,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -5757,7 +5751,7 @@ This note's representation is used in note tree and is kept in Froca.
    -Array.<NoteShort> +Array.<FNote>
    @@ -5895,7 +5889,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6001,7 +5995,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6152,7 +6146,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6330,7 +6324,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6485,7 +6479,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6640,7 +6634,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6795,7 +6789,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6903,7 +6897,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -6987,7 +6981,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -7093,7 +7087,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -7199,7 +7193,7 @@ This note's representation is used in note tree and is kept in Froca.
    Source:
    @@ -7263,7 +7257,7 @@ This note's representation is used in note tree and is kept in Froca.
    diff --git a/docs/frontend_api/NoteComplement.html b/docs/frontend_api/FNoteComplement.html similarity index 72% rename from docs/frontend_api/NoteComplement.html rename to docs/frontend_api/FNoteComplement.html index 9238439ef..25eda287a 100644 --- a/docs/frontend_api/NoteComplement.html +++ b/docs/frontend_api/FNoteComplement.html @@ -2,7 +2,7 @@ - JSDoc: Class: NoteComplement + JSDoc: Class: FNoteComplement @@ -17,7 +17,7 @@
    -

    Class: NoteComplement

    +

    Class: FNoteComplement

    @@ -28,9 +28,9 @@
    -

    NoteComplement()

    +

    FNoteComplement()

    -
    Complements the NoteShort with the main note content and other extra attributes
    +
    Complements the FNote with the main note content and other extra attributes
    @@ -45,7 +45,7 @@ -

    new NoteComplement()

    +

    new FNoteComplement()

    @@ -93,7 +93,7 @@
    Source:
    @@ -193,7 +193,7 @@
    Source:
    @@ -261,7 +261,7 @@
    Source:
    @@ -333,7 +333,7 @@
    Source:
    @@ -401,7 +401,7 @@
    Source:
    @@ -469,7 +469,7 @@
    Source:
    @@ -537,7 +537,7 @@
    Source:
    @@ -605,7 +605,7 @@
    Source:
    @@ -673,7 +673,7 @@
    Source:
    @@ -741,7 +741,7 @@
    Source:
    @@ -775,7 +775,7 @@

    diff --git a/docs/frontend_api/FrontendScriptApi.html b/docs/frontend_api/FrontendScriptApi.html index 1b66f9ea7..6c41d1787 100644 --- a/docs/frontend_api/FrontendScriptApi.html +++ b/docs/frontend_api/FrontendScriptApi.html @@ -2789,7 +2789,7 @@ -

    getActiveContextNote() → {NoteShort}

    +

    getActiveContextNote() → {FNote}

    @@ -2877,7 +2877,7 @@
    -NoteShort +FNote
    @@ -3218,7 +3218,7 @@ implementation of actual widget type. -

    getActiveTabNote() → {NoteShort}

    +

    getActiveTabNote() → {FNote}

    @@ -3308,7 +3308,7 @@ implementation of actual widget type.
    -NoteShort +FNote
    @@ -3735,7 +3735,7 @@ implementation of actual widget type. -

    getDateNote(date) → {Promise.<NoteShort>}

    +

    getDateNote(date) → {Promise.<FNote>}

    @@ -3874,7 +3874,7 @@ implementation of actual widget type.
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -3892,7 +3892,7 @@ implementation of actual widget type. -

    getDayNote(date) → {Promise.<NoteShort>}

    +

    getDayNote(date) → {Promise.<FNote>}

    @@ -4029,7 +4029,7 @@ implementation of actual widget type.
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -4154,7 +4154,7 @@ if some action needs to happen on only one specific instance. -

    getMonthNote(month) → {Promise.<NoteShort>}

    +

    getMonthNote(month) → {Promise.<FNote>}

    @@ -4291,7 +4291,7 @@ if some action needs to happen on only one specific instance.
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -4309,7 +4309,7 @@ if some action needs to happen on only one specific instance. -

    getNote(noteId) → {Promise.<NoteShort>}

    +

    getNote(noteId) → {Promise.<FNote>}

    @@ -4447,7 +4447,7 @@ if some action needs to happen on only one specific instance.
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -4465,7 +4465,7 @@ if some action needs to happen on only one specific instance. -

    getNotes(noteIds, silentNotFoundErroropt) → {Promise.<Array.<NoteShort>>}

    +

    getNotes(noteIds, silentNotFoundErroropt) → {Promise.<Array.<FNote>>}

    @@ -4648,7 +4648,7 @@ otherwise (by e.g. createNoteLink())
    -Promise.<Array.<NoteShort>> +Promise.<Array.<FNote>>
    @@ -4666,7 +4666,7 @@ otherwise (by e.g. createNoteLink()) -

    getTodayNote() → {Promise.<NoteShort>}

    +

    getTodayNote() → {Promise.<FNote>}

    @@ -4754,7 +4754,7 @@ otherwise (by e.g. createNoteLink())
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -4772,7 +4772,7 @@ otherwise (by e.g. createNoteLink()) -

    getWeekNote(date) → {Promise.<NoteShort>}

    +

    getWeekNote(date) → {Promise.<FNote>}

    @@ -4909,7 +4909,7 @@ otherwise (by e.g. createNoteLink())
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -4927,7 +4927,7 @@ otherwise (by e.g. createNoteLink()) -

    getYearNote(year) → {Promise.<NoteShort>}

    +

    getYearNote(year) → {Promise.<FNote>}

    @@ -5064,7 +5064,7 @@ otherwise (by e.g. createNoteLink())
    -Promise.<NoteShort> +Promise.<FNote>
    @@ -6906,7 +6906,7 @@ Internally this serializes the anonymous function into string and sends it to ba -

    searchForNote(searchString) → {Promise.<(NoteShort|null)>}

    +

    searchForNote(searchString) → {Promise.<(FNote|null)>}

    @@ -7044,7 +7044,7 @@ Internally this serializes the anonymous function into string and sends it to ba
    -Promise.<(NoteShort|null)> +Promise.<(FNote|null)>
    @@ -7062,7 +7062,7 @@ Internally this serializes the anonymous function into string and sends it to ba -

    searchForNotes(searchString) → {Promise.<Array.<NoteShort>>}

    +

    searchForNotes(searchString) → {Promise.<Array.<FNote>>}

    @@ -7200,7 +7200,7 @@ Internally this serializes the anonymous function into string and sends it to ba
    -Promise.<Array.<NoteShort>> +Promise.<Array.<FNote>>
    @@ -8202,7 +8202,7 @@ Typical use case is when new note has been created, we should wait until it is s
    diff --git a/docs/frontend_api/entities_attribute.js.html b/docs/frontend_api/entities_fattribute.js.html similarity index 77% rename from docs/frontend_api/entities_attribute.js.html rename to docs/frontend_api/entities_fattribute.js.html index 31db32461..389c5e918 100644 --- a/docs/frontend_api/entities_attribute.js.html +++ b/docs/frontend_api/entities_fattribute.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: entities/attribute.js + JSDoc: Source: entities/fattribute.js @@ -17,7 +17,7 @@
    -

    Source: entities/attribute.js

    +

    Source: entities/fattribute.js

    @@ -32,7 +32,7 @@ * Attribute is an abstract concept which has two real uses - label (key - value pair) * and relation (representing named relationship between source and target note) */ -class Attribute { +class FAttribute { constructor(froca, row) { this.froca = froca; @@ -56,12 +56,12 @@ class Attribute { this.isInheritable = !!row.isInheritable; } - /** @returns {NoteShort} */ + /** @returns {FNote} */ getNote() { return this.froca.notes[this.noteId]; } - /** @returns {Promise<NoteShort>} */ + /** @returns {Promise<FNote>} */ async getTargetNote() { const targetNoteId = this.targetNoteId; @@ -70,7 +70,7 @@ class Attribute { get targetNoteId() { // alias if (this.type !== 'relation') { - throw new Error(`Attribute ${this.attributeId} is not a relation`); + throw new Error(`FAttribute ${this.attributeId} is not a relation`); } return this.value; @@ -81,7 +81,7 @@ class Attribute { } get toString() { - return `Attribute(attributeId=${this.attributeId}, type=${this.type}, name=${this.name}, value=${this.value})`; + return `FAttribute(attributeId=${this.attributeId}, type=${this.type}, name=${this.name}, value=${this.value})`; } isDefinition() { @@ -104,7 +104,7 @@ class Attribute { } } -export default Attribute; +export default FAttribute; @@ -115,7 +115,7 @@ export default Attribute;

    diff --git a/docs/frontend_api/entities_branch.js.html b/docs/frontend_api/entities_fbranch.js.html similarity index 76% rename from docs/frontend_api/entities_branch.js.html rename to docs/frontend_api/entities_fbranch.js.html index 49e04e632..01423c8c5 100644 --- a/docs/frontend_api/entities_branch.js.html +++ b/docs/frontend_api/entities_fbranch.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: entities/branch.js + JSDoc: Source: entities/fbranch.js @@ -17,7 +17,7 @@
    -

    Source: entities/branch.js

    +

    Source: entities/fbranch.js

    @@ -30,7 +30,7 @@ * Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple * parents. */ -class Branch { +class FBranch { constructor(froca, row) { this.froca = froca; @@ -57,17 +57,17 @@ class Branch { this.fromSearchNote = !!row.fromSearchNote; } - /** @returns {NoteShort} */ + /** @returns {FNote} */ async getNote() { return this.froca.getNote(this.noteId); } - /** @returns {NoteShort} */ + /** @returns {FNote} */ getNoteFromCache() { return this.froca.getNoteFromCache(this.noteId); } - /** @returns {NoteShort} */ + /** @returns {FNote} */ async getParentNote() { return this.froca.getNote(this.parentNoteId); } @@ -78,7 +78,7 @@ class Branch { } get toString() { - return `Branch(branchId=${this.branchId})`; + return `FBranch(branchId=${this.branchId})`; } get pojo() { @@ -88,7 +88,7 @@ class Branch { } } -export default Branch; +export default FBranch; @@ -99,7 +99,7 @@ export default Branch;

    diff --git a/docs/frontend_api/entities_note_short.js.html b/docs/frontend_api/entities_fnote.js.html similarity index 91% rename from docs/frontend_api/entities_note_short.js.html rename to docs/frontend_api/entities_fnote.js.html index 4e24579e6..a5cfbd7fe 100644 --- a/docs/frontend_api/entities_note_short.js.html +++ b/docs/frontend_api/entities_fnote.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: entities/note_short.js + JSDoc: Source: entities/fnote.js @@ -17,7 +17,7 @@
    -

    Source: entities/note_short.js

    +

    Source: entities/fnote.js

    @@ -54,12 +54,7 @@ const NOTE_TYPE_ICONS = { "contentWidget": "bx bxs-widget" }; -/** - * FIXME: since there's no "full note" anymore we can rename this to Note - * - * This note's representation is used in note tree and is kept in Froca. - */ -class NoteShort { +class FNote { /** * @param {Froca} froca * @param {Object.<string, Object>} row @@ -181,7 +176,7 @@ class NoteShort { } /** - * @returns {Branch[]} + * @returns {FBranch[]} */ getParentBranches() { const branchIds = Object.values(this.parentToBranch); @@ -190,7 +185,7 @@ class NoteShort { } /** - * @returns {Branch[]} + * @returns {FBranch[]} * @deprecated use getParentBranches() instead */ getBranches() { @@ -202,7 +197,7 @@ class NoteShort { return this.children.length > 0; } - /** @returns {Branch[]} */ + /** @returns {FBranch[]} */ getChildBranches() { // don't use Object.values() to guarantee order const branchIds = this.children.map(childNoteId => this.childToBranch[childNoteId]); @@ -215,7 +210,7 @@ class NoteShort { return this.parents; } - /** @returns {NoteShort[]} */ + /** @returns {FNote[]} */ getParentNotes() { return this.froca.getNotesFromCache(this.parents); } @@ -245,7 +240,7 @@ class NoteShort { return this.children; } - /** @returns {Promise<NoteShort[]>} */ + /** @returns {Promise<FNote[]>} */ async getChildNotes() { return await this.froca.getNotes(this.children); } @@ -253,7 +248,7 @@ class NoteShort { /** * @param {string} [type] - (optional) attribute type to filter * @param {string} [name] - (optional) attribute name to filter - * @returns {Attribute[]} all note's attributes, including inherited ones + * @returns {FAttribute[]} all note's attributes, including inherited ones */ getOwnedAttributes(type, name) { const attrs = this.attributes @@ -266,7 +261,7 @@ class NoteShort { /** * @param {string} [type] - (optional) attribute type to filter * @param {string} [name] - (optional) attribute name to filter - * @returns {Attribute[]} all note's attributes, including inherited ones + * @returns {FAttribute[]} all note's attributes, including inherited ones */ getAttributes(type, name) { return this.__filterAttrs(this.__getCachedAttributes([]), type, name); @@ -427,7 +422,7 @@ class NoteShort { /** * @param {string} [name] - label name to filter - * @returns {Attribute[]} all note's labels (attributes with type label), including inherited ones + * @returns {FAttribute[]} all note's labels (attributes with type label), including inherited ones */ getOwnedLabels(name) { return this.getOwnedAttributes(LABEL, name); @@ -435,7 +430,7 @@ class NoteShort { /** * @param {string} [name] - label name to filter - * @returns {Attribute[]} all note's labels (attributes with type label), including inherited ones + * @returns {FAttribute[]} all note's labels (attributes with type label), including inherited ones */ getLabels(name) { return this.getAttributes(LABEL, name); @@ -508,7 +503,7 @@ class NoteShort { /** * @param {string} [name] - relation name to filter - * @returns {Attribute[]} all note's relations (attributes with type relation), including inherited ones + * @returns {FAttribute[]} all note's relations (attributes with type relation), including inherited ones */ getOwnedRelations(name) { return this.getOwnedAttributes(RELATION, name); @@ -516,7 +511,7 @@ class NoteShort { /** * @param {string} [name] - relation name to filter - * @returns {Attribute[]} all note's relations (attributes with type relation), including inherited ones + * @returns {FAttribute[]} all note's relations (attributes with type relation), including inherited ones */ getRelations(name) { return this.getAttributes(RELATION, name); @@ -543,7 +538,7 @@ class NoteShort { /** * @param {string} type - attribute type (label, relation, etc.) * @param {string} name - attribute name - * @returns {Attribute} attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note. + * @returns {FAttribute} attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note. */ getOwnedAttribute(type, name) { const attributes = this.getOwnedAttributes(type, name); @@ -554,7 +549,7 @@ class NoteShort { /** * @param {string} type - attribute type (label, relation, etc.) * @param {string} name - attribute name - * @returns {Attribute} attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note. + * @returns {FAttribute} attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note. */ getAttribute(type, name) { const attributes = this.getAttributes(type, name); @@ -610,25 +605,25 @@ class NoteShort { /** * @param {string} name - label name - * @returns {Attribute} label if it exists, null otherwise + * @returns {FAttribute} label if it exists, null otherwise */ getOwnedLabel(name) { return this.getOwnedAttribute(LABEL, name); } /** * @param {string} name - label name - * @returns {Attribute} label if it exists, null otherwise + * @returns {FAttribute} label if it exists, null otherwise */ getLabel(name) { return this.getAttribute(LABEL, name); } /** * @param {string} name - relation name - * @returns {Attribute} relation if it exists, null otherwise + * @returns {FAttribute} relation if it exists, null otherwise */ getOwnedRelation(name) { return this.getOwnedAttribute(RELATION, name); } /** * @param {string} name - relation name - * @returns {Attribute} relation if it exists, null otherwise + * @returns {FAttribute} relation if it exists, null otherwise */ getRelation(name) { return this.getAttribute(RELATION, name); } @@ -658,7 +653,7 @@ class NoteShort { /** * @param {string} name - * @returns {Promise<NoteShort>|null} target note of the relation or null (if target is empty or note was not found) + * @returns {Promise<FNote>|null} target note of the relation or null (if target is empty or note was not found) */ async getRelationTarget(name) { const targets = await this.getRelationTargets(name); @@ -668,7 +663,7 @@ class NoteShort { /** * @param {string} [name] - relation name to filter - * @returns {Promise<NoteShort[]>} + * @returns {Promise<FNote[]>} */ async getRelationTargets(name) { const relations = this.getRelations(name); @@ -682,7 +677,7 @@ class NoteShort { } /** - * @returns {NoteShort[]} + * @returns {FNote[]} */ getTemplateNotes() { const relations = this.getRelations('template'); @@ -750,7 +745,7 @@ class NoteShort { /** * Get relations which target this note * - * @returns {Attribute[]} + * @returns {FAttribute[]} */ getTargetRelations() { return this.targetRelations @@ -760,7 +755,7 @@ class NoteShort { /** * Get relations which target this note * - * @returns {NoteShort[]} + * @returns {FNote[]} */ async getTargetRelationSourceNotes() { const targetRelations = this.getTargetRelations(); @@ -771,7 +766,7 @@ class NoteShort { /** * Return note complement which is most importantly note's content * - * @return {Promise<NoteComplement>} + * @return {Promise<FNoteComplement>} */ async getNoteComplement() { return await this.froca.getNoteComplement(this.noteId); @@ -885,7 +880,7 @@ class NoteShort { } } -export default NoteShort; +export default FNote; @@ -896,7 +891,7 @@ export default NoteShort;

    diff --git a/docs/frontend_api/entities_note_complement.js.html b/docs/frontend_api/entities_fnote_complement.js.html similarity index 74% rename from docs/frontend_api/entities_note_complement.js.html rename to docs/frontend_api/entities_fnote_complement.js.html index a7b13f24a..6ed38dc95 100644 --- a/docs/frontend_api/entities_note_complement.js.html +++ b/docs/frontend_api/entities_fnote_complement.js.html @@ -2,7 +2,7 @@ - JSDoc: Source: entities/note_complement.js + JSDoc: Source: entities/fnote_complement.js @@ -17,7 +17,7 @@
    -

    Source: entities/note_complement.js

    +

    Source: entities/fnote_complement.js

    @@ -27,9 +27,9 @@
    /**
    - * Complements the NoteShort with the main note content and other extra attributes
    + * Complements the FNote with the main note content and other extra attributes
      */
    -class NoteComplement {
    +class FNoteComplement {
         constructor(row) {
             /** @type {string} */
             this.noteId = row.noteId;
    @@ -65,7 +65,7 @@ class NoteComplement {
         }
     }
     
    -export default NoteComplement;
    +export default FNoteComplement;
     
    @@ -76,7 +76,7 @@ export default NoteComplement;

    diff --git a/docs/frontend_api/global.html b/docs/frontend_api/global.html index 657f703e2..d7ba46285 100644 --- a/docs/frontend_api/global.html +++ b/docs/frontend_api/global.html @@ -457,7 +457,7 @@
    diff --git a/docs/frontend_api/index.html b/docs/frontend_api/index.html index 55816361e..85abe287b 100644 --- a/docs/frontend_api/index.html +++ b/docs/frontend_api/index.html @@ -50,7 +50,7 @@
    diff --git a/docs/frontend_api/module.exports.html b/docs/frontend_api/module.exports.html index c743929ac..67fb32df4 100644 --- a/docs/frontend_api/module.exports.html +++ b/docs/frontend_api/module.exports.html @@ -155,7 +155,7 @@
    diff --git a/docs/frontend_api/services_frontend_script_api.js.html b/docs/frontend_api/services_frontend_script_api.js.html index 13673d085..d2c928a8d 100644 --- a/docs/frontend_api/services_frontend_script_api.js.html +++ b/docs/frontend_api/services_frontend_script_api.js.html @@ -236,7 +236,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} searchString - * @returns {Promise<NoteShort[]>} + * @returns {Promise<FNote[]>} */ this.searchForNotes = async searchString => { return await searchService.searchForNotes(searchString); @@ -248,7 +248,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} searchString - * @returns {Promise<NoteShort|null>} + * @returns {Promise<FNote|null>} */ this.searchForNote = async searchString => { const notes = await this.searchForNotes(searchString); @@ -260,7 +260,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * Returns note by given noteId. If note is missing from cache, it's loaded. ** * @param {string} noteId - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} */ this.getNote = async noteId => await froca.getNote(noteId); @@ -272,7 +272,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @param {string[]} noteIds * @param {boolean} [silentNotFoundError] - don't report error if the note is not found - * @return {Promise<NoteShort[]>} + * @return {Promise<FNote[]>} */ this.getNotes = async (noteIds, silentNotFoundError = false) => await froca.getNotes(noteIds, silentNotFoundError); @@ -383,7 +383,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain /** * @method * @deprecated use getActiveContextNote() instead - * @returns {NoteShort} active note (loaded into right pane) + * @returns {FNote} active note (loaded into right pane) */ this.getActiveTabNote = () => { console.warn("api.getActiveTabNote() is deprecated, use getActiveContextNote() instead."); @@ -393,7 +393,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain /** * @method - * @returns {NoteShort} active note (loaded into right pane) + * @returns {FNote} active note (loaded into right pane) */ this.getActiveContextNote = () => appContext.tabManager.getActiveContextNote(); @@ -499,7 +499,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * Returns date-note for today. If it doesn't exist, it is automatically created. * * @method - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} */ this.getTodayNote = dateNotesService.getTodayNote; @@ -508,7 +508,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} date - e.g. "2019-04-29" - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} * @deprecated use getDayNote instead */ this.getDateNote = dateNotesService.getDayNote; @@ -518,7 +518,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} date - e.g. "2019-04-29" - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} */ this.getDayNote = dateNotesService.getDayNote; @@ -527,7 +527,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} date - e.g. "2019-04-29" - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} */ this.getWeekNote = dateNotesService.getWeekNote; @@ -536,7 +536,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} month - e.g. "2019-04" - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} */ this.getMonthNote = dateNotesService.getMonthNote; @@ -545,7 +545,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain * * @method * @param {string} year - e.g. "2019" - * @return {Promise<NoteShort>} + * @return {Promise<FNote>} */ this.getYearNote = dateNotesService.getYearNote; @@ -639,7 +639,7 @@ export default FrontendScriptApi;
    diff --git a/docs/frontend_api/widgets_collapsible_widget.js.html b/docs/frontend_api/widgets_collapsible_widget.js.html index 7df84e660..94ae6982e 100644 --- a/docs/frontend_api/widgets_collapsible_widget.js.html +++ b/docs/frontend_api/widgets_collapsible_widget.js.html @@ -74,7 +74,7 @@ export default class CollapsibleWidget extends NoteContextAwareWidget {