2021-02-25 03:27:59 +02:00
|
|
|
export class DocProps {
|
|
|
|
_createdAt: string | null = null;
|
|
|
|
_updatedAt: string | null = null;
|
2021-06-23 12:39:01 +03:00
|
|
|
_customProperties: { [name: string]: string } = {};
|
2021-02-25 03:27:59 +02:00
|
|
|
|
|
|
|
createdAt(date: string) {
|
|
|
|
this._createdAt = date;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
updatedAt(date: string) {
|
|
|
|
this._updatedAt = date;
|
|
|
|
return this;
|
|
|
|
}
|
2021-06-23 12:39:01 +03:00
|
|
|
|
|
|
|
customProperty(name: string, item: string) {
|
|
|
|
this._customProperties[name] = item;
|
|
|
|
return this;
|
|
|
|
}
|
2021-02-25 03:27:59 +02:00
|
|
|
}
|