mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 23:36:15 +08:00
85e09ecc77
* List registered Addresses API endpoint added to API docs generation * Create new Address API endpoint to API generation * Create new Address API endpoint to API generation. List registered Addresses for a User api endpoint added to api generation * Request Addresses information api endpoint added to api generation * Update Address information api endpoint added to api endpoint generation * Delete an Address endpoint added to api generation * List addresses from communication register endpoint added to api docs generation. Add example to userId * Create new forwarded Address api endpoint added to api docs generation * Update forwarded Address information API endpoint added to API docs generation * Delete a forwarded Address endpoint added to API docs generation * Request forwarded Addresses information endpoint added to API docs generation * Get Address info endpoint added to API docs generation * Rename domain in addresses endpoint added to API docs generation
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
const Joi = require('joi');
|
|
const { booleanSchema } = require('../../schemas');
|
|
|
|
const Autoreply = Joi.object({
|
|
status: booleanSchema.default(true).description('If true, then autoreply is enabled for this address'),
|
|
start: Joi.date().empty('').allow(false).description('Either a date string or boolean false to disable start time checks'),
|
|
end: Joi.date().empty('').allow(false).description('Either a date string or boolean false to disable end time checks'),
|
|
name: Joi.string().empty('').trim().max(128).description('Name that is used for the From: header in autoreply message'),
|
|
subject: Joi.string()
|
|
.empty('')
|
|
.trim()
|
|
.max(2 * 1024)
|
|
.description('Autoreply subject line'),
|
|
text: Joi.string()
|
|
.empty('')
|
|
.trim()
|
|
.max(128 * 1024)
|
|
.description('Autoreply plaintext content'),
|
|
html: Joi.string()
|
|
.empty('')
|
|
.trim()
|
|
.max(128 * 1024)
|
|
.description('Autoreply HTML content')
|
|
})
|
|
.description('Autoreply information')
|
|
.$_setFlag('objectName', 'Autoreply');
|
|
|
|
module.exports = { Autoreply };
|