Skip to main content

Notification

No description

type Notification {  id: ID!  ownerID: ID!  type: NOTIFICATION_TYPE  createdAt: Time!  comment: Comment  commentStatus: COMMENT_STATUS  rejectionReason: REJECTION_REASON_CODE  decisionDetails: NotificationDecisionDetails  customReason: String  dsaReport: NotificationDSAReportDetails}

Fields#

id (ID!)#

id is the uuid identifier for the notification.

ownerID (ID!)#

ownerID is the string identifier for who this notification is directed to.

type (NOTIFICATION_TYPE)#

type defines the template type for this notification used to generate it. Useful for sorting and filtering categorized notifications.

createdAt (Time!)#

createdAt is when this notification was created, used for sorting.

comment (Comment)#

comment is the optional comment that is linked to this notification.

commentStatus (COMMENT_STATUS)#

commentStatus is the optional status of the comment when the notification was created. This allows for the context of the state of the comment to be persisted even if the comment reference undergoes multiple moderation actions since the notification was created.

rejectionReason (REJECTION_REASON_CODE)#

rejectionReason is an optional field that defines why a comment was rejected.

decisionDetails (NotificationDecisionDetails)#

decisionDetails is an optional field that contains further details pertaining to DSA or moderation decisions.

customReason (String)#

customReason is a reason provided for rejection when the Other rejection code is selected.

dsaReport (NotificationDSAReportDetails)#

dsaReport is the details of the DSA Report related to the notification. This is usually in reference to the comment that is also related to the notification.