Notifications
With the PAKT SDK, users can set notifications to draw user attention to desired Chainsite actions, relationships, and behaviors.
Notifications are advisory messages generated to provide information relating to activities that occur in the system.
The following are the list of features for notifications.
Mark all their notifications as read
Mark a notification as read
Get all notifications
Notification Model
Mark all Notifications as read
Users can indicate all notifications as read. This feature requires the authenticated user jwt token.
Mark a Notification as read
Users can also mark a single notification as read, requiring the notification identifier, as well as the authorization token of the user who is owns the notification.
Get all Notifications
Fetch all Notifications using the filterNotificationDto, which is an extension of INotificationDto
INotificationDto
_id
The identification for the notification
string
owner
The user for which this notification was created
string | NotificationUser
title
The appellation of the notification
string
description
Detailed explanation of what the advisory is
string
read
Identifier to indicate if the notification is acknowledged
boolean
data
Meta data for the notification
string
isAdmin
Identifier to determine if the advisory for the Chainsite administration
boolean
type
The classification of the notification
INotificationType
filterNotificationDto
page
limit
Last updated