forked from topcoder-platform/challenge-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-constants.js
53 lines (47 loc) · 2.03 KB
/
app-constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* App constants
*/
const UserRoles = {
Admin: 'Administrator',
Copilot: 'Copilot'
}
const prizeSetTypes = {
ChallengePrizes: 'Challenge prizes',
CopilotPayment: 'Copilot payment',
ReviewerPayment: 'Reviewer payment',
CheckpointPrizes: 'Checkpoint prizes'
}
const challengeStatuses = {
Draft: 'Draft',
Canceled: 'Canceled',
Active: 'Active',
Completed: 'Completed'
}
const EVENT_ORIGINATOR = 'topcoder-challenges-api'
const EVENT_MIME_TYPE = 'application/json'
// using a testing topc, should be changed to use real topics in comments when they are created
const Topics = {
ChallengeCreated: 'challenge.notification.create',
ChallengeUpdated: 'challenge.notification.update',
ChallengeTypeCreated: 'test.new.bus.events', // 'challenge.action.type.created',
ChallengeTypeUpdated: 'test.new.bus.events', // 'challenge.action.type.updated',
ChallengeSettingCreated: 'test.new.bus.events', // 'challenge.action.setting.created',
ChallengeSettingUpdated: 'test.new.bus.events', // 'challenge.action.setting.updated',
ChallengePhaseCreated: 'test.new.bus.events', // 'challenge.action.phase.created',
ChallengePhaseUpdated: 'test.new.bus.events', // 'challenge.action.phase.updated',
ChallengePhaseDeleted: 'test.new.bus.events', // 'challenge.action.phase.deleted',
TimelineTemplateCreated: 'test.new.bus.events', // 'challenge.action.timeline.template.created',
TimelineTemplateUpdated: 'test.new.bus.events', // 'challenge.action.timeline.template.updated',
TimelineTemplateDeleted: 'test.new.bus.events', // 'challenge.action.timeline.template.deleted',
ChallengeTypeTimelineTemplateCreated: 'test.new.bus.events', // 'challenge.action.type.timeline.template.created',
ChallengeTypeTimelineTemplateUpdated: 'test.new.bus.events', // 'challenge.action.type.timeline.template.updated',
ChallengeTypeTimelineTemplateDeleted: 'test.new.bus.events' // 'challenge.action.type.timeline.template.deleted'
}
module.exports = {
UserRoles,
prizeSetTypes,
challengeStatuses,
EVENT_ORIGINATOR,
EVENT_MIME_TYPE,
Topics
}