@servicelabsco/nestjs-utility-services 1.2.30 → 1.2.31
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/dist/auth/middlewares/jwt.middleware.js +2 -1
- package/dist/auth/middlewares/jwt.middleware.js.map +1 -1
- package/dist/common/libraries/platform.utility.d.ts +2 -0
- package/dist/common/libraries/platform.utility.js +3 -0
- package/dist/common/libraries/platform.utility.js.map +1 -1
- package/dist/config/entity.constants.d.ts +4 -0
- package/dist/config/entity.constants.js +4 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/config/sentry.config.d.ts +7 -0
- package/dist/config/sentry.config.js +9 -0
- package/dist/config/sentry.config.js.map +1 -0
- package/dist/main.js +8 -0
- package/dist/main.js.map +1 -1
- package/dist/migrations/1700392547578-CreateMailRecipientTable.d.ts +5 -0
- package/dist/migrations/1700392547578-CreateMailRecipientTable.js +20 -0
- package/dist/migrations/1700392547578-CreateMailRecipientTable.js.map +1 -0
- package/dist/migrations/1700393526749-AddBodySysMailLogsTable.ts.d.ts +5 -0
- package/dist/migrations/1700393526749-AddBodySysMailLogsTable.ts.js +16 -0
- package/dist/migrations/1700393526749-AddBodySysMailLogsTable.ts.js.map +1 -0
- package/dist/migrations/1700394466332-CreateMailEventTable.d.ts +5 -0
- package/dist/migrations/1700394466332-CreateMailEventTable.js +22 -0
- package/dist/migrations/1700394466332-CreateMailEventTable.js.map +1 -0
- package/dist/migrations/1700401846961-RemoveToColumnSysMailLogsTable.ts.d.ts +5 -0
- package/dist/migrations/1700401846961-RemoveToColumnSysMailLogsTable.ts.js +15 -0
- package/dist/migrations/1700401846961-RemoveToColumnSysMailLogsTable.ts.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +1 -1
- package/dist/platformUtility/libraries/process.smtp.mail.d.ts +6 -1
- package/dist/platformUtility/libraries/process.smtp.mail.js +8 -7
- package/dist/platformUtility/libraries/process.smtp.mail.js.map +1 -1
- package/dist/platformUtility/services/mail.service.d.ts +6 -6
- package/dist/platformUtility/services/mail.service.js +33 -25
- package/dist/platformUtility/services/mail.service.js.map +1 -1
- package/dist/system/commands/index.d.ts +1 -0
- package/dist/system/commands/index.js +1 -0
- package/dist/system/commands/index.js.map +1 -1
- package/dist/system/commands/ses.event.tracking.command.d.ts +12 -0
- package/dist/system/commands/ses.event.tracking.command.js +70 -0
- package/dist/system/commands/ses.event.tracking.command.js.map +1 -0
- package/dist/system/dtos/index.d.ts +2 -0
- package/dist/system/dtos/index.js +2 -0
- package/dist/system/dtos/index.js.map +1 -1
- package/dist/system/dtos/mail.event.attributes.dto.d.ts +3 -0
- package/dist/system/dtos/mail.event.attributes.dto.js +8 -0
- package/dist/system/dtos/mail.event.attributes.dto.js.map +1 -0
- package/dist/system/dtos/mail.recipient.attributes.dto.d.ts +3 -0
- package/dist/system/dtos/mail.recipient.attributes.dto.js +8 -0
- package/dist/system/dtos/mail.recipient.attributes.dto.js.map +1 -0
- package/dist/system/entities/index.d.ts +2 -0
- package/dist/system/entities/index.js +2 -0
- package/dist/system/entities/index.js.map +1 -1
- package/dist/system/entities/mail.event.entity.d.ts +11 -0
- package/dist/system/entities/mail.event.entity.js +48 -0
- package/dist/system/entities/mail.event.entity.js.map +1 -0
- package/dist/system/entities/mail.log.entity.d.ts +2 -1
- package/dist/system/entities/mail.log.entity.js +6 -2
- package/dist/system/entities/mail.log.entity.js.map +1 -1
- package/dist/system/entities/mail.recipient.entity.d.ts +10 -0
- package/dist/system/entities/mail.recipient.entity.js +44 -0
- package/dist/system/entities/mail.recipient.entity.js.map +1 -0
- package/dist/system/es6.classes.d.ts +13 -4
- package/dist/system/es6.classes.js +20 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/index.d.ts +1 -0
- package/dist/system/index.js +1 -0
- package/dist/system/index.js.map +1 -1
- package/dist/system/interceptors/index.d.ts +1 -0
- package/dist/system/interceptors/index.js +18 -0
- package/dist/system/interceptors/index.js.map +1 -0
- package/dist/system/interceptors/sentry.interceptor.d.ts +5 -0
- package/dist/system/interceptors/sentry.interceptor.js +33 -0
- package/dist/system/interceptors/sentry.interceptor.js.map +1 -0
- package/dist/system/jobs/index.d.ts +2 -0
- package/dist/system/jobs/index.js +2 -0
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/jobs/mail.event.job.d.ts +9 -0
- package/dist/system/jobs/mail.event.job.js +30 -0
- package/dist/system/jobs/mail.event.job.js.map +1 -0
- package/dist/system/jobs/mail.recipient.job.d.ts +9 -0
- package/dist/system/jobs/mail.recipient.job.js +30 -0
- package/dist/system/jobs/mail.recipient.job.js.map +1 -0
- package/dist/system/services/es6.jobs.service.d.ts +5 -1
- package/dist/system/services/es6.jobs.service.js +9 -1
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/dist/system/subscribers/index.d.ts +2 -0
- package/dist/system/subscribers/index.js +2 -0
- package/dist/system/subscribers/index.js.map +1 -1
- package/dist/system/subscribers/mail.event.subscriber.d.ts +12 -0
- package/dist/system/subscribers/mail.event.subscriber.js +40 -0
- package/dist/system/subscribers/mail.event.subscriber.js.map +1 -0
- package/dist/system/subscribers/mail.recipient.subscriber.d.ts +12 -0
- package/dist/system/subscribers/mail.recipient.subscriber.js +40 -0
- package/dist/system/subscribers/mail.recipient.subscriber.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -1
@@ -15,12 +15,13 @@ const parse_bearer_token_1 = require("parse-bearer-token");
|
|
15
15
|
const operation_exception_1 = require("../../common/exceptions/operation.exception");
|
16
16
|
const auth_1 = require("../../common/libraries/auth");
|
17
17
|
const auth_service_1 = require("../services/auth.service");
|
18
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
18
19
|
let JwtMiddleware = class JwtMiddleware {
|
19
20
|
constructor(authService) {
|
20
21
|
this.authService = authService;
|
21
22
|
}
|
22
23
|
async use(req, res, next) {
|
23
|
-
|
24
|
+
const ip = platform_utility_1.PlatformUtility.getIpFromRequest(req);
|
24
25
|
if (auth_1.Auth.check())
|
25
26
|
return next();
|
26
27
|
const token = (0, parse_bearer_token_1.default)(req);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jwt.middleware.js","sourceRoot":"","sources":["../../../src/auth/middlewares/jwt.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4D;AAE5D,2DAAkD;AAClD,qFAAiF;AACjF,sDAAmD;AACnD,2DAAuD;
|
1
|
+
{"version":3,"file":"jwt.middleware.js","sourceRoot":"","sources":["../../../src/auth/middlewares/jwt.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4D;AAE5D,2DAAkD;AAClD,qFAAiF;AACjF,sDAAmD;AACnD,2DAAuD;AACvD,8EAA0E;AASnE,IAAM,aAAa,GAAnB,MAAM,aAAa;IAMtB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAazD,KAAK,CAAC,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAc;QACjD,MAAM,EAAE,GAAG,kCAAe,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAGjD,IAAI,WAAI,CAAC,KAAK,EAAE;YAAE,OAAO,IAAI,EAAE,CAAC;QAEhC,MAAM,KAAK,GAAG,IAAA,4BAAgB,EAAC,GAAG,CAAC,CAAC;QAEpC,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,EAAE,CAAC;QAE1B,MAAM,IAAI,GAAQ,MAAM,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAEvD,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,EAAE,CAAC;QAEzB,MAAM,YAAY,GAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAGxE,IAAI,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC;YAAE,MAAM,IAAI,wCAAkB,CAAC,wCAAwC,CAAC,CAAC;QAEzH,WAAI,CAAC,KAAK,CAAC,EAAE,GAAG,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAEtD,IAAI,EAAE,CAAC;IACX,CAAC;IAQD,KAAK,CAAC,kBAAkB,CAAC,KAAa;QAClC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO;YAAE,OAAO,KAAK,CAAC;QAE3B,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAEtC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC/B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAA;AA7DY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAOiC,0BAAW;GAN5C,aAAa,CA6DzB"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Request } from 'express';
|
1
2
|
import { SourceColumnDto } from '../../platformUtility/dtos/source.column.dto';
|
2
3
|
export declare class PlatformUtility {
|
3
4
|
static getConstantInstance(): {
|
@@ -31,4 +32,5 @@ export declare class PlatformUtility {
|
|
31
32
|
static compileHandlebar(content: string, context: any): string;
|
32
33
|
static getSourceData(source: SourceColumnDto): Promise<any>;
|
33
34
|
static removeSpecialChars(str: string): string;
|
35
|
+
static getIpFromRequest(req: Request): string | string[];
|
34
36
|
}
|
@@ -125,6 +125,9 @@ class PlatformUtility {
|
|
125
125
|
static removeSpecialChars(str) {
|
126
126
|
return str.replace(/[^a-zA-Z0-9 ]/g, '');
|
127
127
|
}
|
128
|
+
static getIpFromRequest(req) {
|
129
|
+
return req.headers['x-forwarded-for'] || req.ip || req.ips[0] || null;
|
130
|
+
}
|
128
131
|
}
|
129
132
|
exports.PlatformUtility = PlatformUtility;
|
130
133
|
//# sourceMappingURL=platform.utility.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"platform.utility.js","sourceRoot":"","sources":["../../../src/common/libraries/platform.utility.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"platform.utility.js","sourceRoot":"","sources":["../../../src/common/libraries/platform.utility.ts"],"names":[],"mappings":";;;AACA,2CAAqC;AACrC,wEAAgE;AAQhE,MAAa,eAAe;IAOxB,MAAM,CAAC,mBAAmB;QACtB,OAAO,4BAAiB,CAAC;IAC7B,CAAC;IASD,MAAM,CAAC,OAAO,CAAC,GAAW;QACtB,IAAI,CAAC,GAAG;YAAE,OAAO,GAAG,CAAC;QAErB,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE;YAC3D,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;QAC5B,CAAC,CAAC,CAAC;IACP,CAAC;IAUD,MAAM,CAAC,oBAAoB,CAAC,MAAc;QACtC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QAChD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IACzD,CAAC;IASD,MAAM,CAAC,mBAAmB,CAAC,GAAW,EAAE,cAAuB,KAAK;QAChE,MAAM,UAAU,GAAG,sDAAsD,CAAC;QAC1E,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAEnD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,gBAAgB,CAAC,OAAe,EAAE,OAAY;QACjD,MAAM,EAAE,GAAG,IAAA,oBAAO,EAAC,OAAO,CAAC,CAAC;QAC5B,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IASD,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAuB;QAC9C,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IASD,MAAM,CAAC,kBAAkB,CAAC,GAAW;QACjC,OAAO,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IAC7C,CAAC;IASD,MAAM,CAAC,gBAAgB,CAAC,GAAY;QAChC,OAAO,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IAC1E,CAAC;CACJ;AAvUD,0CAuUC"}
|
@@ -31,7 +31,9 @@ import { FormPreferenceEntity } from '../system/entities/form.preference.entity'
|
|
31
31
|
import { ListPreferenceEntity } from '../system/entities/list.preference.entity';
|
32
32
|
import { LookupTypeEntity } from '../system/entities/lookup.type.entity';
|
33
33
|
import { LookupValueEntity } from '../system/entities/lookup.value.entity';
|
34
|
+
import { MailEventEntity } from '../system/entities/mail.event.entity';
|
34
35
|
import { MailLogEntity } from '../system/entities/mail.log.entity';
|
36
|
+
import { MailRecipientEntity } from '../system/entities/mail.recipient.entity';
|
35
37
|
import { MailValidationEntity } from '../system/entities/mail.validation.entity';
|
36
38
|
import { MenuEntity } from '../system/entities/menu.entity';
|
37
39
|
import { MenuRoleEntity } from '../system/entities/menu.role.entity';
|
@@ -104,7 +106,9 @@ declare const entityConstants: {
|
|
104
106
|
adb199a467c1d3df2eee56ef45adde17: typeof ListPreferenceEntity;
|
105
107
|
'9efb14076dca6034ab4c3255c5c63aa2': typeof LookupTypeEntity;
|
106
108
|
ca12043141c4bbc3b08a13bd8dfa9bc8: typeof LookupValueEntity;
|
109
|
+
fcb3607be350ccc33c0aa96903297ed4: typeof MailEventEntity;
|
107
110
|
a3da8b74348b592a71fe3667f5d92954: typeof MailLogEntity;
|
111
|
+
cc6b09709a1955d294210e3ff4293bb8: typeof MailRecipientEntity;
|
108
112
|
'7c4d023bb9746e4bd0e2cf74e42dd6a5': typeof MailValidationEntity;
|
109
113
|
'1ef387eee5c23a8d3c8f6a3130e1c397': typeof MenuEntity;
|
110
114
|
'0357bfa9c9022c76f5302e2274e249fe': typeof MenuRoleEntity;
|
@@ -32,7 +32,9 @@ const form_preference_entity_1 = require("../system/entities/form.preference.ent
|
|
32
32
|
const list_preference_entity_1 = require("../system/entities/list.preference.entity");
|
33
33
|
const lookup_type_entity_1 = require("../system/entities/lookup.type.entity");
|
34
34
|
const lookup_value_entity_1 = require("../system/entities/lookup.value.entity");
|
35
|
+
const mail_event_entity_1 = require("../system/entities/mail.event.entity");
|
35
36
|
const mail_log_entity_1 = require("../system/entities/mail.log.entity");
|
37
|
+
const mail_recipient_entity_1 = require("../system/entities/mail.recipient.entity");
|
36
38
|
const mail_validation_entity_1 = require("../system/entities/mail.validation.entity");
|
37
39
|
const menu_entity_1 = require("../system/entities/menu.entity");
|
38
40
|
const menu_role_entity_1 = require("../system/entities/menu.role.entity");
|
@@ -105,7 +107,9 @@ const entityConstants = {
|
|
105
107
|
adb199a467c1d3df2eee56ef45adde17: list_preference_entity_1.ListPreferenceEntity,
|
106
108
|
'9efb14076dca6034ab4c3255c5c63aa2': lookup_type_entity_1.LookupTypeEntity,
|
107
109
|
ca12043141c4bbc3b08a13bd8dfa9bc8: lookup_value_entity_1.LookupValueEntity,
|
110
|
+
fcb3607be350ccc33c0aa96903297ed4: mail_event_entity_1.MailEventEntity,
|
108
111
|
a3da8b74348b592a71fe3667f5d92954: mail_log_entity_1.MailLogEntity,
|
112
|
+
cc6b09709a1955d294210e3ff4293bb8: mail_recipient_entity_1.MailRecipientEntity,
|
109
113
|
'7c4d023bb9746e4bd0e2cf74e42dd6a5': mail_validation_entity_1.MailValidationEntity,
|
110
114
|
'1ef387eee5c23a8d3c8f6a3130e1c397': menu_entity_1.MenuEntity,
|
111
115
|
'0357bfa9c9022c76f5302e2274e249fe': menu_role_entity_1.MenuRoleEntity,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,oEAAgE;AAChE,oEAAgE;AAChE,8EAAyE;AACzE,gFAA2E;AAC3E,8DAA0D;AAC1D,gFAA2E;AAC3E,+FAAyF;AACzF,iGAA2F;AAC3F,8EAA0E;AAC1E,kEAA8D;AAC9D,wFAAmF;AACnF,4EAAuE;AACvE,kFAA6E;AAC7E,4FAAsF;AACtF,kEAA8D;AAC9D,0FAAqF;AACrF,oEAAgE;AAChE,kFAA6E;AAC7E,0FAAqF;AACrF,oEAAgE;AAChE,sEAAkE;AAClE,kFAA6E;AAC7E,wEAAoE;AACpE,gFAA2E;AAC3E,oFAA+E;AAC/E,gFAA2E;AAC3E,8EAAyE;AACzE,8EAAyE;AACzE,gEAA4D;AAC5D,sFAAiF;AACjF,sFAAiF;AACjF,8EAAyE;AACzE,gFAA2E;AAC3E,wEAAmE;AACnE,sFAAiF;AACjF,gEAA4D;AAC5D,0EAAqE;AACrE,0FAAqF;AACrF,gFAA2E;AAC3E,kEAA8D;AAC9D,4FAAuF;AACvF,4EAAuE;AACvE,oEAAgE;AAChE,8EAAyE;AACzE,kFAA6E;AAC7E,sFAAiF;AACjF,8EAAyE;AACzE,gFAA2E;AAC3E,wEAAoE;AACpE,gFAA4E;AAC5E,kFAA6E;AAC7E,oEAAgE;AAChE,kFAA6E;AAC7E,gFAA2E;AAC3E,8FAAyF;AACzF,8E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EAAE,+BAAa;IAC/C,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,wBAAU;IAC9C,kCAAkC,EAAE,iCAAc;IAClD,gCAAgC,EAAE,iDAAsB;IACxD,gCAAgC,EAAE,uCAAiB;IACnD,gCAAgC,EAAE,0BAAW;IAC7C,gCAAgC,EAAE,mDAAuB;IACzD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,6CAAoB;IACxD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,gCAAc;IAClD,gCAAgC,EAAE,wCAAkB;IACpD,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,4BAAY;IAC9C,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,qCAAgB;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,2CAAmB;IACvD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,8BAAa;IACjD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,sDAAwB;IAC5D,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,gDAAqB;IACzD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,4CAAmB;IACvD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,iDAAsB;CAC7D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA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,yCAAkB;IACpD,kCAAkC,EAAE,6CAAoB;IACxD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,gCAAc;IAClD,gCAAgC,EAAE,wCAAkB;IACpD,kCAAkC,EAAE,yCAAkB;IACtD,gCAAgC,EAAE,4BAAY;IAC9C,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,qCAAgB;IAClD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,2CAAmB;IACvD,gCAAgC,EAAE,yCAAkB;IACpD,kCAAkC,EAAE,8BAAa;IACjD,gCAAgC,EAAE,qCAAgB;IAClD,kCAAkC,EAAE,uCAAiB;IACrD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,sDAAwB;IAC5D,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,gDAAqB;IACzD,kCAAkC,EAAE,wDAAyB;IAC7D,kCAAkC,EAAE,4CAAmB;IACvD,gCAAgC,EAAE,6CAAoB;IACtD,kCAAkC,EAAE,iDAAsB;CAC7D,CAAC;AAEF,iBAAS,eAAe,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sentry.config.js","sourceRoot":"","sources":["../../src/config/sentry.config.ts"],"names":[],"mappings":";AAAA,yBAAuB;AAEvB,MAAM,YAAY,GAAG;IACjB,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;IAC3B,qBAAqB,EAAE,IAAI;IAC3B,gBAAgB,EAAE,IAAI;CACzB,CAAC;AAEF,iBAAS,YAAY,CAAC"}
|
package/dist/main.js
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const common_1 = require("@nestjs/common");
|
4
4
|
const core_1 = require("@nestjs/core");
|
5
|
+
const Sentry = require("@sentry/node");
|
5
6
|
const bodyParser = require("body-parser");
|
6
7
|
const compression = require("compression");
|
7
8
|
const httpContext = require("express-http-context");
|
@@ -10,7 +11,9 @@ const helmet_1 = require("helmet");
|
|
10
11
|
require("source-map-support/register");
|
11
12
|
const app_module_1 = require("./app.module");
|
12
13
|
const corsConfig = require("./config/cors.config");
|
14
|
+
const sentry_interceptor_1 = require("./system/interceptors/sentry.interceptor");
|
13
15
|
const rateLimiterConfig = require("./config/rate.limiter.config");
|
16
|
+
const sentryConfig = require("./config/sentry.config");
|
14
17
|
require('source-map-support').install();
|
15
18
|
Error.stackTraceLimit = 100;
|
16
19
|
async function bootstrap() {
|
@@ -25,6 +28,11 @@ async function bootstrap() {
|
|
25
28
|
const enableGracefulShutdown = process.env.SERVER_COOL_DOWN_PERIOD;
|
26
29
|
if (enableGracefulShutdown)
|
27
30
|
app.enableShutdownHooks();
|
31
|
+
const sentryDsn = process.env.SENTRY_DSN;
|
32
|
+
if (sentryDsn) {
|
33
|
+
Sentry.init(sentryConfig);
|
34
|
+
app.useGlobalInterceptors(new sentry_interceptor_1.SentryInterceptor());
|
35
|
+
}
|
28
36
|
app.useGlobalPipes(new common_1.ValidationPipe({ whitelist: true, transform: true }));
|
29
37
|
await app.listen(process.env.SERVER_PORT || 4000);
|
30
38
|
}
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,2CAAgD;AAChD,uCAA2C;AAE3C,0CAA0C;AAC1C,2CAA2C;AAC3C,oDAAoD;AACpD,2DAA2C;AAC3C,mCAA4B;AAC5B,uCAAqC;AACrC,6CAAyC;AACzC,mDAAmD;AACnD,kEAAmE;
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,2CAAgD;AAChD,uCAA2C;AAE3C,uCAA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,CAAC,CAAC,CAAC;IAG7E,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,EAAE,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateMailRecipientTable1700392547578 = void 0;
|
4
|
+
const migration_utility_1 = require("../common/libraries/migration.utility");
|
5
|
+
class CreateMailRecipientTable1700392547578 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_mail_recipients');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.primary();
|
12
|
+
this.foreign({ name: 'mail_id', foreignTable: 'sys_mail_logs' });
|
13
|
+
this.string('type');
|
14
|
+
this.string('email');
|
15
|
+
this.json('attributes');
|
16
|
+
this.whoColumns();
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.CreateMailRecipientTable1700392547578 = CreateMailRecipientTable1700392547578;
|
20
|
+
//# sourceMappingURL=1700392547578-CreateMailRecipientTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1700392547578-CreateMailRecipientTable.js","sourceRoot":"","sources":["../../src/migrations/1700392547578-CreateMailRecipientTable.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,qCAAsC,SAAQ,oCAAgB;IACvE;QACI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,CAAC;QAEjE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAErB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ;AAjBD,sFAiBC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AddBodySysMailLogsTable1700393526749 = void 0;
|
4
|
+
const migration_utility_1 = require("../common/libraries/migration.utility");
|
5
|
+
class AddBodySysMailLogsTable1700393526749 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_mail_logs');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.string('subject');
|
12
|
+
this.string('body');
|
13
|
+
}
|
14
|
+
}
|
15
|
+
exports.AddBodySysMailLogsTable1700393526749 = AddBodySysMailLogsTable1700393526749;
|
16
|
+
//# sourceMappingURL=1700393526749-AddBodySysMailLogsTable.ts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1700393526749-AddBodySysMailLogsTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1700393526749-AddBodySysMailLogsTable.ts.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,oCAAqC,SAAQ,oCAAgB;IACtE;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;CACJ;AAVD,oFAUC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateMailEventTable1700394466332 = void 0;
|
4
|
+
const migration_utility_1 = require("../common/libraries/migration.utility");
|
5
|
+
class CreateMailEventTable1700394466332 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_mail_events');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.primary();
|
12
|
+
this.foreign({ name: 'mail_id', foreignTable: 'sys_mail_logs' });
|
13
|
+
this.string('identifier');
|
14
|
+
this.string('type');
|
15
|
+
this.string('activity_at');
|
16
|
+
this.json('attributes');
|
17
|
+
this.whoColumns();
|
18
|
+
this.index(['identifier'], 'sys_mail_events_identifier_index');
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.CreateMailEventTable1700394466332 = CreateMailEventTable1700394466332;
|
22
|
+
//# sourceMappingURL=1700394466332-CreateMailEventTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1700394466332-CreateMailEventTable.js","sourceRoot":"","sources":["../../src/migrations/1700394466332-CreateMailEventTable.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,iCAAkC,SAAQ,oCAAgB;IACnE;QACI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QAEf,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,EAAE,kCAAkC,CAAC,CAAC;IACnE,CAAC;CACJ;AApBD,8EAoBC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RemoveToColumnSysMailLogsTable1700401846961 = void 0;
|
4
|
+
const reverse_migration_utility_1 = require("../common/libraries/reverse.migration.utility");
|
5
|
+
class RemoveToColumnSysMailLogsTable1700401846961 extends reverse_migration_utility_1.ReverseMigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_mail_logs');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.string('to');
|
12
|
+
}
|
13
|
+
}
|
14
|
+
exports.RemoveToColumnSysMailLogsTable1700401846961 = RemoveToColumnSysMailLogsTable1700401846961;
|
15
|
+
//# sourceMappingURL=1700401846961-RemoveToColumnSysMailLogsTable.ts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1700401846961-RemoveToColumnSysMailLogsTable.ts.js","sourceRoot":"","sources":["../../src/migrations/1700401846961-RemoveToColumnSysMailLogsTable.ts.ts"],"names":[],"mappings":";;;AAAA,6FAAwF;AAExF,MAAa,2CAA4C,SAAQ,mDAAuB;IACpF;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACJ;AATD,kGASC"}
|
@@ -66,7 +66,7 @@ declare const es6Classes: {
|
|
66
66
|
dtos: (typeof JobPayloadDto | typeof QueueOptionsDto | typeof SourceColumnDto | typeof CommonAttributesDto | typeof AwsConfigDto | typeof RemoteRawResponseDto | typeof FcmResponseDto | typeof KaleyraCallbackPayloadDto | typeof MailOptionsDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto | typeof SetSmsPayloadDto | typeof SmsPayloadDto | typeof SmtpConfigDto | typeof StringSearchDto)[];
|
67
67
|
entities: (typeof FailedBullJobEntity | typeof PendingBullJobEntity)[];
|
68
68
|
jobs: (typeof LoadFailedBullJob | typeof RecordWatcherJob | typeof ReloadPendingBullJob | typeof TestJob)[];
|
69
|
-
libraries: (typeof
|
69
|
+
libraries: (typeof CommonSqsPolling | typeof ProcessAuditLogData | typeof FileSystemUtility | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEntityConstantsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile | typeof ProcessCommonMail | typeof ProcessKaleyraCallbackResponse | typeof ProcessKaleyraSms | typeof ProcessSmtpMail | typeof SetSmsMessage)[];
|
70
70
|
middlewares: (typeof MaintenanceMiddleware | typeof TrimPipe)[];
|
71
71
|
services: (typeof CacheService | typeof LocalPropertyService | typeof AwsConfigService | typeof SqsService | typeof QueueService | typeof SqlService | typeof DynamoService | typeof MaintenanceService | typeof AuditService | typeof RemoteRequestService | typeof AwsSecretService | typeof Es6JobsService | typeof FcmNotificationService | typeof MailService | typeof ShutdownService | typeof SmsService | typeof StartupService)[];
|
72
72
|
subscribers: (typeof BaseSubscriber)[];
|
@@ -7,7 +7,12 @@ export declare class ProcessSmtpMail extends ProcessCommonMail {
|
|
7
7
|
private refreshTime;
|
8
8
|
private config;
|
9
9
|
constructor(propertyService: PropertyService, options: MailOptionsDto);
|
10
|
-
process(): Promise<
|
10
|
+
process(): Promise<{
|
11
|
+
identifier: any;
|
12
|
+
attributes: {
|
13
|
+
ses: any;
|
14
|
+
};
|
15
|
+
}>;
|
11
16
|
private send;
|
12
17
|
private setAttachments;
|
13
18
|
private getConfig;
|
@@ -13,7 +13,8 @@ class ProcessSmtpMail extends process_common_mail_1.ProcessCommonMail {
|
|
13
13
|
}
|
14
14
|
async process() {
|
15
15
|
const response = await this.send();
|
16
|
-
|
16
|
+
const identifier = response.response.split(' ')[2];
|
17
|
+
return { identifier, attributes: { ses: response } };
|
17
18
|
}
|
18
19
|
async send() {
|
19
20
|
const config = await this.getConfig();
|
@@ -23,7 +24,7 @@ class ProcessSmtpMail extends process_common_mail_1.ProcessCommonMail {
|
|
23
24
|
}
|
24
25
|
const transporter = nodemailer.createTransport({
|
25
26
|
host: config.host,
|
26
|
-
port: config.port,
|
27
|
+
port: +config.port,
|
27
28
|
auth: {
|
28
29
|
user: config.username,
|
29
30
|
pass: config.password,
|
@@ -68,11 +69,11 @@ class ProcessSmtpMail extends process_common_mail_1.ProcessCommonMail {
|
|
68
69
|
if (this.refreshTime && this.refreshTime > now)
|
69
70
|
return this.config;
|
70
71
|
this.refreshTime = (0, date_fns_1.addMinutes)(now, 15);
|
71
|
-
const host =
|
72
|
-
const port =
|
73
|
-
const username =
|
74
|
-
const password =
|
75
|
-
const from =
|
72
|
+
const host = 'email-smtp.ap-south-1.amazonaws.com';
|
73
|
+
const port = '587';
|
74
|
+
const username = 'AKIASDGGJT64E2GVUGOO';
|
75
|
+
const password = 'BDmmaNX6lPtNDAPiUXjLn7FYeT+pVeGCkPQ2PMiO7Apv';
|
76
|
+
const from = 'no-reply@finnoto.in';
|
76
77
|
if (!(host && port && username && password && from))
|
77
78
|
return;
|
78
79
|
this.config = { host, port, username, password, from };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"process.smtp.mail.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.smtp.mail.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,yCAAyC;AAIzC,+DAA0D;AAQ1D,MAAa,eAAgB,SAAQ,uCAAiB;IAsBlD,YACqB,eAAgC,EACzC,OAAuB;QAE/B,KAAK,EAAE,CAAC;QAHS,oBAAe,GAAf,eAAe,CAAiB;QACzC,YAAO,GAAP,OAAO,CAAgB;QAT3B,WAAM,GAAkB,IAAI,CAAC;IAYrC,CAAC;IAOD,KAAK,CAAC,OAAO;QACT,MAAM,QAAQ,GAAQ,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACxC,
|
1
|
+
{"version":3,"file":"process.smtp.mail.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.smtp.mail.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,yCAAyC;AA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I,CAAC,WAAW,GAAG,GAAG;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QAEnE,IAAI,CAAC,WAAW,GAAG,IAAA,qBAAU,EAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAUvC,MAAM,IAAI,GAAG,qCAAqC,CAAC;QACnD,MAAM,IAAI,GAAG,KAAK,CAAC;QAEnB,MAAM,QAAQ,GAAG,sBAAsB,CAAC;QACxC,MAAM,QAAQ,GAAG,8CAA8C,CAAC;QAEhE,MAAM,IAAI,GAAG,qBAAqB,CAAC;QAEnC,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,QAAQ,IAAI,QAAQ,IAAI,IAAI,CAAC;YAAE,OAAO;QAE5D,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACvD,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AA/ID,0CA+IC"}
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { PropertyService } from '../../system/services/property.service';
|
2
|
+
import { UploadService } from '../../system/services/upload.service';
|
2
3
|
import { MailLogEntity } from './../../system/entities/mail.log.entity';
|
3
4
|
import { MailOptionsDto } from './../dtos/mail.options.dto';
|
4
|
-
import { DynamoService } from './dynamo.service';
|
5
5
|
export declare class MailService {
|
6
|
-
private readonly dynamoService;
|
7
6
|
private readonly propertyService;
|
7
|
+
private readonly uploadService;
|
8
8
|
private refreshTime;
|
9
|
-
private entityTable;
|
10
9
|
private gateway;
|
11
|
-
constructor(
|
10
|
+
constructor(propertyService: PropertyService, uploadService: UploadService);
|
12
11
|
send(options: MailOptionsDto, metadata?: any): Promise<MailLogEntity>;
|
12
|
+
private getBody;
|
13
|
+
private setRecipients;
|
14
|
+
private setRecipient;
|
13
15
|
private processMail;
|
14
|
-
private saveToDynamo;
|
15
|
-
private getEntityTable;
|
16
16
|
private getDefaultGateway;
|
17
17
|
}
|
@@ -13,49 +13,57 @@ exports.MailService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
15
15
|
const date_fns_1 = require("date-fns");
|
16
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
17
|
+
const mail_recipient_entity_1 = require("../../system/entities/mail.recipient.entity");
|
16
18
|
const property_service_1 = require("../../system/services/property.service");
|
19
|
+
const upload_service_1 = require("../../system/services/upload.service");
|
17
20
|
const process_smtp_mail_1 = require("../libraries/process.smtp.mail");
|
18
21
|
const mail_log_entity_1 = require("./../../system/entities/mail.log.entity");
|
19
|
-
const dynamo_service_1 = require("./dynamo.service");
|
20
|
-
const SourceHash = require("../../config/source.hash");
|
21
22
|
let MailService = class MailService {
|
22
|
-
constructor(
|
23
|
-
this.dynamoService = dynamoService;
|
23
|
+
constructor(propertyService, uploadService) {
|
24
24
|
this.propertyService = propertyService;
|
25
|
+
this.uploadService = uploadService;
|
25
26
|
this.refreshTime = {};
|
26
|
-
this.entityTable = null;
|
27
27
|
this.gateway = null;
|
28
28
|
}
|
29
29
|
async send(options, metadata) {
|
30
|
-
const identifier = await this.processMail(options);
|
30
|
+
const { identifier, attributes } = await this.processMail(options);
|
31
31
|
const gateway = this.gateway;
|
32
|
-
const body = { gateway, identifier
|
32
|
+
const body = { gateway, identifier };
|
33
33
|
const log = (0, class_transformer_1.plainToClass)(mail_log_entity_1.MailLogEntity, { ...body, ...metadata });
|
34
|
+
log.attributes = { ...attributes, attachments: options.files || {} };
|
35
|
+
log.processed_on = new Date();
|
36
|
+
log.body = await this.getBody(options);
|
37
|
+
log.subject = options.subject;
|
34
38
|
await log.save();
|
35
|
-
await this.
|
39
|
+
await this.setRecipients(log, options);
|
36
40
|
return log;
|
37
41
|
}
|
42
|
+
async getBody(options) {
|
43
|
+
const str = options.html || options.text;
|
44
|
+
const buffer = Buffer.from(str, 'utf-8');
|
45
|
+
return this.uploadService.upload({ buffer, originalname: `mail.body.${platform_utility_1.PlatformUtility.generateRandomAlpha(16)}.html` });
|
46
|
+
}
|
47
|
+
async setRecipients(mail, options) {
|
48
|
+
const nodes = ['cc', 'bcc', 'to'];
|
49
|
+
for (const node of nodes) {
|
50
|
+
if (options[node])
|
51
|
+
await this.setRecipient(mail, node, options[node]);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
async setRecipient(mail, type, email) {
|
55
|
+
const emails = Array.isArray(email) ? email : [email];
|
56
|
+
for (const email of emails) {
|
57
|
+
const r = mail_recipient_entity_1.MailRecipientEntity.create({ mail_id: mail.id, type, email });
|
58
|
+
await r.save();
|
59
|
+
}
|
60
|
+
}
|
38
61
|
async processMail(options) {
|
39
62
|
const gateway = await this.getDefaultGateway();
|
40
63
|
if (gateway === 'smtp')
|
41
64
|
return new process_smtp_mail_1.ProcessSmtpMail(this.propertyService, options).process();
|
42
65
|
global.console.log('No mail gateway defined in the system');
|
43
66
|
}
|
44
|
-
async saveToDynamo(log, options, identifier) {
|
45
|
-
const entityTable = await this.getEntityTable();
|
46
|
-
if (!entityTable)
|
47
|
-
return;
|
48
|
-
const dynamoItem = { entity_hash: SourceHash.mailLog, entity_id: log.id, options, identifier };
|
49
|
-
return this.dynamoService.setItem(entityTable, dynamoItem);
|
50
|
-
}
|
51
|
-
async getEntityTable() {
|
52
|
-
const now = new Date();
|
53
|
-
if (this.refreshTime.dynamoTable && this.refreshTime.dynamoTable > now)
|
54
|
-
return this.entityTable;
|
55
|
-
this.refreshTime.dynamoTable = (0, date_fns_1.addMinutes)(now, 15);
|
56
|
-
this.entityTable = await this.propertyService.get('audit.table.name', false);
|
57
|
-
return this.entityTable;
|
58
|
-
}
|
59
67
|
async getDefaultGateway() {
|
60
68
|
const now = new Date();
|
61
69
|
if (this.refreshTime.gateway && this.refreshTime.gateway > now)
|
@@ -68,7 +76,7 @@ let MailService = class MailService {
|
|
68
76
|
exports.MailService = MailService;
|
69
77
|
exports.MailService = MailService = __decorate([
|
70
78
|
(0, common_1.Injectable)(),
|
71
|
-
__metadata("design:paramtypes", [
|
72
|
-
|
79
|
+
__metadata("design:paramtypes", [property_service_1.PropertyService,
|
80
|
+
upload_service_1.UploadService])
|
73
81
|
], MailService);
|
74
82
|
//# sourceMappingURL=mail.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAiD;AACjD,uCAAsC;AACtC,6EAAyE;AACzE,sEAAiE;AACjE,6EAAwE;
|
1
|
+
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAiD;AACjD,uCAAsC;AACtC,8EAA0E;AAC1E,uFAAkF;AAClF,6EAAyE;AACzE,yEAAqE;AACrE,sEAAiE;AACjE,6EAAwE;AASjE,IAAM,WAAW,GAAjB,MAAM,WAAW;IAqBpB,YACqB,eAAgC,EAChC,aAA4B;QAD5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,kBAAa,GAAb,aAAa,CAAe;QAjBzC,gBAAW,GAA2C,EAAE,CAAC;QAOzD,YAAO,GAAG,IAAI,CAAC;IAWpB,CAAC;IASJ,KAAK,CAAC,IAAI,CAAC,OAAuB,EAAE,QAAc;QAC9C,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACnE,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAE7B,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;QAErC,MAAM,GAAG,GAAG,IAAA,gCAAY,EAAC,+BAAa,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;QAElE,GAAG,CAAC,UAAU,GAAG,EAAE,GAAG,UAAU,EAAE,WAAW,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AC;QAEtD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;YACxB,MAAM,CAAC,GAAG,2CAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YACxE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;SAClB;IACL,CAAC;IAUO,KAAK,CAAC,WAAW,CAAC,OAAuB;QAC7C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC/C,IAAI,OAAO,KAAK,MAAM;YAAE,OAAO,IAAI,mCAAe,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;QAE5F,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IAChE,CAAC;IAEO,KAAK,CAAC,iBAAiB;QAC3B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,GAAG;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC;QAEpF,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,IAAA,qBAAU,EAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAE/C,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;CACJ,CAAA;AApGY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAuB6B,kCAAe;QACjB,8BAAa;GAvBxC,WAAW,CAoGvB"}
|
@@ -21,5 +21,6 @@ __exportStar(require("./jobs.scanner.command"), exports);
|
|
21
21
|
__exportStar(require("./model.scanner.command"), exports);
|
22
22
|
__exportStar(require("./report.scanner.command"), exports);
|
23
23
|
__exportStar(require("./service.scanner.command"), exports);
|
24
|
+
__exportStar(require("./ses.event.tracking.command"), exports);
|
24
25
|
__exportStar(require("./sync.all.command"), exports);
|
25
26
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,qDAAkC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AAAA,2DAAyC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,0DAAwC;AAAA,2DAAyC;AAAA,4DAA0C;AAAA,+DAA6C;AAAA,qDAAkC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { CommonSqsPolling } from '../../platformUtility/libraries/common.sqs.polling';
|
2
|
+
import { MaintenanceService } from '../../platformUtility/services/maintenance.service';
|
3
|
+
import { QueueService } from '../../platformUtility/services/queue.service';
|
4
|
+
import { PropertyService } from '../services/property.service';
|
5
|
+
export declare class SesEventTrackingCommand extends CommonSqsPolling {
|
6
|
+
protected readonly queueService: QueueService;
|
7
|
+
protected readonly maintenanceService: MaintenanceService;
|
8
|
+
private readonly propertyService;
|
9
|
+
constructor(queueService: QueueService, maintenanceService: MaintenanceService, propertyService: PropertyService);
|
10
|
+
process(): Promise<void>;
|
11
|
+
private processJob;
|
12
|
+
}
|