ACCESS_TOKEN_ERROR_MSG |
Type : string
|
Default value : "ERR_TOKEN_A"
|
Error message for access token related errors. |
AUTH_ACCESS_TOKEN_PREFIX |
Type : string
|
Default value : "access_token"
|
Prefix for access token cache keys. |
AUTH_JWT_CACHE_PREFIX |
Type : string
|
Default value : "jwt"
|
Prefix for JWT cache keys. |
AUTH_REFRESH_TOKEN_PREFIX |
Type : string
|
Default value : "refresh_token"
|
Prefix for refresh token cache keys. |
BRUTEFORCE_JWT_CACHE_PREFIX |
Type : string
|
Default value : "bruteforce"
|
Prefix for brute force protection cache keys. |
bruteForceIPKey |
Default value : (ipAddress: string) =>
`${BRUTEFORCE_JWT_CACHE_PREFIX}:ip:${ipAddress}`
|
Generates a cache key for tracking brute force login attempts by IP address. |
bruteForceLoginKey |
Default value : (login: string) =>
`${BRUTEFORCE_JWT_CACHE_PREFIX}:login:${login}`
|
Generates a cache key for tracking brute force login attempts by login. |
jwtAccessTokenKey |
Default value : (accessToken: string) => {
return `${AUTH_JWT_CACHE_PREFIX}:${AUTH_ACCESS_TOKEN_PREFIX}:${accessToken}`;
}
|
Generates a cache key for an access token. |
REFRESH_TOKEN_ERROR_MSG |
Type : string
|
Default value : "ERR_TOKEN_R"
|
Error message for refresh token related errors. |
UNKNOWN_IP |
Type : string
|
Default value : "unknown"
|
Placeholder for unknown IP addresses. |
AllowedForMetadataKey |
Type : string
|
Default value : "for_roles"
|
A constant string key used for role-based access control metadata. This key is used to annotate routes or controllers with the roles allowed to access them. |
ForRoles |
Default value : (...roles: string[]) =>
SetMetadata(AllowedForMetadataKey, roles)
|
ForRoles custom decorator for defining roles allowed to access a route. |
CAPTCHA_CACHE_PREFIX |
Type : string
|
Default value : "captcha"
|
The prefix used for storing CAPTCHA data. |
CONFIG_CACHE_PREFIX |
Type : string
|
Default value : "config"
|
The prefix used for storing configuration items. |
CONFIG_FILE_EXT_PATTERN |
Type : string
|
Default value : ".config.ts"
|
The pattern for configuration file extensions. |
FILES_ENCODING |
Type : string
|
Default value : "utf-8"
|
The encoding used for reading and writing configuration files. |
GEN_SRC_DIR |
Type : string
|
Default value : "gen-src"
|
The directory where generated source files are stored. |
KP_PROPERTIES_FILE_NAME |
Type : string
|
Default value : "kp.properties"
|
The name of the kp properties file. It is assumed that this is the main configuration file, located in the root of the project and can override the properties of any .properties in the entire project |
LOCAL_PROPERTIES_FILE_NAME |
Type : string
|
Default value : "local.properties"
|
The name of the local properties file It is assumed that such files override neighboring ones .properties files and are out of version control. |
PROPERTIES_FILE_EXT_PATTERN |
Type : string
|
Default value : ".properties"
|
The pattern for properties file extensions. |
DEFAULT_MEDIA_QUALITY |
Type : number
|
Default value : 78
|
Default media quality value. |
DEFAULT_MEDIA_TYPE |
Type : string
|
Default value : "default"
|
Default media type code. |
MEDIA_RELATIONS |
Type : []
|
Default value : [
"name",
"name.lang",
"type",
"type.formats",
"type.ext",
"files",
"files.format",
]
|
Array containing relations for media. |
MEDIA_TYPE_RELATIONS |
Type : []
|
Default value : ["ext", "formats"]
|
Array containing relations for media type. |
ORIGINAL |
Type : string
|
Default value : "original"
|
Represents the original media format. |
SVG |
Type : string
|
Default value : "svg"
|
Represents the SVG media extension. |
THUMB |
Type : string
|
Default value : "thumb"
|
Represents the thumbnail media format. |
ENTITY_SAVE_HANDLER |
Default value : Symbol("ENTITY_SAVE_HANDLER")
|
Token for injecting entity save handler. |
fileTypeModule |
Default value : {} as { lib: typeof import("file-type") }
|
Object to hold the dynamically imported file-type module. |
LOGGER |
Default value : Symbol("LOGGER_SERVICE")
|
Symbol used as a token for the LogService. |
MESSAGES_BROKER |
Default value : Symbol("MSG_BROKER")
|
Symbol used as a token for injecting the MessagesBrokerService. |
MS_CLIENT |
Default value : Symbol("MS_CLIENT")
|
Symbol used as a token for injecting the microservices' client. |
MSG_BUS |
Default value : Symbol("MSG_BUS")
|
Symbol used as a token for injecting the message bus. |
MS_EXCEPTION_ID |
Type : string
|
Default value : "MsException"
|
A constant representing the exception identifier for microservices. |
REQUEST_PROPS |
Type : object
|
Default value : {
/**
* @property accessToken
* The property name for storing the access token in the request.
*/
accessToken: "accessToken",
/**
* @property currentUser
* The property name for storing the current user in the request.
*/
currentUser: "currentUser",
}
|
An object containing properties used for request handling. |
parser |
Stored xml-parser instance |
ReadOperatorRe |
Default value : /\$\{@read:([^}]*)}/
|
Regex for detect read-operator in xml-schema |
rootToken |
Type : string
|
Default value : "@root"
|
Representing root-node identifier |
REDIS_CLIENT |
Default value : Symbol("REDIS_CLIENT")
|
A symbol used for injecting the Redis client. |
REGISTERED_PROCESSES |
Type : Map<string, AbstractProcess>
|
Default value : new Map<
string,
AbstractProcess
>()
|
Store for registered processes |
WARLOCK |
Default value : Symbol("WARLOCK")
|
Symbol used as a token for injecting the warlock mechanism. |