createDirectoriesIfNotExist | ||||||||
createDirectoriesIfNotExist(directoryPath: string)
|
||||||||
Creates directories if they do not exist.
Parameters :
|
fileType |
fileType()
|
Gets the file type module. |
getHashFromBuffer | ||||||||
getHashFromBuffer(fileBuffer: Buffer)
|
||||||||
Generates an SHA-256 hash from a buffer.
Parameters :
|
readDirectoryRecursively | ||||||||
readDirectoryRecursively(dirPath: string)
|
||||||||
Recursively reads a directory and returns its structure.
Parameters :
Returns :
Promise<DirectoryStructure | []>
A promise that resolves to the directory structure. |
readFile | ||||||||||||
readFile(path: string, opts?)
|
||||||||||||
Reads a file.
Parameters :
|
dateToTime | ||||||
dateToTime(__namedParameters: {value})
|
||||||
Converts a Date object to a timestamp.
Parameters :
|
parseParamsString | ||||||||
parseParamsString(filterString: string)
|
||||||||
Parses a parameter string into an object.
Parameters :
Returns :
literal type
An object representing the parsed parameters. |
stringifyParamsObject | ||||||
stringifyParamsObject(filterObject)
|
||||||
Stringifies an object into a parameter string.
Parameters :
Returns :
string
The parameter string. |
deepEqual | ||||||||||||
deepEqual(obj1: ObjectLiteral, obj2: ObjectLiteral)
|
||||||||||||
Checks if two objects are deeply equal.
Parameters :
Returns :
boolean
A boolean indicating whether the objects are deeply equal. |
getXmlParser |
getXmlParser()
|
Returns the XML parser instance. |
parseXmlBody | ||||||
parseXmlBody(body)
|
||||||
Parses the XML body into an XdbObject.
Parameters :
|
parseXmlFile | ||||||||
parseXmlFile(xmlData: Buffer)
|
||||||||
Parses an XML file into an XdbObject.
Parameters :
Returns :
Promise<XdbObject>
A promise that resolves to the parsed XdbObject. |
removeDuplicateObjects | ||||||
removeDuplicateObjects(array)
|
||||||
Removes duplicate objects from an array of XdbDecomposedEntity.
Parameters :
Returns :
XdbDecomposedEntity[]
The array with duplicates removed. |
generateRandomInt | |||||||||||||||
generateRandomInt(max, min: number)
|
|||||||||||||||
Generates a random integer between the given minimum and maximum values (inclusive).
Parameters :
|
generateRandomString | ||||||||||||
generateRandomString(min: number, max: number)
|
||||||||||||
Generates a random string of a random length between the given minimum and maximum values (inclusive).
Parameters :
Returns :
string
A random string with a length between the specified min and max values. |
getProcessInstance | ||||||||
getProcessInstance(code: string)
|
||||||||
Gets a process instance by its code.
Parameters :
|
getRegisteredProcesses |
getRegisteredProcesses()
|
Gets the store of registered processes. |
hasProcessInstance | ||||||||
hasProcessInstance(code: string)
|
||||||||
Checks if a process instance is registered.
Parameters :
|
registerProcess | ||||||||
registerProcess(process: T)
|
||||||||
Registers a process.
Parameters :
|
hasSomeRole | |||||||||
hasSomeRole(userRoles, ...roles: undefined)
|
|||||||||
Checks if a user has at least one of the specified roles.
Parameters :
|
inspect | ||||||||
inspect(obj: T)
|
||||||||
Inspects an object and returns a string representation of it.
Parameters :
|
sort | ||||||||||||||||||||
sort(obj: Array, property: string, vector)
|
||||||||||||||||||||
Sorts array of objects.
Parameters :
|
jsonFilter | |||||||||
jsonFilter(key, value)
|
|||||||||
Filters JSON objects, removing null values and empty arrays.
Parameters :
|
removeCircularReferences | ||||||||||||
removeCircularReferences(value, cache)
|
||||||||||||
Removes circular references from an object or array to make it serializable.
Parameters :
|
loadEnvironment | ||||||||
loadEnvironment(logger?: Logger)
|
||||||||
Loads environment variables from a .env file based on the current NODE_ENV. Falls back to the "default.env" file if the target .env file is not found.
Parameters :
|
provideSaveHandlers | ||||
provideSaveHandlers(args)
|
||||
This function provide save handlers for entities, check UserEntityPwdAndRolesSaveHandler as example
Parameters :
|
ResponseDto | ||||||
ResponseDto(serializer)
|
||||||
A decorator to apply the specified DTO serializer to the response.
Parameters :
|
sleep | ||||||||
sleep(delay: number)
|
||||||||
Pauses execution for a specified duration.
Parameters :
|
xmlFileInsertUpdateNodeTpl | ||||||||
xmlFileInsertUpdateNodeTpl(target: string)
|
||||||||
Generates the XML file InsertUpdate node template.
Parameters :
|
xmlFileNodeTpl | ||||||||
xmlFileNodeTpl(obj: ObjectLiteral)
|
||||||||
Generates the XML file node template.
Parameters :
|
xmlFileRowNode |
xmlFileRowNode()
|
Generates the XML file row node template. |
xmlFileRowPropertyNode | ||||||||||||||||
xmlFileRowPropertyNode(stack, key: string, value)
|
||||||||||||||||
Generates the XML file row property node template.
Parameters :
|
xmlFileSchemaTpl |
xmlFileSchemaTpl()
|
Generates the XML file schema template. |
xmlMediaNodeTpl | ||||||||
xmlMediaNodeTpl(obj: ObjectLiteral)
|
||||||||
Generates the XML media node template.
Parameters :
|