33 lines
1020 B
TypeScript
33 lines
1020 B
TypeScript
export class CNumbers {
|
|
// Timeout durations (in milliseconds)
|
|
static readonly SHORT_TIMEOUT = 5000;
|
|
static readonly MEDIUM_TIMEOUT = 10000;
|
|
static readonly LONG_TIMEOUT = 30000;
|
|
|
|
// Pagination
|
|
static readonly ITEMS_PER_PAGE = 10;
|
|
static readonly MAX_ITEMS_PER_PAGE = 100;
|
|
|
|
// Retry attempts
|
|
static readonly MAX_RETRY_ATTEMPTS = 3;
|
|
|
|
// Status codes
|
|
static readonly STATUS_OK = 200;
|
|
static readonly STATUS_CREATED = 201;
|
|
static readonly STATUS_NO_CONTENT = 204;
|
|
static readonly STATUS_BAD_REQUEST = 400;
|
|
static readonly STATUS_UNAUTHORIZED = 401;
|
|
static readonly STATUS_FORBIDDEN = 403;
|
|
static readonly STATUS_NOT_FOUND = 404;
|
|
static readonly STATUS_INTERNAL_SERVER_ERROR = 500;
|
|
|
|
// Other constants
|
|
static readonly MAX_UPLOAD_SIZE_MB = 50;
|
|
static readonly MIN_PASSWORD_LENGTH = 8;
|
|
static readonly MAX_PASSWORD_LENGTH = 128;
|
|
|
|
// Phone number
|
|
static readonly PHONE_MIN_LENGTH = 10;
|
|
static readonly PHONE_MAX_LENGTH = 13;
|
|
}
|