@@ -23,7 +23,6 @@ export const NOTIFICATIONS_PENDING = "NOTIFICATIONS_PENDING";
23
23
export const MARK_NOTIFICATIONS_READ = "MARK_NOTIFICATIONS_READ" ;
24
24
export const SET_NOTIFICATION_PLATFORM = "SET_NOTIFICATION_PLATFORM" ;
25
25
export const RESET_NOTIFICATIONS = "RESET_NOTIFICATIONS" ;
26
- export const RESET_COMMUNITY_NOTIFICATIONS = "RESET_COMMUNITY_NOTIFICATIONS" ;
27
26
28
27
/*
29
28
* Project member role
@@ -76,7 +75,7 @@ export const NOTIFICATIONS_LIMIT = 1000;
76
75
export const PLATFORM = {
77
76
CONNECT : "connect" ,
78
77
COMMUNITY : "community" ,
79
- BOTH : "connect+community " ,
78
+ TAAS : "taas " ,
80
79
} ;
81
80
82
81
// Notifications event types
@@ -141,6 +140,11 @@ export const EVENT_TYPE = {
141
140
COMPLETED : "challenge.notification.completed" ,
142
141
} ,
143
142
BROADCAST : "admin.notification.broadcast" ,
143
+ TAAS : {
144
+ POST_INTERVIEW_ACTION_REQUIRED : 'taas.notification.post-interview-action-required' ,
145
+ RESOURCE_BOOKING_EXPIRATION : 'taas.notification.resource-booking-expiration' ,
146
+ RESOURCE_BOOKING_PLACED : 'taas.notification.resource-booking-placed' ,
147
+ } ,
144
148
} ;
145
149
146
150
export const NOTIFICATION_TYPE = {
@@ -152,6 +156,7 @@ export const NOTIFICATION_TYPE = {
152
156
MEMBER_ADDED : "member-added" ,
153
157
CHALLENGE : "challenge" ,
154
158
BROADCAST : "broadcast" ,
159
+ TAAS : "taas" ,
155
160
} ;
156
161
157
162
/*
@@ -169,6 +174,8 @@ export const GOTO = {
169
174
PHASE : `${ config . URL . CONNECT_DOMAIN } /projects/{{projectId}}/plan#phase-{{phaseId}}` ,
170
175
TOPCODER_TEAM : `${ config . URL . CONNECT_DOMAIN } /projects/{{projectId}}#manageTopcoderTeam` ,
171
176
CHALLENGE : `${ config . URL . COMMUNITY_DOMAIN } /challenges/{{id}}` ,
177
+ TAAS_CANDIDATES_INTERVIEWS : `${ config . URL . TAAS_APP } /{{projectId}}/positions/{{jobId}}/candidates/interviews` ,
178
+ TAAS_PROJECT : `${ config . URL . TAAS_APP } /{{projectId}}`
172
179
} ;
173
180
174
181
// each notification can be displayed differently depend on WHO see them
@@ -1226,6 +1233,8 @@ export const NOTIFICATIONS = [
1226
1233
] ,
1227
1234
} ,
1228
1235
1236
+ /// Community notification rules
1237
+
1229
1238
{
1230
1239
eventType : EVENT_TYPE . CHALLENGE . ACTIVE ,
1231
1240
type : NOTIFICATION_TYPE . CHALLENGE ,
@@ -1258,6 +1267,47 @@ export const NOTIFICATIONS = [
1258
1267
} ,
1259
1268
] ,
1260
1269
} ,
1270
+
1271
+ /// TaaS notification rules
1272
+
1273
+ {
1274
+ version : 1 ,
1275
+ eventType : EVENT_TYPE . TAAS . POST_INTERVIEW_ACTION_REQUIRED ,
1276
+ type : NOTIFICATION_TYPE . TAAS ,
1277
+ rules : [
1278
+ {
1279
+ text : "Candidate action required for <strong>{{userHandle}}</strong> in job <strong>{{jobTitle}}</strong> of the team <strong>{{teamName}}</strong>" ,
1280
+ shouldBundle : false ,
1281
+ goTo : GOTO . TAAS_CANDIDATES_INTERVIEWS ,
1282
+ }
1283
+ ] ,
1284
+ } ,
1285
+
1286
+ {
1287
+ version : 1 ,
1288
+ eventType : EVENT_TYPE . TAAS . RESOURCE_BOOKING_EXPIRATION ,
1289
+ type : NOTIFICATION_TYPE . TAAS ,
1290
+ rules : [
1291
+ {
1292
+ text : "{{numOfExpiringResourceBookings}} resource booking{{s}} {{be}} expiring in the team <strong>{{teamName}}</strong>" ,
1293
+ shouldBundle : false ,
1294
+ goTo : GOTO . TAAS_PROJECT ,
1295
+ }
1296
+ ] ,
1297
+ } ,
1298
+
1299
+ {
1300
+ version : 1 ,
1301
+ eventType : EVENT_TYPE . TAAS . RESOURCE_BOOKING_PLACED ,
1302
+ type : NOTIFICATION_TYPE . TAAS ,
1303
+ rules : [
1304
+ {
1305
+ text : "Resource <strong>{{userHandle}}</strong> is placed for the job <strong>{{jobTitle}}</strong> of the team <strong>{{teamName}}</strong>" ,
1306
+ shouldBundle : false ,
1307
+ goTo : GOTO . TAAS_PROJECT ,
1308
+ }
1309
+ ] ,
1310
+ } ,
1261
1311
] ;
1262
1312
1263
1313
// list of ignored notifications
0 commit comments