-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenum-types.ts
64 lines (59 loc) · 1.66 KB
/
enum-types.ts
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
54
55
56
57
58
59
60
61
62
63
64
/**
* ProfilePattern
* @desc Enumeration type representing supported profile patterns
*/
export enum ProfilePattern {
dev = 'dev',
prod = 'prod',
test = 'test',
}
//--------------------------------------------------------------------------------------------------
/**
* ThemePattern
* @desc Enumeration type representing supported theme patterns
*/
export enum ThemePattern {
default = 'default',
}
//--------------------------------------------------------------------------------------------------
/**
* RoutePattern
* @desc Enumeration type representing supported route patterns
*/
export enum RoutePattern {
default = 'default',
file = 'file',
raw = 'raw',
}
//--------------------------------------------------------------------------------------------------
/**
* StatusCode
* @desc Type representing supported status codes
*/
export enum StatusCode {
OK = 200,
CREATED = 201,
UNAUTHORIZED = 401,
BAD_REQUEST = 403,
NOT_FOUND = 404,
CONFLICT = 409,
UNPROCESSABLE_ENTITY = 422,
INTERNAL_SERVER_ERROR = 500,
SERVICE_UNAVAILABLE = 503,
}
//--------------------------------------------------------------------------------------------------
/**
* ErrorType
* @desc Type representing supported errors
*/
export enum ErrorType {
general_error = 'GeneralError',
parser_error = 'ParserError',
validation_error = 'ValidationError',
request_error = 'RequestError',
response_error = 'ResponseError',
parameter_error = 'ParameterError',
type_error = 'TypeError',
value_error = 'ValueError',
}
//--------------------------------------------------------------------------------------------------