Skip to content

Commit d580742

Browse files
author
Sachin Maheshwari
committed
adding notifications prefix in topic name to decouple it from event bus (tc-bus-api).
1 parent 4527de1 commit d580742

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/constants.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ export const EVENT = {
5454
};
5555

5656
export const BUS_API_EVENT = {
57-
PROJECT_CREATED: 'connect.project.created',
58-
PROJECT_SUBMITTED_FOR_REVIEW: 'connect.project.submittedForReview',
59-
PROJECT_APPROVED: 'connect.project.approved',
60-
PROJECT_PAUSED: 'connect.project.paused',
61-
PROJECT_COMPLETED: 'connect.project.completed',
62-
PROJECT_CANCELED: 'connect.project.canceled',
57+
PROJECT_CREATED: 'notifications.connect.project.created',
58+
PROJECT_SUBMITTED_FOR_REVIEW: 'notifications.connect.project.submittedForReview',
59+
PROJECT_APPROVED: 'notifications.connect.project.approved',
60+
PROJECT_PAUSED: 'notifications.connect.project.paused',
61+
PROJECT_COMPLETED: 'notifications.connect.project.completed',
62+
PROJECT_CANCELED: 'notifications.connect.project.canceled',
6363

64-
MEMBER_JOINED: 'connect.project.member.joined',
65-
MEMBER_LEFT: 'connect.project.member.left',
66-
MEMBER_REMOVED: 'connect.project.member.removed',
67-
MEMBER_ASSIGNED_AS_OWNER: 'connect.project.member.assignedAsOwner',
68-
MEMBER_JOINED_COPILOT: 'connect.project.member.copilotJoined',
69-
MEMBER_JOINED_MANAGER: 'connect.project.member.managerJoined',
64+
MEMBER_JOINED: 'notifications.connect.project.member.joined',
65+
MEMBER_LEFT: 'notifications.connect.project.member.left',
66+
MEMBER_REMOVED: 'notifications.connect.project.member.removed',
67+
MEMBER_ASSIGNED_AS_OWNER: 'notifications.connect.project.member.assignedAsOwner',
68+
MEMBER_JOINED_COPILOT: 'notifications.connect.project.member.copilotJoined',
69+
MEMBER_JOINED_MANAGER: 'notifications.connect.project.member.managerJoined',
7070

71-
PROJECT_LINK_CREATED: 'connect.project.linkCreated',
72-
PROJECT_FILE_UPLOADED: 'connect.project.fileUploaded',
73-
PROJECT_SPECIFICATION_MODIFIED: 'connect.project.specificationModified',
71+
PROJECT_LINK_CREATED: 'notifications.connect.project.linkCreated',
72+
PROJECT_FILE_UPLOADED: 'notifications.connect.project.fileUploaded',
73+
PROJECT_SPECIFICATION_MODIFIED: 'notifications.connect.project.specificationModified',
7474
};
7575

7676
export const REGEX = {

0 commit comments

Comments
 (0)