Class: BEtapiToken

BEtapiToken()

EtapiToken is an entity representing token used to authenticate against Trilium REST API from client applications. Used by: - Trilium Sender - ETAPI clients The format user is presented with is "_". This is also called "authToken" to distinguish it from tokenHash and token.

Constructor

new BEtapiToken()

Source:

Extends

Members

(protected) becca

Overrides:
Source:

etapiTokenId :string

Type:
  • string
Source:

isDeleted :boolean

Type:
  • boolean
Source:

name :string

Type:
  • string
Source:

tokenHash :string

Type:
  • string
Source:

utcDateCreated :string

Type:
  • string
Source:

utcDateModified :string

Type:
  • string
Source:

Methods

(protected) _getContent() → {string|Buffer}

Overrides:
Source:
Returns:
Type
string | Buffer

(protected) _setContent()

Overrides:
Source:

(protected) beforeSaving()

Overrides:
Source:

(protected) generateHash() → {string}

Overrides:
Source:
Returns:
Type
string

(abstract, protected) getPojo()

Overrides:
Source:

(protected) getPojoToSave()

Overrides:
Source:

(protected) getUtcDateChanged()

Overrides:
Source:

markAsDeleted(deleteIdopt)

Mark the entity as (soft) deleted. It will be completely erased later. This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.
Parameters:
Name Type Attributes Default Description
deleteId <optional>
null
Overrides:
Source:

(protected) putEntityChange()

Overrides:
Source:

save() → {this}

Saves entity - executes SQL, but doesn't commit the transaction on its own
Overrides:
Source:
Returns:
Type
this