Fakultas Ilmu Komputer UI

views_constants.py 2.74 KB
Newer Older
Ilham Darmawan Candra Purnama's avatar
Ilham Darmawan Candra Purnama committed
1
2
3
4
5
6
7
8
9
ERROR_OPEN_TIME_GREATER_THAN_CURRENT_TIME = 'Waktu buka lowongan harus lebih dari hari ini!'
ERROR_OPEN_TIME_GREATER_THAN_CLOSE_TIME = 'Waktu tutup lowongan harus lebih dari waktu buka lowongan!'
ERROR_OPEN_TIME_EQUALS_CLOSE_TIME = 'Waktu tutup dan buka lowongan tidak boleh sama!'
ERROR_NAME_MUST_ALPHABET = 'Name must alphabets only'
ERROR_SALARY_MUST_NUMBER = 'Salary must number only'
ERROR_AMOUNT_MUST_NUMBER = 'Amount must number only'
ERROR_RESPONSIBILITIES_MUST_STRING = 'Responsibilities must be string'
ERROR_INVALID_RECRUITER_RESPONSE = 'Tingkat Respons Perekrut harus salah satu dari Selalu, Sering, Kadang, Jarang, ' \
                                   'dan Tidak Pernah!'
Refo Ilmiya Akbar's avatar
Refo Ilmiya Akbar committed
10
ERROR_INVALID_OFFICE_ADDRESS = 'Office Address harus berupa string!'
Ilham Darmawan Candra Purnama's avatar
Ilham Darmawan Candra Purnama committed
11
12
13
14
15
16
ERROR_VACANCY_ALREADY_APPLIED = 'You have already applied for the vacancy'
ERROR_COMPANY_DOES_NOT_EXIST = 'No company exists with that ID'
ERROR_VACANCY_CLOSED = 'vacancy is closed'
ERROR_INVALID_STATUS_CODE = 'status must be an integer between 0 and 4'
ERROR_FORBIDDEN = 'forbidden'
ERROR_BAD_REQUEST = 'bad request'
17
ERROR_WORDS_COUNT = 'Cover letter must minimum 250 words!'
Ilham Darmawan Candra Purnama's avatar
Ilham Darmawan Candra Purnama committed
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
54
55
56
57
58

ACTION_LIST = 'list'
ACTION_PARTIAL_UPDATE = 'partial_update'
ACTION_RETRIEVE = 'retrieve'
ACTION_UPDATE = 'update'

HEADER_AUTH = 'Basic WDN6TmtGbWVwa2RBNDdBU05NRFpSWDNaOWdxU1UxTHd5d3U1V2VwRzpCRVFXQW43RDl6a2k3NEZ0bkNpWVhIRk50Ymg3eXlNWmFuNnlvMU1uaUdSVWNGWnhkQnBobUU5TUxuVHZiTTEzM1dsUnBwTHJoTXBkYktqTjBxcU9OaHlTNGl2Z0doczB0OVhlQ3M0Ym1JeUJLMldwbnZYTXE4VU5yTEFEMDNZeA=='
HEADER_CONTENT_TYPE = 'application/x-www-form-urlencoded'
HEADER_NO_CACHE = 'no-cache'

CLIENT_ID_VALUE = 'X3zNkFmepkdA47ASNMDZRX3Z9gqSU1Lwywu5WepG'
URL_AKUN_CS_UI = 'https://akun.cs.ui.ac.id/oauth/token/'

METHOD_GET = 'get'
METHOD_PATCH = 'patch'
METHOD_POST = 'POST'

ORDER_ASCENDING = 'ascending'
ORDER_DESCENDING = 'descending'
ORDER_STUDENT = 'student'
ORDER_UPDATED = '-updated'

PARAM_GRANT_TYPE = 'grant_type='
PARAM_PASSWORD = 'password='
PARAM_USERNAME = 'username='


ACCESS_TOKEN = 'access_token'
AMOUNT = 'amount'
BENEFITS = 'benefits'
CLIENT_ID = 'client_id'
CLOSE_TIME = 'close_time'
COMPANY = 'company'
COUNT = 'count'
COUNT_NEW = 'count_new'
COVER_LETTER = 'cover_letter'
DESCRIPTION = 'description'
ERROR = 'error'
IS_VALID = 'is_valid'
MAX_ACCEPTED_APPLICANTS = 'max_accepted_applicants'
NAME = 'name'
59
MOST_RECENT='recent'
Refo Ilmiya Akbar's avatar
Refo Ilmiya Akbar committed
60
OFFICE_ADDRESS = 'office_address'
Ilham Darmawan Candra Purnama's avatar
Ilham Darmawan Candra Purnama committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
OPEN_TIME = 'open_time'
OPENED_ONLY = 'opened_only'
ORDERING = 'order'
PASSWORD = 'password'
REASON = 'reason'
RECRUITER_ACTIVITY = 'recruiter_activity'
REQUEST = 'request'
REQUIREMENTS = 'requirements'
RESPONSIBILITIES = 'responsibilities'
SALARY = 'salary'
SEARCH = 'search'
SORT = 'sort'
STATUS = 'status'
TAG = 'tag'
VACANCY = 'vacancy'
VACANCY_ID = 'vacancy_id'
VERIFIED = 'verified'
WORKING_PERIOD = 'working_period'