Module: notification
Copyright 2020 Parsable, Inc
API address: /api/notifications
Functionality for Notifications
Enumerations
Enumeration: NotificationEvent
NamedMentionMessage | 1 |
|
RoleMentionMessage | 2 |
|
AllMentionMessage | 3 |
|
ActionRequired | 4 |
|
AddRole | 5 |
|
RemoveRole | 6 |
|
JobStart | 7 |
|
JobComplete | 8 |
|
JobReopen | 9 |
|
JobCancel | 19 |
|
IssueCreate | 10 |
|
IssueResolve | 11 |
|
IssueReopen | 12 |
|
StandaloneIssueCreate | 13 |
|
StandaloneIssueResolve | 14 |
|
StandaloneIssueReopen | 15 |
|
ThreadNamedMentionMessage | 16 |
|
Deviation | 17 |
|
Generic | 18 |
|
Enumeration: Category
Deviation | 1 |
|
MarkedNA | 2 |
|
Incomplete | 3 |
|
UnexpectedValue | 4 |
|
JobActivity | 5 |
|
IssueActivity | 6 |
|
MessageActivity | 7 |
|
UserActivity | 8 |
|
TemplateActivity | 9 |
|
ActionRequired | 10 |
|
JobStart | 11 |
|
JobComplete | 12 |
|
JobReopen | 13 |
|
JobCancel | 14 |
|
IssueCreate | 15 |
|
IssueResolve | 16 |
|
IssueReopen | 17 |
|
Data structures
Struct: Notification
Key | Field | Type | Description | Requiredness | Default value |
1 | id | string | | default | |
2 | event | NotificationEvent | | default | |
3 | metadata | map<string , string > | | default | |
4 | sequenceId | i64 | | default | |
5 | readAt | i64 | | default | |
6 | createdAt | i64 | | default | |
7 | structuredBody | messaging.StructuredBody | | default | |
Struct: NotificationResponse
Key | Field | Type | Description | Requiredness | Default value |
1 | unreadNotifications | i64 | | default | |
2 | notifications | list<Notification > | | default | |
3 | totalNotifications | i64 | | default | |
4 | remainingNotifications | i64 | | default | |
Struct: NotificationTypes
Key | Field | Type | Description | Requiredness | Default value |
1 | regular | bool | | optional | |
2 | push | bool | | optional | |
3 | email | bool | | optional | |
Struct: NotificationSetting
Struct: Setting
Key | Field | Type | Description | Requiredness | Default value |
1 | category | Category | | default | |
2 | description | string | | default | |
3 | types | NotificationTypes | | default | |
Struct: SettingGroup
Key | Field | Type | Description | Requiredness | Default value |
1 | name | string | | default | |
2 | settings | list<Setting > | | default | |
Services
Service: NotificationService