WIP notification settings
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -19,6 +19,7 @@ export interface IComment {
|
||||
totalReplies: number;
|
||||
insertedAt?: Date | string;
|
||||
publishedAt?: Date | string;
|
||||
isAnnouncement: boolean;
|
||||
}
|
||||
|
||||
export class CommentModel implements IComment {
|
||||
@@ -50,6 +51,8 @@ export class CommentModel implements IComment {
|
||||
|
||||
totalReplies = 0;
|
||||
|
||||
isAnnouncement = false;
|
||||
|
||||
constructor(hash?: IComment) {
|
||||
if (!hash) return;
|
||||
|
||||
@@ -66,5 +69,6 @@ export class CommentModel implements IComment {
|
||||
this.deletedAt = hash.deletedAt;
|
||||
this.insertedAt = new Date(hash.insertedAt as string);
|
||||
this.totalReplies = hash.totalReplies;
|
||||
this.isAnnouncement = hash.isAnnouncement;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,12 @@ export interface IUserSettings {
|
||||
location?: IUserPreferredLocation;
|
||||
}
|
||||
|
||||
export interface IActivitySetting {
|
||||
key: string;
|
||||
method: string;
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
export interface IUser extends ICurrentUser {
|
||||
confirmedAt: Date;
|
||||
confirmationSendAt: Date;
|
||||
@@ -37,6 +43,7 @@ export interface IUser extends ICurrentUser {
|
||||
mediaSize: number;
|
||||
drafts: IEvent[];
|
||||
settings: IUserSettings;
|
||||
activitySettings: IActivitySetting[];
|
||||
locale: string;
|
||||
provider?: string;
|
||||
lastSignInAt: string;
|
||||
|
||||
Reference in New Issue
Block a user