From d5807424c89ddeac999b0de855e984d9ea62e513 Mon Sep 17 00:00:00 2001 From: Sachin Maheshwari Date: Fri, 23 Feb 2018 13:05:52 +0530 Subject: [PATCH] adding notifications prefix in topic name to decouple it from event bus (tc-bus-api). --- src/constants.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/constants.js b/src/constants.js index 50f11de6..a73f1723 100644 --- a/src/constants.js +++ b/src/constants.js @@ -54,23 +54,23 @@ export const EVENT = { }; export const BUS_API_EVENT = { - PROJECT_CREATED: 'connect.project.created', - PROJECT_SUBMITTED_FOR_REVIEW: 'connect.project.submittedForReview', - PROJECT_APPROVED: 'connect.project.approved', - PROJECT_PAUSED: 'connect.project.paused', - PROJECT_COMPLETED: 'connect.project.completed', - PROJECT_CANCELED: 'connect.project.canceled', + PROJECT_CREATED: 'notifications.connect.project.created', + PROJECT_SUBMITTED_FOR_REVIEW: 'notifications.connect.project.submittedForReview', + PROJECT_APPROVED: 'notifications.connect.project.approved', + PROJECT_PAUSED: 'notifications.connect.project.paused', + PROJECT_COMPLETED: 'notifications.connect.project.completed', + PROJECT_CANCELED: 'notifications.connect.project.canceled', - MEMBER_JOINED: 'connect.project.member.joined', - MEMBER_LEFT: 'connect.project.member.left', - MEMBER_REMOVED: 'connect.project.member.removed', - MEMBER_ASSIGNED_AS_OWNER: 'connect.project.member.assignedAsOwner', - MEMBER_JOINED_COPILOT: 'connect.project.member.copilotJoined', - MEMBER_JOINED_MANAGER: 'connect.project.member.managerJoined', + MEMBER_JOINED: 'notifications.connect.project.member.joined', + MEMBER_LEFT: 'notifications.connect.project.member.left', + MEMBER_REMOVED: 'notifications.connect.project.member.removed', + MEMBER_ASSIGNED_AS_OWNER: 'notifications.connect.project.member.assignedAsOwner', + MEMBER_JOINED_COPILOT: 'notifications.connect.project.member.copilotJoined', + MEMBER_JOINED_MANAGER: 'notifications.connect.project.member.managerJoined', - PROJECT_LINK_CREATED: 'connect.project.linkCreated', - PROJECT_FILE_UPLOADED: 'connect.project.fileUploaded', - PROJECT_SPECIFICATION_MODIFIED: 'connect.project.specificationModified', + PROJECT_LINK_CREATED: 'notifications.connect.project.linkCreated', + PROJECT_FILE_UPLOADED: 'notifications.connect.project.fileUploaded', + PROJECT_SPECIFICATION_MODIFIED: 'notifications.connect.project.specificationModified', }; export const REGEX = {