mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/**
|
|
* Complements the NoteShort with the main note content and other extra attributes
|
|
*/
|
|
class NoteComplement {
|
|
constructor(row) {
|
|
/** @param {string} */
|
|
this.noteId = row.noteId;
|
|
|
|
/**
|
|
* @param {string} - can either contain the whole content (in e.g. string notes), only part (large text notes) or nothing at all (binary notes, images)
|
|
*/
|
|
this.content = row.content;
|
|
|
|
/** @param {int} */
|
|
this.contentLength = row.contentLength;
|
|
|
|
/** @param {string} */
|
|
this.dateCreated = row.dateCreated;
|
|
|
|
/** @param {string} */
|
|
this.dateModified = row.dateModified;
|
|
|
|
/** @param {string} */
|
|
this.utcDateCreated = row.utcDateCreated;
|
|
|
|
/** @param {string} */
|
|
this.utcDateModified = row.utcDateModified;
|
|
|
|
// "combined" date modified give larger out of note's and note_content's dateModified
|
|
|
|
/** @param {string} */
|
|
this.combinedDateModified = row.combinedDateModified;
|
|
|
|
/** @param {string} */
|
|
this.combinedUtcDateModified = row.combinedUtcDateModified;
|
|
}
|
|
}
|
|
|
|
export default NoteComplement;
|