forked from topcoder-platform/topcoder-x-processor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
52 lines (44 loc) · 1.05 KB
/
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
'use strict';
/*
* Copyright (c) 2018 TopCoder, Inc. All rights reserved.
*/
/**
* Define constants.
*
* @author TCSCODER
* @version 1.0
*/
// The user types
const USER_TYPES = {
GITHUB: 'github',
GITLAB: 'gitlab'
};
// The user roles
const USER_ROLES = {
OWNER: 'owner'
};
// The challenge status
const CHALLENGE_STATUS = {
ACTIVE: 'Active',
COMPLETED: 'Completed',
CANCELED: 'Cancelled'
};
const SERVICE_ERROR_STATUS = 500;
// issue status
const ISSUE_STATUS = {
CHALLENGE_CANCELLED: 'challenge_cancelled',
CHALLENGE_CREATION_PENDING: 'challenge_creation_pending',
CHALLENGE_CREATION_SUCCESSFUL: 'challenge_creation_successful',
CHALLENGE_CREATION_FAILED: 'challenge_creation_failed',
CHALLENGE_CREATION_RETRIED: 'challenge_creation_retried',
CHALLENGE_PAYMENT_SUCCESSFUL: 'challenge_payment_successful',
CHALLENGE_PAYMENT_PENDING: 'challenge_payment_pending',
CHALLENGE_PAYMENT_FAILED: 'challenge_payment_failed'
};
module.exports = {
USER_ROLES,
USER_TYPES,
SERVICE_ERROR_STATUS,
CHALLENGE_STATUS,
ISSUE_STATUS
};