# Notification Viewed

# Giới thiệu

NotificationViewed là event bắn lên TA với mục đích lưu lại các thông báo người dùng đã mở ra xem nhưng chưa chuyển trạng thái thông báo

# Trigger

Khi click mở thông báo trên popover mở từ header trang Top Working, tất cả các thông báo trong danh sách sẽ được cập nhật lên TA

# Schema

# Host

POST /collect

# Request body

Key Desc
type NotificationViewed
oth Danh sách các object notification viewed
Required Info Schema Xem thông tin bắt buộc

# Schema object notification viewed

Key Type Desc
notification_id int ID thông báo
type int Loại thông báo
status int Đã xem hoặc Chưa xem
jb_id int | null ID của tin tuyển dụng
epl_id int | null ID của NTD

# Sample data gửi lên data platform

{
    "type": "NotificationViewed",
    "referer": "https:\/\/topworking-ops-stag.rework.vn\/cong-viec\/don-hang",
    "c_id": null,
    "w": null,
    "h": null,
    "p_f": null,
    "a_v": null,
    "host": "topworking-ops-stag.rework.vn",
    "o": null,
    "p_n": "ajax-get-noti-list",
    "q": {
        "ignored_ids": "2303516,2303512,2303511,2303509,2303437,2303417,2303416,2303415,2303414,2303407"
    },
    "id": "topworking.vn",
    "u_id": "487",
    "u_e": "email_487@gmail.com",
    "u_p": "0000000487",
    "u_n": "V\u0169 Th\u1ecb Thu Th\u1ea3o",
    "src": "backend",
    "tab_id": null,
    "ts": 1670833141021,
    "ip": "162.158.162.226",
    "hrf": "https%3A%2F%2Ftopworking-ops-stag.rework.vn%2Fajax-get-noti-list%3Fignored_ids%3D2303516%252C2303512%252C2303511%252C2303509%252C2303437%252C2303417%252C2303416%252C2303415%252C2303414%252C2303407",
    "t_i": null,
    "cv_i": null,
    "p": null,
    "b": null,
    "jb_ids": null,
    "v_t": null,
    "imprs": null,
    "d_i": null,
    "f_p": null,
    "jr_i": null,
    "unique_id": null,
    "u_s": null,
    "u_m": null,
    "u_c": null,
    "ta_source": null,
    "sc_v": "v1.0.0",
    "uni": "8348b35f-219b-4bf1-b2ec-5cd4a4c768f4-1670833141021",
    "oth": {
        "notification_id": "2303204",
        "type": "23",
        "status": "1",
        "jb_id": "",
        "epl_id": ""
    }
}