1
0

move constants

This commit is contained in:
Dominik Pschenitschni
2022-08-13 15:26:57 +02:00
parent 4a50e6aae2
commit 041a1a4cc0
22 changed files with 21 additions and 21 deletions

1
src/constants/config.ts Normal file
View File

@ -0,0 +1 @@
export const URL_PREFIX = '/api/v1' // _without_ slash at the end

View 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
View 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]