@@ -9,13 +9,15 @@ class NotificationMethod:
99 new_task_websocket = 'new_task_websocket'
1010 returned_task = 'returned_task'
1111 removed_task = 'removed_task'
12+ task_reminder = 'task_reminder'
1213 overdue_task = 'overdue_task'
1314 complete_task = 'complete_task'
1415 mention = 'mention'
1516 comment = 'comment'
1617 delay_workflow = 'delay_workflow'
1718 guest_new_task = 'guest_new_task'
1819 resume_workflow = 'resume_workflow'
20+ complete_workflow = 'complete_workflow'
1921 unread_notifications = 'unread_notifications'
2022 due_date_changed = 'due_date_changed'
2123 system = 'system'
@@ -42,13 +44,15 @@ class NotificationMethod:
4244 new_task_websocket ,
4345 returned_task ,
4446 removed_task ,
47+ task_reminder ,
4548 overdue_task ,
4649 complete_task ,
4750 mention ,
4851 comment ,
4952 delay_workflow ,
5053 guest_new_task ,
5154 resume_workflow ,
55+ complete_workflow ,
5256 unread_notifications ,
5357 due_date_changed ,
5458 system ,
@@ -89,6 +93,7 @@ class EmailType:
8993 USER_DEACTIVATED = 'user_deactivated'
9094 NEW_TASK = 'new_task'
9195 TASK_RETURNED = 'task_returned'
96+ TASK_REMINDER = 'task_reminder'
9297 ACCOUNT_VERIFICATION = 'account_verification'
9398 WORKFLOWS_DIGEST = 'digest'
9499 TASKS_DIGEST = 'tasks_digest'
@@ -98,12 +103,14 @@ class EmailType:
98103 OVERDUE_TASK = 'overdue_task'
99104 MENTION = 'mention'
100105 INVITE = 'invite'
106+ COMPLETE_WORKFLOW = 'complete_workflow'
101107
102108 LITERALS = Literal [
103109 RESET_PASSWORD ,
104110 USER_DEACTIVATED ,
105111 NEW_TASK ,
106112 TASK_RETURNED ,
113+ TASK_REMINDER ,
107114 ACCOUNT_VERIFICATION ,
108115 WORKFLOWS_DIGEST ,
109116 TASKS_DIGEST ,
@@ -113,13 +120,15 @@ class EmailType:
113120 OVERDUE_TASK ,
114121 MENTION ,
115122 INVITE ,
123+ COMPLETE_WORKFLOW ,
116124 ]
117125
118126 CHOICES = [
119127 (RESET_PASSWORD , 'Reset Password' ),
120128 (USER_DEACTIVATED , 'User Deactivated' ),
121129 (NEW_TASK , 'New Task' ),
122130 (TASK_RETURNED , 'Task Returned' ),
131+ (TASK_REMINDER , 'Task Reminder' ),
123132 (ACCOUNT_VERIFICATION , 'Account Verification' ),
124133 (WORKFLOWS_DIGEST , 'Workflows Digest' ),
125134 (TASKS_DIGEST , 'Tasks Digest' ),
@@ -129,6 +138,7 @@ class EmailType:
129138 (OVERDUE_TASK , 'Overdue Task' ),
130139 (MENTION , 'Mention' ),
131140 (INVITE , 'Invite' ),
141+ (COMPLETE_WORKFLOW , 'Complete Workflow' ),
132142 ]
133143
134144
@@ -137,6 +147,7 @@ class EmailType:
137147 EmailType .USER_DEACTIVATED : env .get ('CIO_TEMPLATE__USER_DEACTIVATED' ),
138148 EmailType .NEW_TASK : env .get ('CIO_TEMPLATE__NEW_TASK' ),
139149 EmailType .TASK_RETURNED : env .get ('CIO_TEMPLATE__TASK_RETURNED' ),
150+ EmailType .TASK_REMINDER : env .get ('CIO_TEMPLATE__TASK_REMINDER' ),
140151 EmailType .ACCOUNT_VERIFICATION : env .get (
141152 'CIO_TEMPLATE__ACCOUNT_VERIFICATION' ,
142153 ),
@@ -149,6 +160,7 @@ class EmailType:
149160 EmailType .GUEST_NEW_TASK : env .get ('CIO_TEMPLATE__GUEST_NEW_TASK' ),
150161 EmailType .OVERDUE_TASK : env .get ('CIO_TEMPLATE__OVERDUE_TASK' ),
151162 EmailType .MENTION : env .get ('CIO_TEMPLATE__MENTION' ),
163+ EmailType .COMPLETE_WORKFLOW : env .get ('CIO_TEMPLATE__COMPLETE_WORKFLOW' ),
152164}
153165
154166email_titles = {
@@ -169,4 +181,8 @@ class EmailType:
169181 NotificationMethod .invite : (
170182 "✅ You've been invited to join your team in Pneumatic"
171183 ),
184+ NotificationMethod .complete_workflow : 'Workflow completed' ,
185+ NotificationMethod .task_reminder : (
186+ 'Reminder: you have unfinished tasks in Pneumatic'
187+ ),
172188}
0 commit comments