algorithm |
Type : string
|
Default value : 'aes-256-gcm'
|
digest |
Type : string
|
Default value : 'sha512'
|
iterations |
Type : number
|
Default value : 2145
|
keylen |
Type : number
|
Default value : 32
|
salt |
Default value : crypto.randomBytes(64)
|
apiResponse |
Type : object
|
Default value : {
apiUserCreatedResponse: 'User has been created successfully',
apiUserGetResponse: 'Users list returned successfully',
apiUserGetById: 'User with specified Id returned successfully',
apiUserUpdatedResponse: 'User with specified id updated successfully',
apiUserDeletedResponse: 'User with specified id deleted successfully',
apiCreateUserFirstNameProperty: {
type: 'String',
description: 'Firstname of the user',
},
apiCreateUserLastNameProperty: {
type: 'String',
description: 'Lastname of the user',
},
apiUpdateUserBoolProperty: {
type: 'Boolean',
description: 'Tells us whether user is active or not',
},
apiValidateUserEmail: {
type: 'String',
description: 'Email of the user',
},
apiValidateUserPass: {
type: 'String',
description: 'Password of the user',
},
}
|
corsOptions |
Type : object
|
Default value : {
origin: ['https://example1.com', 'https://example2.com', 'https://127.0.0.1:5500'],
}
|
exportProvider |
Default value : (): [any] => {
return [AppLogger];
}
|
getProviders |
Default value : (): [any] => {
return [AppLogger];
}
|
loginCredentials |
Type : object
|
Default value : {
email: 'santoshshinde@gmail.com',
password: '123456seven',
}
|
shouldCompress |
Default value : (req: Request, res: Response) => {
if (req.headers['x-no-compression']) {
return false;
}
return compression.filter(req, res);
}
|
updateUserStub |
Default value : () => {
return {
firstName: 'Santosh',
lastName: 'Shinde',
isActive: true,
};
}
|
users |
Type : []
|
Default value : [
{
id: 127,
firstName: 'Santosh',
lastName: 'Shinde',
email: 'santoshshinde@gmail.com',
password: '123456seven',
isActive: true,
},
]
|
userStub |
Default value : () => {
return {
firstName: 'Santosh',
lastName: 'Shinde',
email: 'santoshshinde@gmail.com',
password: '123456seven',
isActive: true,
};
}
|