mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 18:07:02 +00:00
added notitifcation for association rejected, approved, added mark as read api
This commit is contained in:
@ -2,19 +2,17 @@
|
||||
notification constants file
|
||||
"""
|
||||
REGISTRATION = 1
|
||||
INVITATION = 2
|
||||
ASSOCIATE_REQUEST = 3
|
||||
REFERRAL_POINTS = 4
|
||||
SKIPPED_PROFILE_SETUP = 5
|
||||
ASSOCIATE_REJECTED = 4
|
||||
ASSOCIATE_APPROVED = 5
|
||||
REFERRAL_POINTS = 6
|
||||
JUNIOR_ADDED = 7
|
||||
|
||||
TASK_ASSIGNED = 6
|
||||
TASK_SUBMITTED = 7
|
||||
TASK_ACTION = 8
|
||||
TASK_REJECTED = 9
|
||||
TASK_APPROVED = 10
|
||||
TASK_POINTS = 11
|
||||
TASK_ASSIGNED = 8
|
||||
TASK_ACTION = 9
|
||||
TASK_REJECTED = 10
|
||||
TASK_APPROVED = 11
|
||||
|
||||
LEADERBOARD_RANKING = 12
|
||||
REMOVE_JUNIOR = 13
|
||||
|
||||
TEST_NOTIFICATION = 99
|
||||
@ -24,21 +22,27 @@ NOTIFICATION_DICT = {
|
||||
"title": "Successfully registered!",
|
||||
"body": "You have registered successfully. Now login and complete your profile."
|
||||
},
|
||||
INVITATION: {
|
||||
"title": "Invitation sent!",
|
||||
"body": "Invitation has been successfully sent."
|
||||
},
|
||||
ASSOCIATE_REQUEST: {
|
||||
"title": "Associate request!",
|
||||
"body": "You have request from {from_user} to associate with you."
|
||||
},
|
||||
|
||||
ASSOCIATE_REJECTED: {
|
||||
"title": "Associate request rejected!",
|
||||
"body": "Your request to associate has been rejected by {from_user}."
|
||||
},
|
||||
|
||||
ASSOCIATE_APPROVED: {
|
||||
"title": "Associate request approved!",
|
||||
"body": "Your request to associate has been approved by {from_user}."
|
||||
},
|
||||
# Juniors will receive Notifications for every Points earned by referrals
|
||||
REFERRAL_POINTS: {
|
||||
"title": "Earn Referral points!",
|
||||
"body": "You earn 5 points for referral."
|
||||
},
|
||||
# Juniors will receive notification once any custodians add them in their account
|
||||
SKIPPED_PROFILE_SETUP: {
|
||||
JUNIOR_ADDED: {
|
||||
"title": "Profile already setup!",
|
||||
"body": "Your guardian has already setup your profile."
|
||||
},
|
||||
@ -47,34 +51,22 @@ NOTIFICATION_DICT = {
|
||||
"title": "New task assigned!",
|
||||
"body": "{from_user} has assigned you a new task."
|
||||
},
|
||||
TASK_SUBMITTED: {
|
||||
"title": "Task submitted!",
|
||||
"body": "Your task has been submitted for approval."
|
||||
},
|
||||
# Guardian will receive notification as soon as junior send task for approval
|
||||
TASK_ACTION: {
|
||||
"title": "Task completion approval!",
|
||||
"body": "You have request from {from_user} for task completion."
|
||||
},
|
||||
# Juniors will receive notification as soon as their task is approved or reject by custodians
|
||||
# Juniors will receive notification as soon as their task is rejected by custodians
|
||||
TASK_REJECTED: {
|
||||
"title": "Task completion rejected!",
|
||||
"body": "Your task completion request has been rejected by {from_user}."
|
||||
},
|
||||
# Juniors will receive notification as soon as their task is approved by custodians
|
||||
# and for every Points earned by Task completion
|
||||
TASK_APPROVED: {
|
||||
"title": "Task completion approved!",
|
||||
"body": "Your task completion request has been approved by {from_user}."
|
||||
},
|
||||
# Juniors will receive Notifications for every Points earned either by Task completion
|
||||
# Juniors will receive notification as soon as their task is approved or reject by custodians
|
||||
TASK_POINTS: {
|
||||
"title": "Earned Task points!",
|
||||
"body": "You earn 5 points for task."
|
||||
},
|
||||
# Juniors will receive Notification related to Leaderboard progress
|
||||
LEADERBOARD_RANKING: {
|
||||
"title": "Leader board rank!",
|
||||
"body": "Your rank is ."
|
||||
"body": "Your task completion request has been approved by {from_user}. "
|
||||
"Also you earned 5 points for successful completion."
|
||||
},
|
||||
# Juniors will receive notification as soon as their custodians remove them from account
|
||||
REMOVE_JUNIOR: {
|
||||
|
Reference in New Issue
Block a user