Module: notification

Copyright 2020 Parsable, Inc
API address: /api/notifications
Functionality for Notifications

ModuleServicesData typesConstants
notificationNotificationService
Category
Notification
NotificationEvent
NotificationResponse
NotificationSetting
NotificationTypes
Setting
SettingGroup

Enumerations

Enumeration: NotificationEvent


NamedMentionMessage1
RoleMentionMessage2
AllMentionMessage3
ActionRequired4
AddRole5
RemoveRole6
JobStart7
JobComplete8
JobReopen9
JobCancel19
IssueCreate10
IssueResolve11
IssueReopen12
StandaloneIssueCreate13
StandaloneIssueResolve14
StandaloneIssueReopen15
ThreadNamedMentionMessage16
Deviation17
Generic18

Enumeration: Category


Deviation1
MarkedNA2
Incomplete3
UnexpectedValue4
JobActivity5
IssueActivity6
MessageActivity7
UserActivity8
TemplateActivity9
ActionRequired10
JobStart11
JobComplete12
JobReopen13
JobCancel14
IssueCreate15
IssueResolve16
IssueReopen17

Data structures

Struct: Notification

KeyFieldTypeDescriptionRequirednessDefault value
1idstringdefault
2eventNotificationEventdefault
3metadatamap<string, string>default
4sequenceIdi64default
5readAti64default
6createdAti64default
7structuredBodymessaging.StructuredBodydefault

Struct: NotificationResponse

KeyFieldTypeDescriptionRequirednessDefault value
1unreadNotificationsi64default
2notificationslist<Notification>default
3totalNotificationsi64default
4remainingNotificationsi64default

Struct: NotificationTypes

KeyFieldTypeDescriptionRequirednessDefault value
1regularbooloptional
2pushbooloptional
3emailbooloptional

Struct: NotificationSetting

KeyFieldTypeDescriptionRequirednessDefault value
1typesNotificationTypesdefault
2subCategoriesmap<Category, NotificationTypes>optional

Struct: Setting

KeyFieldTypeDescriptionRequirednessDefault value
1categoryCategorydefault
2descriptionstringdefault
3typesNotificationTypesdefault

Struct: SettingGroup

KeyFieldTypeDescriptionRequirednessDefault value
1namestringdefault
2settingslist<Setting>default


Services

Service: NotificationService

Function: NotificationService.index

NotificationResponse index(i32 pageNum,
                           bool includeRead)
    throws common.SystemException

Function: NotificationService.markRead

void markRead(string notificationId)
    throws common.SystemException

Function: NotificationService.markUnread

void markUnread(string notificationId)
    throws common.SystemException

Function: NotificationService.markAllRead

void markAllRead()
    throws common.SystemException

Function: NotificationService.toggle

void toggle(Category category,
            NotificationTypes types)
    throws common.SystemException

Function: NotificationService.getSettings

map<Category, NotificationSetting> getSettings()
    throws common.SystemException

Function: NotificationService.getSettingsV2

list<SettingGroup> getSettingsV2()
    throws common.SystemException