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()

Extends

Members

(protected) becca

Overrides:

etapiTokenId :string

Type:
  • string

isDeleted :boolean

Type:
  • boolean

name :string

Type:
  • string

tokenHash :string

Type:
  • string

utcDateCreated :string

Type:
  • string

utcDateModified :string

Type:
  • string

Methods

(protected) addEntityChange()

Overrides:

(protected) beforeSaving()

Overrides:

(protected) generateHash()

Overrides:

(protected) generateIdIfNecessary()

Overrides:

(protected) getPojoToSave()

Overrides:

(protected) getUtcDateChanged()

Overrides:

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:

save() → {this}

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