module GitHub.Endpoints.Activity.Notifications (
getNotificationsR,
markNotificationAsReadR,
markAllNotificationsAsReadR,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
getNotificationsR :: FetchCount -> Request 'RA (Vector Notification)
getNotificationsR = pagedQuery ["notifications"] []
markNotificationAsReadR :: Id Notification -> GenRequest 'MtUnit 'RW ()
markNotificationAsReadR nid = Command
Patch
["notifications", "threads", toPathPart nid]
(encode ())
markAllNotificationsAsReadR :: GenRequest 'MtUnit 'RW ()
markAllNotificationsAsReadR =
Command Put ["notifications"] $ encode emptyObject