- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
143 lines
5.7 KiB
JavaScript
143 lines
5.7 KiB
JavaScript
"use strict";
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.BulkSendEmailDto = exports.SendTemplateEmailDto = exports.SendEmailDto = exports.AttachmentDto = exports.EmailAddressDto = void 0;
|
|
const class_validator_1 = require("class-validator");
|
|
const class_transformer_1 = require("class-transformer");
|
|
class EmailAddressDto {
|
|
}
|
|
exports.EmailAddressDto = EmailAddressDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsEmail)(),
|
|
__metadata("design:type", String)
|
|
], EmailAddressDto.prototype, "email", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], EmailAddressDto.prototype, "name", void 0);
|
|
class AttachmentDto {
|
|
}
|
|
exports.AttachmentDto = AttachmentDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], AttachmentDto.prototype, "filename", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], AttachmentDto.prototype, "content", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], AttachmentDto.prototype, "contentType", void 0);
|
|
class SendEmailDto {
|
|
}
|
|
exports.SendEmailDto = SendEmailDto;
|
|
__decorate([
|
|
(0, class_validator_1.ValidateNested)(),
|
|
(0, class_transformer_1.Type)(() => EmailAddressDto),
|
|
__metadata("design:type", EmailAddressDto)
|
|
], SendEmailDto.prototype, "to", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => EmailAddressDto),
|
|
__metadata("design:type", Array)
|
|
], SendEmailDto.prototype, "cc", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => EmailAddressDto),
|
|
__metadata("design:type", Array)
|
|
], SendEmailDto.prototype, "bcc", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SendEmailDto.prototype, "subject", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SendEmailDto.prototype, "text", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SendEmailDto.prototype, "html", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => AttachmentDto),
|
|
__metadata("design:type", Array)
|
|
], SendEmailDto.prototype, "attachments", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsObject)(),
|
|
__metadata("design:type", Object)
|
|
], SendEmailDto.prototype, "metadata", void 0);
|
|
class SendTemplateEmailDto {
|
|
}
|
|
exports.SendTemplateEmailDto = SendTemplateEmailDto;
|
|
__decorate([
|
|
(0, class_validator_1.ValidateNested)(),
|
|
(0, class_transformer_1.Type)(() => EmailAddressDto),
|
|
__metadata("design:type", EmailAddressDto)
|
|
], SendTemplateEmailDto.prototype, "to", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => EmailAddressDto),
|
|
__metadata("design:type", Array)
|
|
], SendTemplateEmailDto.prototype, "cc", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => EmailAddressDto),
|
|
__metadata("design:type", Array)
|
|
], SendTemplateEmailDto.prototype, "bcc", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsString)(),
|
|
__metadata("design:type", String)
|
|
], SendTemplateEmailDto.prototype, "templateKey", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsObject)(),
|
|
__metadata("design:type", Object)
|
|
], SendTemplateEmailDto.prototype, "variables", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => AttachmentDto),
|
|
__metadata("design:type", Array)
|
|
], SendTemplateEmailDto.prototype, "attachments", void 0);
|
|
__decorate([
|
|
(0, class_validator_1.IsOptional)(),
|
|
(0, class_validator_1.IsObject)(),
|
|
__metadata("design:type", Object)
|
|
], SendTemplateEmailDto.prototype, "metadata", void 0);
|
|
class BulkSendEmailDto {
|
|
}
|
|
exports.BulkSendEmailDto = BulkSendEmailDto;
|
|
__decorate([
|
|
(0, class_validator_1.IsArray)(),
|
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
(0, class_transformer_1.Type)(() => SendEmailDto),
|
|
__metadata("design:type", Array)
|
|
], BulkSendEmailDto.prototype, "emails", void 0);
|
|
//# sourceMappingURL=send-email.dto.js.map
|