@flusys/nestjs-email 7.1.0 → 8.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/index.d.ts +3 -3
- package/controllers/email-config.controller.d.ts +2 -2
- package/controllers/email-send.controller.d.ts +3 -3
- package/controllers/email-template.controller.d.ts +4 -4
- package/controllers/index.d.ts +3 -3
- package/docs/email-swagger.config.d.ts +2 -2
- package/docs/index.d.ts +1 -1
- package/dtos/email-config.dto.d.ts +1 -1
- package/dtos/email-send.dto.d.ts +1 -1
- package/dtos/index.d.ts +3 -3
- package/entities/email-config-with-company.entity.d.ts +1 -1
- package/entities/email-template-with-company.entity.d.ts +1 -1
- package/entities/index.d.ts +10 -10
- package/enums/index.d.ts +1 -1
- package/fesm/261.js +799 -0
- package/fesm/493.js +1723 -0
- package/fesm/chunks/99.js +12 -0
- package/fesm/config/index.js +104 -3
- package/fesm/controllers/index.js +396 -3
- package/fesm/docs/index.js +134 -1
- package/fesm/dtos/index.js +22 -3
- package/fesm/entities/index.js +409 -13
- package/fesm/enums/index.js +37 -1
- package/fesm/index.js +762 -10
- package/fesm/interfaces/index.js +18 -4
- package/fesm/modules/index.js +541 -1
- package/fesm/providers/index.js +523 -5
- package/fesm/runtime.js +134 -0
- package/fesm/services/index.js +17 -5
- package/index.d.ts +10 -10
- package/interfaces/email-config.interface.d.ts +2 -2
- package/interfaces/email-module-options.interface.d.ts +3 -3
- package/interfaces/email-template.interface.d.ts +1 -1
- package/interfaces/index.d.ts +4 -4
- package/modules/email.module.d.ts +2 -2
- package/modules/index.d.ts +1 -1
- package/package.json +27 -38
- package/providers/email-factory.service.d.ts +2 -2
- package/providers/email-provider.registry.d.ts +2 -2
- package/providers/index.d.ts +5 -5
- package/providers/mailgun-provider.d.ts +1 -1
- package/providers/sendgrid-provider.d.ts +1 -1
- package/providers/smtp-provider.d.ts +1 -1
- package/services/email-config.service.d.ts +3 -3
- package/services/email-datasource.provider.d.ts +3 -3
- package/services/email-provider-config.service.d.ts +7 -7
- package/services/email-send.service.d.ts +7 -7
- package/services/email-template.service.d.ts +6 -6
- package/services/index.d.ts +5 -5
- package/utils/index.d.ts +1 -1
- package/cjs/config/email.constants.js +0 -22
- package/cjs/config/event-actions.js +0 -34
- package/cjs/config/index.js +0 -20
- package/cjs/config/message-keys.js +0 -39
- package/cjs/controllers/email-config.controller.js +0 -111
- package/cjs/controllers/email-config.controller.spec.js +0 -85
- package/cjs/controllers/email-send.controller.js +0 -128
- package/cjs/controllers/email-send.controller.spec.js +0 -139
- package/cjs/controllers/email-template.controller.js +0 -142
- package/cjs/controllers/email-template.controller.spec.js +0 -89
- package/cjs/controllers/index.js +0 -20
- package/cjs/docs/email-swagger.config.js +0 -116
- package/cjs/docs/email-swagger.config.spec.js +0 -62
- package/cjs/docs/index.js +0 -11
- package/cjs/dtos/email-config.dto.js +0 -212
- package/cjs/dtos/email-send.dto.js +0 -354
- package/cjs/dtos/email-template.dto.js +0 -252
- package/cjs/dtos/index.js +0 -20
- package/cjs/entities/email-config-with-company.entity.js +0 -63
- package/cjs/entities/email-config.entity.js +0 -114
- package/cjs/entities/email-template-with-company.entity.js +0 -65
- package/cjs/entities/email-template.entity.js +0 -136
- package/cjs/entities/index.js +0 -56
- package/cjs/entities/index.spec.js +0 -18
- package/cjs/enums/email-provider-type.enum.js +0 -18
- package/cjs/enums/index.js +0 -18
- package/cjs/index.js +0 -28
- package/cjs/interfaces/email-config.interface.js +0 -4
- package/cjs/interfaces/email-module-options.interface.js +0 -4
- package/cjs/interfaces/email-provider.interface.js +0 -4
- package/cjs/interfaces/email-template.interface.js +0 -4
- package/cjs/interfaces/index.js +0 -21
- package/cjs/modules/email.module.js +0 -122
- package/cjs/modules/email.module.spec.js +0 -142
- package/cjs/modules/index.js +0 -18
- package/cjs/providers/email-factory.service.js +0 -113
- package/cjs/providers/email-factory.service.spec.js +0 -242
- package/cjs/providers/email-provider.registry.js +0 -41
- package/cjs/providers/email-provider.registry.spec.js +0 -58
- package/cjs/providers/index.js +0 -22
- package/cjs/providers/mailgun-provider.js +0 -119
- package/cjs/providers/mailgun-provider.spec.js +0 -244
- package/cjs/providers/sendgrid-provider.js +0 -129
- package/cjs/providers/sendgrid-provider.spec.js +0 -346
- package/cjs/providers/smtp-provider.js +0 -164
- package/cjs/providers/smtp-provider.spec.js +0 -327
- package/cjs/services/email-config.service.js +0 -71
- package/cjs/services/email-config.service.spec.js +0 -69
- package/cjs/services/email-datasource.provider.js +0 -84
- package/cjs/services/email-datasource.provider.spec.js +0 -135
- package/cjs/services/email-provider-config.service.js +0 -159
- package/cjs/services/email-provider-config.service.spec.js +0 -269
- package/cjs/services/email-send.service.js +0 -315
- package/cjs/services/email-send.service.spec.js +0 -614
- package/cjs/services/email-template.service.js +0 -144
- package/cjs/services/email-template.service.spec.js +0 -261
- package/cjs/services/index.js +0 -22
- package/cjs/utils/email-templates.util.js +0 -64
- package/cjs/utils/email-templates.util.spec.js +0 -61
- package/cjs/utils/index.js +0 -18
- package/fesm/config/email.constants.js +0 -4
- package/fesm/config/event-actions.js +0 -13
- package/fesm/config/message-keys.js +0 -18
- package/fesm/controllers/email-config.controller.js +0 -101
- package/fesm/controllers/email-config.controller.spec.js +0 -81
- package/fesm/controllers/email-send.controller.js +0 -118
- package/fesm/controllers/email-send.controller.spec.js +0 -135
- package/fesm/controllers/email-template.controller.js +0 -132
- package/fesm/controllers/email-template.controller.spec.js +0 -85
- package/fesm/docs/email-swagger.config.js +0 -109
- package/fesm/docs/email-swagger.config.spec.js +0 -58
- package/fesm/dtos/email-config.dto.js +0 -191
- package/fesm/dtos/email-send.dto.js +0 -324
- package/fesm/dtos/email-template.dto.js +0 -231
- package/fesm/entities/email-config-with-company.entity.js +0 -53
- package/fesm/entities/email-config.entity.js +0 -104
- package/fesm/entities/email-template-with-company.entity.js +0 -55
- package/fesm/entities/email-template.entity.js +0 -126
- package/fesm/entities/index.spec.js +0 -14
- package/fesm/enums/email-provider-type.enum.js +0 -8
- package/fesm/interfaces/email-config.interface.js +0 -1
- package/fesm/interfaces/email-module-options.interface.js +0 -1
- package/fesm/interfaces/email-provider.interface.js +0 -1
- package/fesm/interfaces/email-template.interface.js +0 -1
- package/fesm/modules/email.module.js +0 -112
- package/fesm/modules/email.module.spec.js +0 -138
- package/fesm/providers/email-factory.service.js +0 -103
- package/fesm/providers/email-factory.service.spec.js +0 -238
- package/fesm/providers/email-provider.registry.js +0 -31
- package/fesm/providers/email-provider.registry.spec.js +0 -54
- package/fesm/providers/mailgun-provider.js +0 -109
- package/fesm/providers/mailgun-provider.spec.js +0 -240
- package/fesm/providers/sendgrid-provider.js +0 -119
- package/fesm/providers/sendgrid-provider.spec.js +0 -342
- package/fesm/providers/smtp-provider.js +0 -113
- package/fesm/providers/smtp-provider.spec.js +0 -282
- package/fesm/services/email-config.service.js +0 -61
- package/fesm/services/email-config.service.spec.js +0 -65
- package/fesm/services/email-datasource.provider.js +0 -74
- package/fesm/services/email-datasource.provider.spec.js +0 -131
- package/fesm/services/email-provider-config.service.js +0 -149
- package/fesm/services/email-provider-config.service.spec.js +0 -265
- package/fesm/services/email-send.service.js +0 -305
- package/fesm/services/email-send.service.spec.js +0 -610
- package/fesm/services/email-template.service.js +0 -134
- package/fesm/services/email-template.service.spec.js +0 -257
- package/fesm/utils/email-templates.util.js +0 -47
- package/fesm/utils/email-templates.util.spec.js +0 -57
- package/fesm/utils/index.js +0 -1
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
get EmailAttachmentDto () {
|
|
13
|
-
return EmailAttachmentDto;
|
|
14
|
-
},
|
|
15
|
-
get EmailSendResultDto () {
|
|
16
|
-
return EmailSendResultDto;
|
|
17
|
-
},
|
|
18
|
-
get IsEmailOrEmailArrayConstraint () {
|
|
19
|
-
return IsEmailOrEmailArrayConstraint;
|
|
20
|
-
},
|
|
21
|
-
get SendEmailDto () {
|
|
22
|
-
return SendEmailDto;
|
|
23
|
-
},
|
|
24
|
-
get SendTemplateEmailDto () {
|
|
25
|
-
return SendTemplateEmailDto;
|
|
26
|
-
},
|
|
27
|
-
get TestEmailDto () {
|
|
28
|
-
return TestEmailDto;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const _swagger = require("@nestjs/swagger");
|
|
32
|
-
const _classvalidator = require("class-validator");
|
|
33
|
-
const _classtransformer = require("class-transformer");
|
|
34
|
-
function _define_property(obj, key, value) {
|
|
35
|
-
if (key in obj) {
|
|
36
|
-
Object.defineProperty(obj, key, {
|
|
37
|
-
value: value,
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
writable: true
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
obj[key] = value;
|
|
44
|
-
}
|
|
45
|
-
return obj;
|
|
46
|
-
}
|
|
47
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
48
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
49
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
50
|
-
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;
|
|
51
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
52
|
-
}
|
|
53
|
-
function _ts_metadata(k, v) {
|
|
54
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
55
|
-
}
|
|
56
|
-
let IsEmailOrEmailArrayConstraint = class IsEmailOrEmailArrayConstraint {
|
|
57
|
-
validate(value) {
|
|
58
|
-
if (typeof value === 'string') {
|
|
59
|
-
return this.emailRegex.test(value);
|
|
60
|
-
}
|
|
61
|
-
if (Array.isArray(value)) {
|
|
62
|
-
return value.length > 0 && value.every((email)=>typeof email === 'string' && this.emailRegex.test(email));
|
|
63
|
-
}
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
defaultMessage(args) {
|
|
67
|
-
const value = args.value;
|
|
68
|
-
if (Array.isArray(value)) {
|
|
69
|
-
const invalidEmails = value.filter((v)=>typeof v !== 'string' || !this.emailRegex.test(v));
|
|
70
|
-
return `Invalid email(s) in array: ${invalidEmails.join(', ')}`;
|
|
71
|
-
}
|
|
72
|
-
return `${args.property} must be a valid email address or array of email addresses`;
|
|
73
|
-
}
|
|
74
|
-
constructor(){
|
|
75
|
-
_define_property(this, "emailRegex", /^[^\s@]+@[^\s@]+\.[^\s@]+$/);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
IsEmailOrEmailArrayConstraint = _ts_decorate([
|
|
79
|
-
(0, _classvalidator.ValidatorConstraint)({
|
|
80
|
-
name: 'isEmailOrEmailArray',
|
|
81
|
-
async: false
|
|
82
|
-
})
|
|
83
|
-
], IsEmailOrEmailArrayConstraint);
|
|
84
|
-
function IsEmailOrEmailArray(validationOptions) {
|
|
85
|
-
return function(object, propertyName) {
|
|
86
|
-
(0, _classvalidator.registerDecorator)({
|
|
87
|
-
name: 'isEmailOrEmailArray',
|
|
88
|
-
target: object.constructor,
|
|
89
|
-
propertyName,
|
|
90
|
-
options: validationOptions,
|
|
91
|
-
validator: IsEmailOrEmailArrayConstraint
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function RequireTemplateIdOrSlug(validationOptions) {
|
|
96
|
-
return function(object, propertyName) {
|
|
97
|
-
(0, _classvalidator.registerDecorator)({
|
|
98
|
-
name: 'requireTemplateIdOrSlug',
|
|
99
|
-
target: object.constructor,
|
|
100
|
-
propertyName,
|
|
101
|
-
options: validationOptions,
|
|
102
|
-
validator: {
|
|
103
|
-
validate (_value, args) {
|
|
104
|
-
const obj = args.object;
|
|
105
|
-
return !!(obj.templateId || obj.templateSlug);
|
|
106
|
-
},
|
|
107
|
-
defaultMessage () {
|
|
108
|
-
return 'Either templateId or templateSlug must be provided';
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
let EmailAttachmentDto = class EmailAttachmentDto {
|
|
115
|
-
constructor(){
|
|
116
|
-
_define_property(this, "filename", void 0);
|
|
117
|
-
_define_property(this, "content", void 0);
|
|
118
|
-
_define_property(this, "contentType", void 0);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
_ts_decorate([
|
|
122
|
-
(0, _swagger.ApiProperty)({
|
|
123
|
-
example: 'document.pdf'
|
|
124
|
-
}),
|
|
125
|
-
(0, _classvalidator.IsString)(),
|
|
126
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
127
|
-
_ts_metadata("design:type", String)
|
|
128
|
-
], EmailAttachmentDto.prototype, "filename", void 0);
|
|
129
|
-
_ts_decorate([
|
|
130
|
-
(0, _swagger.ApiProperty)({
|
|
131
|
-
description: 'Base64 encoded content'
|
|
132
|
-
}),
|
|
133
|
-
(0, _classvalidator.IsString)(),
|
|
134
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
135
|
-
_ts_metadata("design:type", String)
|
|
136
|
-
], EmailAttachmentDto.prototype, "content", void 0);
|
|
137
|
-
_ts_decorate([
|
|
138
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
139
|
-
example: 'application/pdf'
|
|
140
|
-
}),
|
|
141
|
-
(0, _classvalidator.IsString)(),
|
|
142
|
-
(0, _classvalidator.IsOptional)(),
|
|
143
|
-
_ts_metadata("design:type", String)
|
|
144
|
-
], EmailAttachmentDto.prototype, "contentType", void 0);
|
|
145
|
-
/** Base class for common email fields (recipients, sender, attachments) */ let BaseEmailDto = class BaseEmailDto {
|
|
146
|
-
constructor(){
|
|
147
|
-
_define_property(this, "to", void 0);
|
|
148
|
-
_define_property(this, "cc", void 0);
|
|
149
|
-
_define_property(this, "bcc", void 0);
|
|
150
|
-
_define_property(this, "from", void 0);
|
|
151
|
-
_define_property(this, "fromName", void 0);
|
|
152
|
-
_define_property(this, "replyTo", void 0);
|
|
153
|
-
_define_property(this, "emailConfigId", void 0);
|
|
154
|
-
_define_property(this, "attachments", void 0);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
_ts_decorate([
|
|
158
|
-
(0, _swagger.ApiProperty)({
|
|
159
|
-
example: 'user@example.com',
|
|
160
|
-
description: 'Recipient email(s) - single email or array of emails',
|
|
161
|
-
oneOf: [
|
|
162
|
-
{
|
|
163
|
-
type: 'string'
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
type: 'array',
|
|
167
|
-
items: {
|
|
168
|
-
type: 'string'
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
}),
|
|
173
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
174
|
-
IsEmailOrEmailArray(),
|
|
175
|
-
_ts_metadata("design:type", Object)
|
|
176
|
-
], BaseEmailDto.prototype, "to", void 0);
|
|
177
|
-
_ts_decorate([
|
|
178
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
179
|
-
description: 'CC recipients - single email or array'
|
|
180
|
-
}),
|
|
181
|
-
(0, _classvalidator.IsOptional)(),
|
|
182
|
-
IsEmailOrEmailArray(),
|
|
183
|
-
_ts_metadata("design:type", Object)
|
|
184
|
-
], BaseEmailDto.prototype, "cc", void 0);
|
|
185
|
-
_ts_decorate([
|
|
186
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
187
|
-
description: 'BCC recipients - single email or array'
|
|
188
|
-
}),
|
|
189
|
-
(0, _classvalidator.IsOptional)(),
|
|
190
|
-
IsEmailOrEmailArray(),
|
|
191
|
-
_ts_metadata("design:type", Object)
|
|
192
|
-
], BaseEmailDto.prototype, "bcc", void 0);
|
|
193
|
-
_ts_decorate([
|
|
194
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
195
|
-
example: 'sender@example.com'
|
|
196
|
-
}),
|
|
197
|
-
(0, _classvalidator.IsEmail)(),
|
|
198
|
-
(0, _classvalidator.IsOptional)(),
|
|
199
|
-
_ts_metadata("design:type", String)
|
|
200
|
-
], BaseEmailDto.prototype, "from", void 0);
|
|
201
|
-
_ts_decorate([
|
|
202
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
203
|
-
example: 'FLUSYS'
|
|
204
|
-
}),
|
|
205
|
-
(0, _classvalidator.IsString)(),
|
|
206
|
-
(0, _classvalidator.IsOptional)(),
|
|
207
|
-
_ts_metadata("design:type", String)
|
|
208
|
-
], BaseEmailDto.prototype, "fromName", void 0);
|
|
209
|
-
_ts_decorate([
|
|
210
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
211
|
-
example: 'reply@example.com'
|
|
212
|
-
}),
|
|
213
|
-
(0, _classvalidator.IsEmail)(),
|
|
214
|
-
(0, _classvalidator.IsOptional)(),
|
|
215
|
-
_ts_metadata("design:type", String)
|
|
216
|
-
], BaseEmailDto.prototype, "replyTo", void 0);
|
|
217
|
-
_ts_decorate([
|
|
218
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
219
|
-
description: 'Email configuration ID to use'
|
|
220
|
-
}),
|
|
221
|
-
(0, _classvalidator.IsUUID)(),
|
|
222
|
-
(0, _classvalidator.IsOptional)(),
|
|
223
|
-
_ts_metadata("design:type", String)
|
|
224
|
-
], BaseEmailDto.prototype, "emailConfigId", void 0);
|
|
225
|
-
_ts_decorate([
|
|
226
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
227
|
-
type: [
|
|
228
|
-
EmailAttachmentDto
|
|
229
|
-
]
|
|
230
|
-
}),
|
|
231
|
-
(0, _classvalidator.IsArray)(),
|
|
232
|
-
(0, _classvalidator.ValidateNested)({
|
|
233
|
-
each: true
|
|
234
|
-
}),
|
|
235
|
-
(0, _classtransformer.Type)(()=>EmailAttachmentDto),
|
|
236
|
-
(0, _classvalidator.IsOptional)(),
|
|
237
|
-
_ts_metadata("design:type", Array)
|
|
238
|
-
], BaseEmailDto.prototype, "attachments", void 0);
|
|
239
|
-
let SendEmailDto = class SendEmailDto extends BaseEmailDto {
|
|
240
|
-
constructor(...args){
|
|
241
|
-
super(...args), _define_property(this, "subject", void 0), _define_property(this, "html", void 0), _define_property(this, "text", void 0);
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
_ts_decorate([
|
|
245
|
-
(0, _swagger.ApiProperty)({
|
|
246
|
-
example: 'Welcome to our platform!'
|
|
247
|
-
}),
|
|
248
|
-
(0, _classvalidator.IsString)(),
|
|
249
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
250
|
-
_ts_metadata("design:type", String)
|
|
251
|
-
], SendEmailDto.prototype, "subject", void 0);
|
|
252
|
-
_ts_decorate([
|
|
253
|
-
(0, _swagger.ApiProperty)({
|
|
254
|
-
example: '<h1>Hello!</h1><p>Welcome to our platform.</p>'
|
|
255
|
-
}),
|
|
256
|
-
(0, _classvalidator.IsString)(),
|
|
257
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
258
|
-
_ts_metadata("design:type", String)
|
|
259
|
-
], SendEmailDto.prototype, "html", void 0);
|
|
260
|
-
_ts_decorate([
|
|
261
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
262
|
-
example: 'Hello! Welcome to our platform.'
|
|
263
|
-
}),
|
|
264
|
-
(0, _classvalidator.IsString)(),
|
|
265
|
-
(0, _classvalidator.IsOptional)(),
|
|
266
|
-
_ts_metadata("design:type", String)
|
|
267
|
-
], SendEmailDto.prototype, "text", void 0);
|
|
268
|
-
let SendTemplateEmailDto = class SendTemplateEmailDto extends BaseEmailDto {
|
|
269
|
-
constructor(...args){
|
|
270
|
-
super(...args), _define_property(this, "templateId", void 0), _define_property(this, "templateSlug", void 0), _define_property(this, "variables", void 0);
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
_ts_decorate([
|
|
274
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
275
|
-
description: 'Template ID (required if templateSlug not provided)'
|
|
276
|
-
}),
|
|
277
|
-
(0, _classvalidator.IsUUID)(),
|
|
278
|
-
(0, _classvalidator.IsOptional)(),
|
|
279
|
-
RequireTemplateIdOrSlug({
|
|
280
|
-
message: 'Either templateId or templateSlug must be provided'
|
|
281
|
-
}),
|
|
282
|
-
_ts_metadata("design:type", String)
|
|
283
|
-
], SendTemplateEmailDto.prototype, "templateId", void 0);
|
|
284
|
-
_ts_decorate([
|
|
285
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
286
|
-
example: 'welcome-email',
|
|
287
|
-
description: 'Template slug (required if templateId not provided)'
|
|
288
|
-
}),
|
|
289
|
-
(0, _classvalidator.IsString)(),
|
|
290
|
-
(0, _classvalidator.IsOptional)(),
|
|
291
|
-
_ts_metadata("design:type", String)
|
|
292
|
-
], SendTemplateEmailDto.prototype, "templateSlug", void 0);
|
|
293
|
-
_ts_decorate([
|
|
294
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
295
|
-
type: 'object',
|
|
296
|
-
additionalProperties: true,
|
|
297
|
-
example: {
|
|
298
|
-
userName: 'John',
|
|
299
|
-
activationLink: 'https://...'
|
|
300
|
-
},
|
|
301
|
-
description: 'Template variables to interpolate'
|
|
302
|
-
}),
|
|
303
|
-
(0, _classvalidator.IsObject)(),
|
|
304
|
-
(0, _classvalidator.IsOptional)(),
|
|
305
|
-
_ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
|
|
306
|
-
], SendTemplateEmailDto.prototype, "variables", void 0);
|
|
307
|
-
let TestEmailDto = class TestEmailDto {
|
|
308
|
-
constructor(){
|
|
309
|
-
_define_property(this, "emailConfigId", void 0);
|
|
310
|
-
_define_property(this, "recipient", void 0);
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
_ts_decorate([
|
|
314
|
-
(0, _swagger.ApiProperty)({
|
|
315
|
-
description: 'Email configuration ID'
|
|
316
|
-
}),
|
|
317
|
-
(0, _classvalidator.IsUUID)(),
|
|
318
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
319
|
-
_ts_metadata("design:type", String)
|
|
320
|
-
], TestEmailDto.prototype, "emailConfigId", void 0);
|
|
321
|
-
_ts_decorate([
|
|
322
|
-
(0, _swagger.ApiProperty)({
|
|
323
|
-
example: 'test@example.com',
|
|
324
|
-
description: 'Test recipient'
|
|
325
|
-
}),
|
|
326
|
-
(0, _classvalidator.IsEmail)(),
|
|
327
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
328
|
-
_ts_metadata("design:type", String)
|
|
329
|
-
], TestEmailDto.prototype, "recipient", void 0);
|
|
330
|
-
let EmailSendResultDto = class EmailSendResultDto {
|
|
331
|
-
constructor(){
|
|
332
|
-
_define_property(this, "success", void 0);
|
|
333
|
-
_define_property(this, "messageId", void 0);
|
|
334
|
-
_define_property(this, "error", void 0);
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
_ts_decorate([
|
|
338
|
-
(0, _swagger.ApiProperty)({
|
|
339
|
-
example: true
|
|
340
|
-
}),
|
|
341
|
-
_ts_metadata("design:type", Boolean)
|
|
342
|
-
], EmailSendResultDto.prototype, "success", void 0);
|
|
343
|
-
_ts_decorate([
|
|
344
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
345
|
-
example: '<message-id@mail.example.com>'
|
|
346
|
-
}),
|
|
347
|
-
_ts_metadata("design:type", String)
|
|
348
|
-
], EmailSendResultDto.prototype, "messageId", void 0);
|
|
349
|
-
_ts_decorate([
|
|
350
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
351
|
-
example: 'Connection refused'
|
|
352
|
-
}),
|
|
353
|
-
_ts_metadata("design:type", String)
|
|
354
|
-
], EmailSendResultDto.prototype, "error", void 0);
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
get CreateEmailTemplateDto () {
|
|
13
|
-
return CreateEmailTemplateDto;
|
|
14
|
-
},
|
|
15
|
-
get EmailTemplateResponseDto () {
|
|
16
|
-
return EmailTemplateResponseDto;
|
|
17
|
-
},
|
|
18
|
-
get UpdateEmailTemplateDto () {
|
|
19
|
-
return UpdateEmailTemplateDto;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _dtos = require("@flusys/nestjs-shared/dtos");
|
|
23
|
-
const _swagger = require("@nestjs/swagger");
|
|
24
|
-
const _classtransformer = require("class-transformer");
|
|
25
|
-
const _classvalidator = require("class-validator");
|
|
26
|
-
function _define_property(obj, key, value) {
|
|
27
|
-
if (key in obj) {
|
|
28
|
-
Object.defineProperty(obj, key, {
|
|
29
|
-
value: value,
|
|
30
|
-
enumerable: true,
|
|
31
|
-
configurable: true,
|
|
32
|
-
writable: true
|
|
33
|
-
});
|
|
34
|
-
} else {
|
|
35
|
-
obj[key] = value;
|
|
36
|
-
}
|
|
37
|
-
return obj;
|
|
38
|
-
}
|
|
39
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
40
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
41
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
42
|
-
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;
|
|
43
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
44
|
-
}
|
|
45
|
-
function _ts_metadata(k, v) {
|
|
46
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
47
|
-
}
|
|
48
|
-
let CreateEmailTemplateDto = class CreateEmailTemplateDto {
|
|
49
|
-
constructor(){
|
|
50
|
-
_define_property(this, "name", void 0);
|
|
51
|
-
_define_property(this, "slug", void 0);
|
|
52
|
-
_define_property(this, "description", void 0);
|
|
53
|
-
_define_property(this, "subject", void 0);
|
|
54
|
-
_define_property(this, "schema", void 0);
|
|
55
|
-
_define_property(this, "htmlContent", void 0);
|
|
56
|
-
_define_property(this, "textContent", void 0);
|
|
57
|
-
_define_property(this, "isActive", void 0);
|
|
58
|
-
_define_property(this, "isHtml", void 0);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
_ts_decorate([
|
|
62
|
-
(0, _swagger.ApiProperty)({
|
|
63
|
-
example: 'Welcome Email'
|
|
64
|
-
}),
|
|
65
|
-
(0, _classvalidator.IsString)(),
|
|
66
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
67
|
-
(0, _classvalidator.MaxLength)(255),
|
|
68
|
-
_ts_metadata("design:type", String)
|
|
69
|
-
], CreateEmailTemplateDto.prototype, "name", void 0);
|
|
70
|
-
_ts_decorate([
|
|
71
|
-
(0, _swagger.ApiProperty)({
|
|
72
|
-
example: 'welcome-email'
|
|
73
|
-
}),
|
|
74
|
-
(0, _classvalidator.IsString)(),
|
|
75
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
76
|
-
(0, _classvalidator.MaxLength)(255),
|
|
77
|
-
_ts_metadata("design:type", String)
|
|
78
|
-
], CreateEmailTemplateDto.prototype, "slug", void 0);
|
|
79
|
-
_ts_decorate([
|
|
80
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
81
|
-
example: 'Email sent to new users upon registration'
|
|
82
|
-
}),
|
|
83
|
-
(0, _classvalidator.IsString)(),
|
|
84
|
-
(0, _classvalidator.IsOptional)(),
|
|
85
|
-
(0, _classvalidator.MaxLength)(500),
|
|
86
|
-
_ts_metadata("design:type", String)
|
|
87
|
-
], CreateEmailTemplateDto.prototype, "description", void 0);
|
|
88
|
-
_ts_decorate([
|
|
89
|
-
(0, _swagger.ApiProperty)({
|
|
90
|
-
example: 'Welcome to {{appName}}!'
|
|
91
|
-
}),
|
|
92
|
-
(0, _classvalidator.IsString)(),
|
|
93
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
94
|
-
(0, _classvalidator.MaxLength)(500),
|
|
95
|
-
_ts_metadata("design:type", String)
|
|
96
|
-
], CreateEmailTemplateDto.prototype, "subject", void 0);
|
|
97
|
-
_ts_decorate([
|
|
98
|
-
(0, _swagger.ApiProperty)({
|
|
99
|
-
type: 'object',
|
|
100
|
-
additionalProperties: true,
|
|
101
|
-
example: {
|
|
102
|
-
id: 'template-1',
|
|
103
|
-
sections: []
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
(0, _classvalidator.IsObject)(),
|
|
107
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
108
|
-
_ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
|
|
109
|
-
], CreateEmailTemplateDto.prototype, "schema", void 0);
|
|
110
|
-
_ts_decorate([
|
|
111
|
-
(0, _swagger.ApiProperty)({
|
|
112
|
-
example: '<h1>Welcome {{userName}}!</h1>'
|
|
113
|
-
}),
|
|
114
|
-
(0, _classvalidator.IsString)(),
|
|
115
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
116
|
-
_ts_metadata("design:type", String)
|
|
117
|
-
], CreateEmailTemplateDto.prototype, "htmlContent", void 0);
|
|
118
|
-
_ts_decorate([
|
|
119
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
120
|
-
example: 'Welcome {{userName}}!'
|
|
121
|
-
}),
|
|
122
|
-
(0, _classvalidator.IsString)(),
|
|
123
|
-
(0, _classvalidator.IsOptional)(),
|
|
124
|
-
_ts_metadata("design:type", String)
|
|
125
|
-
], CreateEmailTemplateDto.prototype, "textContent", void 0);
|
|
126
|
-
_ts_decorate([
|
|
127
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
128
|
-
example: true
|
|
129
|
-
}),
|
|
130
|
-
(0, _classvalidator.IsBoolean)(),
|
|
131
|
-
(0, _classvalidator.IsOptional)(),
|
|
132
|
-
_ts_metadata("design:type", Boolean)
|
|
133
|
-
], CreateEmailTemplateDto.prototype, "isActive", void 0);
|
|
134
|
-
_ts_decorate([
|
|
135
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
136
|
-
example: true
|
|
137
|
-
}),
|
|
138
|
-
(0, _classvalidator.IsBoolean)(),
|
|
139
|
-
(0, _classvalidator.IsOptional)(),
|
|
140
|
-
_ts_metadata("design:type", Boolean)
|
|
141
|
-
], CreateEmailTemplateDto.prototype, "isHtml", void 0);
|
|
142
|
-
let UpdateEmailTemplateDto = class UpdateEmailTemplateDto extends (0, _swagger.PartialType)(CreateEmailTemplateDto) {
|
|
143
|
-
constructor(...args){
|
|
144
|
-
super(...args), _define_property(this, "id", void 0);
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
_ts_decorate([
|
|
148
|
-
(0, _swagger.ApiProperty)({
|
|
149
|
-
example: '123e4567-e89b-12d3-a456-426614174000'
|
|
150
|
-
}),
|
|
151
|
-
(0, _classvalidator.IsString)(),
|
|
152
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
153
|
-
_ts_metadata("design:type", String)
|
|
154
|
-
], UpdateEmailTemplateDto.prototype, "id", void 0);
|
|
155
|
-
let EmailTemplateResponseDto = class EmailTemplateResponseDto extends _dtos.IdentityResponseDto {
|
|
156
|
-
constructor(...args){
|
|
157
|
-
super(...args), _define_property(this, "name", void 0), _define_property(this, "slug", void 0), _define_property(this, "description", void 0), _define_property(this, "subject", void 0), _define_property(this, "schema", void 0), _define_property(this, "htmlContent", void 0), _define_property(this, "textContent", void 0), _define_property(this, "schemaVersion", void 0), _define_property(this, "isActive", void 0), _define_property(this, "isHtml", void 0);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
_ts_decorate([
|
|
161
|
-
(0, _swagger.ApiProperty)({
|
|
162
|
-
description: 'Human-readable name of the email template',
|
|
163
|
-
example: 'Welcome Email'
|
|
164
|
-
}),
|
|
165
|
-
(0, _classtransformer.Expose)(),
|
|
166
|
-
_ts_metadata("design:type", String)
|
|
167
|
-
], EmailTemplateResponseDto.prototype, "name", void 0);
|
|
168
|
-
_ts_decorate([
|
|
169
|
-
(0, _swagger.ApiProperty)({
|
|
170
|
-
description: 'URL-friendly unique identifier for the template',
|
|
171
|
-
example: 'welcome-email'
|
|
172
|
-
}),
|
|
173
|
-
(0, _classtransformer.Expose)(),
|
|
174
|
-
_ts_metadata("design:type", String)
|
|
175
|
-
], EmailTemplateResponseDto.prototype, "slug", void 0);
|
|
176
|
-
_ts_decorate([
|
|
177
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
178
|
-
description: 'Optional description of the template purpose',
|
|
179
|
-
example: 'Sent to new users upon successful registration',
|
|
180
|
-
nullable: true
|
|
181
|
-
}),
|
|
182
|
-
(0, _classtransformer.Expose)(),
|
|
183
|
-
_ts_metadata("design:type", Object)
|
|
184
|
-
], EmailTemplateResponseDto.prototype, "description", void 0);
|
|
185
|
-
_ts_decorate([
|
|
186
|
-
(0, _swagger.ApiProperty)({
|
|
187
|
-
description: 'Email subject line, supports template variables',
|
|
188
|
-
example: 'Welcome to Acme, {{firstName}}!'
|
|
189
|
-
}),
|
|
190
|
-
(0, _classtransformer.Expose)(),
|
|
191
|
-
_ts_metadata("design:type", String)
|
|
192
|
-
], EmailTemplateResponseDto.prototype, "subject", void 0);
|
|
193
|
-
_ts_decorate([
|
|
194
|
-
(0, _swagger.ApiProperty)({
|
|
195
|
-
description: 'JSON schema defining the variables accepted by this template',
|
|
196
|
-
type: 'object',
|
|
197
|
-
additionalProperties: true,
|
|
198
|
-
example: {
|
|
199
|
-
firstName: {
|
|
200
|
-
type: 'string'
|
|
201
|
-
},
|
|
202
|
-
activationUrl: {
|
|
203
|
-
type: 'string',
|
|
204
|
-
format: 'uri'
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}),
|
|
208
|
-
(0, _classtransformer.Expose)(),
|
|
209
|
-
_ts_metadata("design:type", typeof Record === "undefined" ? Object : Record)
|
|
210
|
-
], EmailTemplateResponseDto.prototype, "schema", void 0);
|
|
211
|
-
_ts_decorate([
|
|
212
|
-
(0, _swagger.ApiProperty)({
|
|
213
|
-
description: 'HTML body of the email template',
|
|
214
|
-
example: '<h1>Welcome, {{firstName}}!</h1><p>Click <a href="{{activationUrl}}">here</a> to activate.</p>'
|
|
215
|
-
}),
|
|
216
|
-
(0, _classtransformer.Expose)(),
|
|
217
|
-
_ts_metadata("design:type", String)
|
|
218
|
-
], EmailTemplateResponseDto.prototype, "htmlContent", void 0);
|
|
219
|
-
_ts_decorate([
|
|
220
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
221
|
-
description: 'Plain-text fallback body for email clients that do not render HTML',
|
|
222
|
-
example: 'Welcome, {{firstName}}! Activate your account at {{activationUrl}}',
|
|
223
|
-
nullable: true
|
|
224
|
-
}),
|
|
225
|
-
(0, _classtransformer.Expose)(),
|
|
226
|
-
_ts_metadata("design:type", Object)
|
|
227
|
-
], EmailTemplateResponseDto.prototype, "textContent", void 0);
|
|
228
|
-
_ts_decorate([
|
|
229
|
-
(0, _swagger.ApiProperty)({
|
|
230
|
-
description: 'Version number of the schema definition for this template',
|
|
231
|
-
example: 1,
|
|
232
|
-
minimum: 1
|
|
233
|
-
}),
|
|
234
|
-
(0, _classtransformer.Expose)(),
|
|
235
|
-
_ts_metadata("design:type", Number)
|
|
236
|
-
], EmailTemplateResponseDto.prototype, "schemaVersion", void 0);
|
|
237
|
-
_ts_decorate([
|
|
238
|
-
(0, _swagger.ApiProperty)({
|
|
239
|
-
description: 'Whether this template is currently active and usable',
|
|
240
|
-
example: true
|
|
241
|
-
}),
|
|
242
|
-
(0, _classtransformer.Expose)(),
|
|
243
|
-
_ts_metadata("design:type", Boolean)
|
|
244
|
-
], EmailTemplateResponseDto.prototype, "isActive", void 0);
|
|
245
|
-
_ts_decorate([
|
|
246
|
-
(0, _swagger.ApiProperty)({
|
|
247
|
-
description: 'Whether this template renders as HTML; false means plain-text only',
|
|
248
|
-
example: true
|
|
249
|
-
}),
|
|
250
|
-
(0, _classtransformer.Expose)(),
|
|
251
|
-
_ts_metadata("design:type", Boolean)
|
|
252
|
-
], EmailTemplateResponseDto.prototype, "isHtml", void 0);
|
package/cjs/dtos/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
_export_star(require("./email-config.dto"), exports);
|
|
6
|
-
_export_star(require("./email-template.dto"), exports);
|
|
7
|
-
_export_star(require("./email-send.dto"), exports);
|
|
8
|
-
function _export_star(from, to) {
|
|
9
|
-
Object.keys(from).forEach(function(k) {
|
|
10
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
11
|
-
Object.defineProperty(to, k, {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function() {
|
|
14
|
-
return from[k];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return from;
|
|
20
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "EmailConfigWithCompany", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return EmailConfigWithCompany;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _typeorm = require("typeorm");
|
|
12
|
-
const _emailconfigentity = require("./email-config.entity");
|
|
13
|
-
function _define_property(obj, key, value) {
|
|
14
|
-
if (key in obj) {
|
|
15
|
-
Object.defineProperty(obj, key, {
|
|
16
|
-
value: value,
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true
|
|
20
|
-
});
|
|
21
|
-
} else {
|
|
22
|
-
obj[key] = value;
|
|
23
|
-
}
|
|
24
|
-
return obj;
|
|
25
|
-
}
|
|
26
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
27
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
29
|
-
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;
|
|
30
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
|
-
}
|
|
32
|
-
function _ts_metadata(k, v) {
|
|
33
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
34
|
-
}
|
|
35
|
-
let EmailConfigWithCompany = class EmailConfigWithCompany extends _emailconfigentity.EmailConfig {
|
|
36
|
-
constructor(...args){
|
|
37
|
-
super(...args), _define_property(this, "companyId", void 0);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
_ts_decorate([
|
|
41
|
-
(0, _typeorm.Column)({
|
|
42
|
-
type: 'uuid',
|
|
43
|
-
nullable: true,
|
|
44
|
-
name: 'company_id'
|
|
45
|
-
}),
|
|
46
|
-
_ts_metadata("design:type", Object)
|
|
47
|
-
], EmailConfigWithCompany.prototype, "companyId", void 0);
|
|
48
|
-
EmailConfigWithCompany = _ts_decorate([
|
|
49
|
-
(0, _typeorm.Entity)({
|
|
50
|
-
name: 'email_config'
|
|
51
|
-
}),
|
|
52
|
-
(0, _typeorm.Index)([
|
|
53
|
-
'companyId'
|
|
54
|
-
]),
|
|
55
|
-
(0, _typeorm.Index)([
|
|
56
|
-
'companyId',
|
|
57
|
-
'name'
|
|
58
|
-
]),
|
|
59
|
-
(0, _typeorm.Index)([
|
|
60
|
-
'companyId',
|
|
61
|
-
'isActive'
|
|
62
|
-
])
|
|
63
|
-
], EmailConfigWithCompany);
|