|
@@ -1,13 +1,15 @@
|
|
|
import { Types } from 'mongoose';
|
|
import { Types } from 'mongoose';
|
|
|
|
|
+import { IUser } from './user';
|
|
|
|
|
+import { IPage } from './page';
|
|
|
|
|
|
|
|
export interface IInAppNotification {
|
|
export interface IInAppNotification {
|
|
|
_id: string
|
|
_id: string
|
|
|
user: string
|
|
user: string
|
|
|
targetModel: 'Page'
|
|
targetModel: 'Page'
|
|
|
- target: any /* Need to set "Page" as a type" */
|
|
|
|
|
|
|
+ target: IPage
|
|
|
action: 'COMMENT' | 'LIKE'
|
|
action: 'COMMENT' | 'LIKE'
|
|
|
status: string
|
|
status: string
|
|
|
- actionUsers: any[] /* Need to set "User[]" as a type" */
|
|
|
|
|
|
|
+ actionUsers: IUser[]
|
|
|
createdAt: string
|
|
createdAt: string
|
|
|
}
|
|
}
|
|
|
|
|
|