Pannello Utente

Aggiornamento Yarn
This commit is contained in:
Paolo Arena
2022-07-10 01:24:54 +02:00
parent 51e13794c3
commit 42cb624f41
82 changed files with 2379 additions and 1162 deletions

View File

@@ -50,6 +50,19 @@ export const MsgDefault: IMessage = {
status: StatusMessage.None,
}
export const NotifDefault: INotif = {
_id: '',
idapp: '',
type: 0,
sender: '',
dest: '',
descr: '',
datenotif: new Date(),
read: false,
deleted: false,
status: StatusMessage.None,
}
export interface IMessage {
_id?: any
idapp?: string
@@ -64,6 +77,19 @@ export interface IMessage {
options?: number
}
export interface INotif {
_id?: any
idapp?: string
type: number
sender: string,
dest: string,
descr: string
datenotif?: Date
status?: StatusMessage
read?: boolean
deleted?: boolean
}
export interface IChat {
username: string
lasttimeActive?: Date
@@ -79,3 +105,7 @@ export interface IMessageState {
last_msgs: IMessage[]
users_msg: IMsgUsers[]
}
export interface INotifState {
last_notifs: INotif[]
}