-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(subscriber): #221 - mark-as, mark-all-as and mark-message-action
Close #221
- Loading branch information
1 parent
46cf4e4
commit eda325a
Showing
4 changed files
with
271 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""This module is used to gather enumerations related to the Message resource in Novu""" | ||
|
||
from novu.enums.polyfill import StrEnum | ||
|
||
|
||
class MarkAsEnum(StrEnum): | ||
"""This enumeration define possible instruction for a mark-as instruction""" | ||
|
||
READ = "read" | ||
"""Mark message as read""" | ||
|
||
SEEN = "seen" | ||
"""Mark message as seen""" | ||
|
||
UNREAD = "unread" | ||
"""Mark message as unread""" | ||
|
||
UNSEEN = "unseen" | ||
"""Mark message as unseen""" | ||
|
||
|
||
class MessageActionStatus(StrEnum): | ||
"""This enumeration define possible message action status""" | ||
|
||
PENDING = "pending" | ||
"""Message action status is pending""" | ||
|
||
DONE = "done" | ||
"""Message action status is done""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters