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
|
2022-06-06 17:36:59 +00:00
|
|
|
sourceUpdateType?: notification_source_update_types
|
2022-06-01 13:11:25 +00:00
|
|
|
sourceContractId?: string
|
|
|
|
sourceUserName?: string
|
|
|
|
sourceUserUsername?: string
|
|
|
|
sourceUserAvatarUrl?: string
|
|
|
|
}
|
|
|
|
export type notification_source_types =
|
|
|
|
| 'contract'
|
|
|
|
| 'comment'
|
|
|
|
| 'bet'
|
|
|
|
| 'answer'
|
|
|
|
| 'liquidity'
|
2022-06-06 17:36:59 +00:00
|
|
|
| 'follow'
|
|
|
|
| 'tip'
|
|
|
|
| 'admin_message'
|
2022-06-01 13:11:25 +00:00
|
|
|
|
2022-06-06 17:36:59 +00:00
|
|
|
export type notification_source_update_types =
|
2022-06-01 13:11:25 +00:00
|
|
|
| 'created'
|
|
|
|
| 'updated'
|
|
|
|
| 'resolved'
|
2022-06-06 17:36:59 +00:00
|
|
|
| 'deleted'
|
|
|
|
| 'closed'
|
|
|
|
|
|
|
|
export type notification_reason_types =
|
|
|
|
| 'tagged_user'
|
|
|
|
| 'on_users_contract'
|
|
|
|
| 'on_contract_with_users_shares_in'
|
|
|
|
| 'on_contract_with_users_shares_out'
|
|
|
|
| 'on_contract_with_users_answer'
|
|
|
|
| 'on_contract_with_users_comment'
|
|
|
|
| 'reply_to_users_answer'
|
|
|
|
| 'reply_to_users_comment'
|
|
|
|
| 'on_new_follow'
|