Skip to content

Commit e2c746a

Browse files
committed
feat: support new user roles, part 2
Users with Topcoder role 'Business Development Representative' get the same notifications as users with Topcoder Role 'Connect Account Manager' ref appirio-tech/connect-app#3298
1 parent 3d8b02e commit e2c746a

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

connect/events-config.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ const PROJECT_ROLE_RULES = {
3030
};
3131

3232
// TopCoder roles
33-
// eslint-disable-next-line no-unused-vars
34-
const ROLE_CONNECT_COPILOT = 'Connect Copilot';
33+
const ROLE_CONNECT_COPILOT = 'Connect Copilot'; // eslint-disable-line no-unused-vars
3534
const ROLE_CONNECT_MANAGER = 'Connect Manager';
3635
const ROLE_CONNECT_COPILOT_MANAGER = 'Connect Copilot Manager';
3736
const ROLE_CONNECT_ACCOUNT_MANAGER = 'Connect Account Manager';
3837
const ROLE_ADMINISTRATOR = 'administrator';
38+
const ROLE_BUSINESS_DEVELOPMENT_REPRESENTATIVE = 'Business Development Representative';
39+
const ROLE_PRESALES = 'Presales'; // eslint-disable-line no-unused-vars
40+
const ROLE_ACCOUNT_EXECUTIVE = 'Account Executive'; // eslint-disable-line no-unused-vars
41+
const ROLE_PROGRAM_MANAGER = 'Program Manager'; // eslint-disable-line no-unused-vars
42+
const ROLE_SOLUTION_ARCHITECT = 'Solution Architect'; // eslint-disable-line no-unused-vars
43+
const ROLE_PROJECT_MANAGER = 'Project Manager'; // eslint-disable-line no-unused-vars
3944

4045
/**
4146
* Supported events configuration
@@ -58,14 +63,19 @@ const EVENTS = [
5863
{
5964
type: BUS_API_EVENT.CONNECT.PROJECT.CREATED,
6065
projectRoles: [PROJECT_ROLE_OWNER],
61-
topcoderRoles: [ROLE_CONNECT_ACCOUNT_MANAGER],
66+
topcoderRoles: [ROLE_CONNECT_ACCOUNT_MANAGER, ROLE_BUSINESS_DEVELOPMENT_REPRESENTATIVE],
6267
exclude: {
6368
topcoderRoles: [ROLE_CONNECT_MANAGER, ROLE_ADMINISTRATOR],
6469
},
6570
}, {
6671
type: BUS_API_EVENT.CONNECT.PROJECT.SUBMITTED_FOR_REVIEW,
6772
projectRoles: [PROJECT_ROLE_OWNER],
68-
topcoderRoles: [ROLE_CONNECT_MANAGER, ROLE_CONNECT_ACCOUNT_MANAGER, ROLE_ADMINISTRATOR],
73+
topcoderRoles: [
74+
ROLE_CONNECT_MANAGER,
75+
ROLE_CONNECT_ACCOUNT_MANAGER,
76+
ROLE_BUSINESS_DEVELOPMENT_REPRESENTATIVE,
77+
ROLE_ADMINISTRATOR,
78+
],
6979
}, {
7080
type: BUS_API_EVENT.CONNECT.PROJECT.APPROVED,
7181
projectRoles: [

0 commit comments

Comments
 (0)