2022-06-01 13:11:25 +00:00
|
|
|
export type Notification = {
|
|
|
|
id: string
|
|
|
|
userId: string
|
|
|
|
reasonText?: string
|
|
|
|
reason?: notification_reason_types
|
|
|
|
createdTime: number
|
|
|
|
viewTime?: number
|
|
|
|
isSeen: boolean
|
|
|
|
|
|
|
|
sourceId?: string
|
|
|
|
sourceType?: notification_source_types
|
|
|
|
sourceContractId?: string
|
|
|
|
sourceUserName?: string
|
|
|
|
sourceUserUsername?: string
|
|
|
|
sourceUserAvatarUrl?: string
|
|
|
|
}
|
|
|
|
export type notification_source_types =
|
|
|
|
| 'contract'
|
|
|
|
| 'comment'
|
|
|
|
| 'bet'
|
|
|
|
| 'answer'
|
|
|
|
| 'liquidity'
|
|
|
|
|
2022-06-06 16:54:25 +00:00
|
|
|
export type notification_reason_types =
|
2022-06-01 13:11:25 +00:00
|
|
|
| 'created'
|
|
|
|
| 'updated'
|
|
|
|
| 'resolved'
|
2022-06-06 16:54:25 +00:00
|
|
|
| 'tagged'
|
|
|
|
| 'replied'
|