move constants
This commit is contained in:
1
src/constants/config.ts
Normal file
1
src/constants/config.ts
Normal file
@ -0,0 +1 @@
|
||||
export const URL_PREFIX = '/api/v1' // _without_ slash at the end
|
10
src/constants/priorities.ts
Normal file
10
src/constants/priorities.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export const PRIORITIES = {
|
||||
'UNSET': 0,
|
||||
'LOW': 1,
|
||||
'MEDIUM': 2,
|
||||
'HIGH': 3,
|
||||
'URGENT': 4,
|
||||
'DO_NOW': 5,
|
||||
} as const
|
||||
|
||||
export type Priority = typeof PRIORITIES[keyof typeof PRIORITIES]
|
7
src/constants/rights.ts
Normal file
7
src/constants/rights.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export const RIGHTS = {
|
||||
'READ': 0,
|
||||
'READ_WRITE': 1,
|
||||
'ADMIN': 2,
|
||||
} as const
|
||||
|
||||
export type Right = typeof RIGHTS[keyof typeof RIGHTS]
|
Reference in New Issue
Block a user