-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (30 loc) · 992 Bytes
/
index.js
File metadata and controls
31 lines (30 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Uttori Document
*
* @property {string} [content=''] - Document Data
* @property {string} [slug=''] - Document URL Identifier
* @property {string} [title=''] - - Document Name
* @property {string} [excerpt=''] - Preview of the content
* @property {string} [html=''] - Rendered HTML version of the content
* @property {string} [language=''] - Language of the document
* @property {string[]} [tags=[]] - Collection of tags to describe the document
* @property {object} [customData={}] - Any custom data
* @property {Date} [createDate] - Date & Time Created
* @property {Date} [updateDate] - Date & Time Last Updated, should default to the createDate
* @class
*/
class Document {
constructor() {
this.content = '';
this.createDate = undefined;
this.customData = {};
this.excerpt = '';
this.html = '';
this.language = '';
this.slug = '';
this.tags = [];
this.title = '';
this.updateDate = undefined;
}
}
module.exports = Document;