diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index d1e84b4..f1c9139 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -104,6 +104,22 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:verified-status": 'revoked', } break + case NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_WARNING: + attributes = { + "str:cm:projecttitle": payload.title, + "str:cm:email": payload.email, + "str:cm:projectupdatelink": payload.projectLink + '?tab=updates', + "str:cm:user-id": payload.userId?.toString(), + } + break + case NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_LAST_WARNING: + attributes = { + "str:cm:projecttitle": payload.title, + "str:cm:email": payload.email, + "str:cm:projectupdatelink": payload.projectLink + '?tab=updates', + "str:cm:user-id": payload.userId?.toString(), + } + break default: logger.debug('activityCreator() invalid event name', orttoEventName) return; diff --git a/src/types/notifications.ts b/src/types/notifications.ts index 19627e6..b45be84 100644 --- a/src/types/notifications.ts +++ b/src/types/notifications.ts @@ -57,4 +57,6 @@ export const ORTTO_EVENT_NAMES = { [NOTIFICATIONS_EVENT_NAMES.PROJECT_VERIFIED]: 'project-verification', [NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKED]: 'project-verification', [NOTIFICATIONS_EVENT_NAMES.VERIFICATION_FORM_REJECTED]: 'project-verification', + [NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_WARNING]: 'first-update-warning', + [NOTIFICATIONS_EVENT_NAMES.PROJECT_BADGE_REVOKE_LAST_WARNING]: 'second-update-warning', } \ No newline at end of file