@servicelabsco/nestjs-utility-services 1.0.159 → 1.0.162
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/app.controller.d.ts +1 -3
- package/dist/app.controller.js +2 -6
- package/dist/app.controller.js.map +1 -1
- package/dist/auth/controllers/index.js +5 -1
- package/dist/auth/controllers/index.js.map +1 -1
- package/dist/auth/dtos/index.js +5 -1
- package/dist/auth/dtos/index.js.map +1 -1
- package/dist/auth/entities/index.js +5 -1
- package/dist/auth/entities/index.js.map +1 -1
- package/dist/auth/index.js +5 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/middlewares/index.js +5 -1
- package/dist/auth/middlewares/index.js.map +1 -1
- package/dist/auth/services/index.js +5 -1
- package/dist/auth/services/index.js.map +1 -1
- package/dist/auth/strategies/index.js +5 -1
- package/dist/auth/strategies/index.js.map +1 -1
- package/dist/common/dtos/index.js +5 -1
- package/dist/common/dtos/index.js.map +1 -1
- package/dist/common/exceptions/index.js +5 -1
- package/dist/common/exceptions/index.js.map +1 -1
- package/dist/common/guards/index.js +5 -1
- package/dist/common/guards/index.js.map +1 -1
- package/dist/common/index.js +5 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/libraries/base.migration.utility.d.ts +1 -1
- package/dist/common/libraries/base.migration.utility.js +5 -3
- package/dist/common/libraries/base.migration.utility.js.map +1 -1
- package/dist/common/libraries/common.entity.d.ts +1 -0
- package/dist/common/libraries/common.entity.js +4 -0
- package/dist/common/libraries/common.entity.js.map +1 -1
- package/dist/common/libraries/index.js +5 -1
- package/dist/common/libraries/index.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/platformUtility/commands/index.js +5 -1
- package/dist/platformUtility/commands/index.js.map +1 -1
- package/dist/platformUtility/consumers/index.js +5 -1
- package/dist/platformUtility/consumers/index.js.map +1 -1
- package/dist/platformUtility/dtos/index.js +5 -1
- package/dist/platformUtility/dtos/index.js.map +1 -1
- package/dist/platformUtility/es6.classes.d.ts +5 -2
- package/dist/platformUtility/es6.classes.js +14 -1
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/index.js +5 -1
- package/dist/platformUtility/index.js.map +1 -1
- package/dist/platformUtility/jobs/index.js +5 -1
- package/dist/platformUtility/jobs/index.js.map +1 -1
- package/dist/platformUtility/libraries/index.d.ts +3 -0
- package/dist/platformUtility/libraries/index.js +8 -1
- package/dist/platformUtility/libraries/index.js.map +1 -1
- package/dist/platformUtility/libraries/process.common.mail.d.ts +9 -0
- package/dist/platformUtility/libraries/process.common.mail.js +60 -0
- package/dist/platformUtility/libraries/process.common.mail.js.map +1 -0
- package/dist/platformUtility/libraries/process.postmark.mail.d.ts +9 -0
- package/dist/platformUtility/libraries/process.postmark.mail.js +59 -0
- package/dist/platformUtility/libraries/process.postmark.mail.js.map +1 -0
- package/dist/platformUtility/libraries/process.sendgrid.mail.d.ts +8 -0
- package/dist/platformUtility/libraries/process.sendgrid.mail.js +50 -0
- package/dist/platformUtility/libraries/process.sendgrid.mail.js.map +1 -0
- package/dist/platformUtility/middlewares/index.js +5 -1
- package/dist/platformUtility/middlewares/index.js.map +1 -1
- package/dist/platformUtility/services/index.js +5 -1
- package/dist/platformUtility/services/index.js.map +1 -1
- package/dist/platformUtility/services/mail.service.d.ts +2 -6
- package/dist/platformUtility/services/mail.service.js +18 -73
- package/dist/platformUtility/services/mail.service.js.map +1 -1
- package/dist/platformUtility/services/sqs.service.d.ts +1 -0
- package/dist/platformUtility/services/sqs.service.js +9 -2
- package/dist/platformUtility/services/sqs.service.js.map +1 -1
- package/dist/platformUtility/subscribers/index.js +5 -1
- package/dist/platformUtility/subscribers/index.js.map +1 -1
- package/dist/security/entities/index.js +5 -1
- package/dist/security/entities/index.js.map +1 -1
- package/dist/security/index.js +5 -1
- package/dist/security/index.js.map +1 -1
- package/dist/system/commands/index.js +5 -1
- package/dist/system/commands/index.js.map +1 -1
- package/dist/system/controllers/index.js +5 -1
- package/dist/system/controllers/index.js.map +1 -1
- package/dist/system/dtos/index.d.ts +1 -0
- package/dist/system/dtos/index.js +6 -1
- package/dist/system/dtos/index.js.map +1 -1
- package/dist/system/entities/index.js +5 -1
- package/dist/system/entities/index.js.map +1 -1
- package/dist/system/es6.classes.d.ts +1 -1
- package/dist/system/index.js +5 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/jobs/index.js +5 -1
- package/dist/system/jobs/index.js.map +1 -1
- package/dist/system/libraries/index.js +5 -1
- package/dist/system/libraries/index.js.map +1 -1
- package/dist/system/modifiers/index.js +5 -1
- package/dist/system/modifiers/index.js.map +1 -1
- package/dist/system/services/index.js +5 -1
- package/dist/system/services/index.js.map +1 -1
- package/dist/system/subscribers/index.js +5 -1
- package/dist/system/subscribers/index.js.map +1 -1
- package/package.json +2 -1
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -16,4 +20,7 @@ __exportStar(require("./create.es6.jobs.file"), exports);
|
|
16
20
|
__exportStar(require("./create.es6.service.file"), exports);
|
17
21
|
__exportStar(require("./create.index.file"), exports);
|
18
22
|
__exportStar(require("./file.system.utility"), exports);
|
23
|
+
__exportStar(require("./process.common.mail"), exports);
|
24
|
+
__exportStar(require("./process.postmark.mail"), exports);
|
25
|
+
__exportStar(require("./process.sendgrid.mail"), exports);
|
19
26
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,4DAA0C;AAC1C,yDAAuC;AACvC,4DAA0C;AAC1C,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,0DAAwC;AACxC,0DAAwC"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.ProcessCommonMail = void 0;
|
13
|
+
const axios_1 = require("axios");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
const fs_1 = require("fs");
|
16
|
+
class ProcessCommonMail {
|
17
|
+
getAttachments(files) {
|
18
|
+
var _a;
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
20
|
+
if (!files)
|
21
|
+
return [];
|
22
|
+
const attachments = [];
|
23
|
+
for (const file of files) {
|
24
|
+
const content = yield this.getFileBuffer(file.file);
|
25
|
+
const filename = (_a = file.name) !== null && _a !== void 0 ? _a : file.file.split('/').pop();
|
26
|
+
attachments.push({
|
27
|
+
content,
|
28
|
+
filename,
|
29
|
+
type: 'application/pdf',
|
30
|
+
disposition: 'attachment',
|
31
|
+
});
|
32
|
+
}
|
33
|
+
return attachments;
|
34
|
+
});
|
35
|
+
}
|
36
|
+
getFileBuffer(file) {
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
38
|
+
if ((0, class_validator_1.isURL)(file))
|
39
|
+
return this.getNetworkFileBuffer(file);
|
40
|
+
return this.getLocalFileBuffer(file);
|
41
|
+
});
|
42
|
+
}
|
43
|
+
getLocalFileBuffer(file) {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
return (0, fs_1.readFileSync)(file).toString('base64');
|
46
|
+
});
|
47
|
+
}
|
48
|
+
getNetworkFileBuffer(url) {
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
50
|
+
const response = yield (0, axios_1.default)({
|
51
|
+
url,
|
52
|
+
method: 'GET',
|
53
|
+
responseType: 'arraybuffer',
|
54
|
+
});
|
55
|
+
return Buffer.from(response.data, 'binary').toString('base64');
|
56
|
+
});
|
57
|
+
}
|
58
|
+
}
|
59
|
+
exports.ProcessCommonMail = ProcessCommonMail;
|
60
|
+
//# sourceMappingURL=process.common.mail.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"process.common.mail.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.common.mail.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAA0B;AAC1B,qDAAwC;AACxC,2BAAkC;AAClC,MAAa,iBAAiB;IAQV,cAAc,CAAC,KAAwC;;;YACnE,IAAI,CAAC,KAAK;gBAAE,OAAO,EAAE,CAAC;YAEtB,MAAM,WAAW,GAAG,EAAE,CAAC;YAEvB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;gBACtB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACpD,MAAM,QAAQ,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;gBAEzD,WAAW,CAAC,IAAI,CAAC;oBACb,OAAO;oBACP,QAAQ;oBACR,IAAI,EAAE,iBAAiB;oBACvB,WAAW,EAAE,YAAY;iBAC5B,CAAC,CAAC;aACN;YAED,OAAO,WAAW,CAAC;;KACtB;IASa,aAAa,CAAC,IAAY;;YACpC,IAAI,IAAA,uBAAK,EAAC,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;YAExD,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;KAAA;IASa,kBAAkB,CAAC,IAAY;;YACzC,OAAO,IAAA,iBAAY,EAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC;KAAA;IASa,oBAAoB,CAAC,GAAW;;YAC1C,MAAM,QAAQ,GAAG,MAAM,IAAA,eAAK,EAAC;gBACzB,GAAG;gBACH,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,aAAa;aAC9B,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnE,CAAC;KAAA;CACJ;AApED,8CAoEC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { MailOptionsDto } from './../dtos/mail.options.dto';
|
2
|
+
import { ProcessCommonMail } from './process.common.mail';
|
3
|
+
export declare class ProcessPostmarkMail extends ProcessCommonMail {
|
4
|
+
private options;
|
5
|
+
constructor(options: MailOptionsDto);
|
6
|
+
process(): Promise<string>;
|
7
|
+
private send;
|
8
|
+
private setAttachments;
|
9
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.ProcessPostmarkMail = void 0;
|
13
|
+
const config = require("config");
|
14
|
+
const postmark = require("postmark");
|
15
|
+
const process_common_mail_1 = require("./process.common.mail");
|
16
|
+
const mailConfig = config.get('mail');
|
17
|
+
class ProcessPostmarkMail extends process_common_mail_1.ProcessCommonMail {
|
18
|
+
constructor(options) {
|
19
|
+
super();
|
20
|
+
this.options = options;
|
21
|
+
}
|
22
|
+
process() {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const response = yield this.send();
|
25
|
+
return response.MessageID;
|
26
|
+
});
|
27
|
+
}
|
28
|
+
send() {
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
30
|
+
const client = new postmark.ServerClient(mailConfig.postmark);
|
31
|
+
const attachments = yield this.setAttachments();
|
32
|
+
const response = yield client.sendEmail({
|
33
|
+
From: mailConfig.from,
|
34
|
+
To: this.options.to,
|
35
|
+
Subject: this.options.subject,
|
36
|
+
HtmlBody: this.options.html,
|
37
|
+
TrackOpens: true,
|
38
|
+
Attachments: attachments,
|
39
|
+
});
|
40
|
+
return response;
|
41
|
+
});
|
42
|
+
}
|
43
|
+
setAttachments() {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
const files = yield this.getAttachments(this.options.files);
|
46
|
+
const attachments = [];
|
47
|
+
files.forEach((file) => {
|
48
|
+
attachments.push({
|
49
|
+
Name: file.filename,
|
50
|
+
Content: file.content,
|
51
|
+
ContentType: file.type,
|
52
|
+
});
|
53
|
+
});
|
54
|
+
return attachments;
|
55
|
+
});
|
56
|
+
}
|
57
|
+
}
|
58
|
+
exports.ProcessPostmarkMail = ProcessPostmarkMail;
|
59
|
+
//# sourceMappingURL=process.postmark.mail.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"process.postmark.mail.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.postmark.mail.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiC;AACjC,qCAAqC;AAGrC,+DAA0D;AAE1D,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAQtC,MAAa,mBAAoB,SAAQ,uCAAiB;IAMtD,YAAoB,OAAuB;QACvC,KAAK,EAAE,CAAC;QADQ,YAAO,GAAP,OAAO,CAAgB;IAE3C,CAAC;IAOK,OAAO;;YACT,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YACnC,OAAO,QAAQ,CAAC,SAAS,CAAC;QAC9B,CAAC;KAAA;IAQa,IAAI;;YACd,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YAC9D,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;YAEhD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC;gBACpC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE;gBACnB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;gBAC7B,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;gBAC3B,UAAU,EAAE,IAAI;gBAChB,WAAW,EAAE,WAAW;aAC3B,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;IAQa,cAAc;;YACxB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5D,MAAM,WAAW,GAAG,EAAE,CAAC;YAEvB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACnB,WAAW,CAAC,IAAI,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,QAAQ;oBACnB,OAAO,EAAE,IAAI,CAAC,OAAO;oBACrB,WAAW,EAAE,IAAI,CAAC,IAAI;iBACzB,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YAEH,OAAO,WAAW,CAAC;QACvB,CAAC;KAAA;CACJ;AA9DD,kDA8DC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { MailOptionsDto } from './../dtos/mail.options.dto';
|
2
|
+
import { ProcessCommonMail } from './process.common.mail';
|
3
|
+
export declare class ProcessSendgridMail extends ProcessCommonMail {
|
4
|
+
private options;
|
5
|
+
constructor(options: MailOptionsDto);
|
6
|
+
process(): Promise<string>;
|
7
|
+
private send;
|
8
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.ProcessSendgridMail = void 0;
|
13
|
+
const sgMail = require("@sendgrid/mail");
|
14
|
+
const config = require("config");
|
15
|
+
const process_common_mail_1 = require("./process.common.mail");
|
16
|
+
const mailConfig = config.get('mail');
|
17
|
+
class ProcessSendgridMail extends process_common_mail_1.ProcessCommonMail {
|
18
|
+
constructor(options) {
|
19
|
+
super();
|
20
|
+
this.options = options;
|
21
|
+
}
|
22
|
+
process() {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const response = yield this.send();
|
25
|
+
return response[0].headers['x-message-id'];
|
26
|
+
});
|
27
|
+
}
|
28
|
+
send() {
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
30
|
+
sgMail.setApiKey(mailConfig.sendgrid);
|
31
|
+
const attachments = yield this.getAttachments(this.options.files);
|
32
|
+
const msg = Object.assign(Object.assign({}, this.options), {
|
33
|
+
from: mailConfig.from,
|
34
|
+
attachments,
|
35
|
+
});
|
36
|
+
return new Promise((resolve, reject) => {
|
37
|
+
sgMail
|
38
|
+
.send(msg)
|
39
|
+
.then((res) => {
|
40
|
+
resolve(res);
|
41
|
+
})
|
42
|
+
.catch((error) => {
|
43
|
+
reject(error);
|
44
|
+
});
|
45
|
+
});
|
46
|
+
});
|
47
|
+
}
|
48
|
+
}
|
49
|
+
exports.ProcessSendgridMail = ProcessSendgridMail;
|
50
|
+
//# sourceMappingURL=process.sendgrid.mail.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"process.sendgrid.mail.js","sourceRoot":"","sources":["../../../src/platformUtility/libraries/process.sendgrid.mail.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AACzC,iCAAiC;AAEjC,+DAA0D;AAG1D,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAQtC,MAAa,mBAAoB,SAAQ,uCAAiB;IAMtD,YAAoB,OAAuB;QACvC,KAAK,EAAE,CAAC;QADQ,YAAO,GAAP,OAAO,CAAgB;IAE3C,CAAC;IAOK,OAAO;;YACT,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YACnC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAC/C,CAAC;KAAA;IAQa,IAAI;;YACd,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YAEtC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAElE,MAAM,GAAG,mCACF,IAAI,CAAC,OAAO,GACZ;gBACC,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,WAAW;aACd,CACJ,CAAC;YAEF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACnC,MAAM;qBACD,IAAI,CAAC,GAAG,CAAC;qBACT,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;oBACV,OAAO,CAAC,GAAG,CAAC,CAAC;gBACjB,CAAC,CAAC;qBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;oBACb,MAAM,CAAC,KAAK,CAAC,CAAC;gBAClB,CAAC,CAAC,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAlDD,kDAkDC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/middlewares/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/services/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,6DAA2C;AAC3C,2DAAyC;AACzC,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,2DAAyC;AACzC,qDAAmC;AACnC,gDAA8B;AAC9B,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B"}
|
@@ -1,14 +1,10 @@
|
|
1
|
-
import { DynamoService } from './dynamo.service';
|
2
1
|
import { MailLogEntity } from './../../system/entities/mail.log.entity';
|
3
2
|
import { MailOptionsDto } from './../dtos/mail.options.dto';
|
3
|
+
import { DynamoService } from './dynamo.service';
|
4
4
|
export declare class MailService {
|
5
5
|
private readonly dynamoService;
|
6
6
|
constructor(dynamoService: DynamoService);
|
7
7
|
send(options: MailOptionsDto, metadata?: any): Promise<MailLogEntity>;
|
8
|
+
private processMail;
|
8
9
|
private saveToDynamo;
|
9
|
-
private sendMailViaSendgrid;
|
10
|
-
private getAttachments;
|
11
|
-
private getFileBuffer;
|
12
|
-
private getLocalFileBuffer;
|
13
|
-
private getNetworkFileBuffer;
|
14
10
|
}
|
@@ -19,15 +19,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
19
19
|
};
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
exports.MailService = void 0;
|
22
|
-
const dynamo_service_1 = require("./dynamo.service");
|
23
|
-
const class_transformer_1 = require("class-transformer");
|
24
|
-
const mail_log_entity_1 = require("./../../system/entities/mail.log.entity");
|
25
22
|
const common_1 = require("@nestjs/common");
|
26
|
-
const
|
27
|
-
const class_validator_1 = require("class-validator");
|
23
|
+
const class_transformer_1 = require("class-transformer");
|
28
24
|
const config = require("config");
|
29
|
-
const
|
30
|
-
const
|
25
|
+
const mail_log_entity_1 = require("./../../system/entities/mail.log.entity");
|
26
|
+
const process_postmark_mail_1 = require("./../libraries/process.postmark.mail");
|
27
|
+
const process_sendgrid_mail_1 = require("./../libraries/process.sendgrid.mail");
|
28
|
+
const dynamo_service_1 = require("./dynamo.service");
|
31
29
|
const mailConfig = config.get('mail');
|
32
30
|
let MailService = class MailService {
|
33
31
|
constructor(dynamoService) {
|
@@ -35,78 +33,25 @@ let MailService = class MailService {
|
|
35
33
|
}
|
36
34
|
send(options, metadata) {
|
37
35
|
return __awaiter(this, void 0, void 0, function* () {
|
38
|
-
const
|
39
|
-
const
|
36
|
+
const identifier = yield this.processMail(options);
|
37
|
+
const gateway = mailConfig.medium;
|
38
|
+
const body = { gateway, identifier, to: options.to };
|
40
39
|
const log = (0, class_transformer_1.plainToClass)(mail_log_entity_1.MailLogEntity, Object.assign(Object.assign({}, body), metadata));
|
41
40
|
yield log.save();
|
42
|
-
yield this.saveToDynamo(log, options,
|
41
|
+
yield this.saveToDynamo(log, options, identifier);
|
43
42
|
return log;
|
44
43
|
});
|
45
44
|
}
|
46
|
-
|
47
|
-
const
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
sgMail.setApiKey(mailConfig.sendgrid);
|
53
|
-
const attachments = yield this.getAttachments(options.files);
|
54
|
-
const msg = Object.assign(Object.assign({}, options), {
|
55
|
-
from: mailConfig.from,
|
56
|
-
attachments,
|
57
|
-
});
|
58
|
-
return new Promise((resolve, reject) => {
|
59
|
-
sgMail
|
60
|
-
.send(msg)
|
61
|
-
.then((res) => {
|
62
|
-
resolve(res);
|
63
|
-
})
|
64
|
-
.catch((error) => {
|
65
|
-
reject(error);
|
66
|
-
});
|
67
|
-
});
|
68
|
-
});
|
69
|
-
}
|
70
|
-
getAttachments(files) {
|
71
|
-
var _a;
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
73
|
-
if (!files)
|
74
|
-
return [];
|
75
|
-
const attachments = [];
|
76
|
-
for (const file of files) {
|
77
|
-
const content = yield this.getFileBuffer(file.file);
|
78
|
-
const filename = (_a = file.name) !== null && _a !== void 0 ? _a : file.file.split('/').pop();
|
79
|
-
attachments.push({
|
80
|
-
content,
|
81
|
-
filename,
|
82
|
-
type: 'application/pdf',
|
83
|
-
disposition: 'attachment',
|
84
|
-
});
|
85
|
-
}
|
86
|
-
return attachments;
|
87
|
-
});
|
88
|
-
}
|
89
|
-
getFileBuffer(file) {
|
90
|
-
return __awaiter(this, void 0, void 0, function* () {
|
91
|
-
if ((0, class_validator_1.isURL)(file))
|
92
|
-
return this.getNetworkFileBuffer(file);
|
93
|
-
return this.getLocalFileBuffer(file);
|
94
|
-
});
|
45
|
+
processMail(options) {
|
46
|
+
const gateway = mailConfig.gateway;
|
47
|
+
if (gateway === 'postmark')
|
48
|
+
return new process_postmark_mail_1.ProcessPostmarkMail(options).process();
|
49
|
+
if (gateway === 'sendgrid')
|
50
|
+
return new process_sendgrid_mail_1.ProcessSendgridMail(options).process();
|
95
51
|
}
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
});
|
100
|
-
}
|
101
|
-
getNetworkFileBuffer(url) {
|
102
|
-
return __awaiter(this, void 0, void 0, function* () {
|
103
|
-
const response = yield (0, axios_1.default)({
|
104
|
-
url,
|
105
|
-
method: 'GET',
|
106
|
-
responseType: 'arraybuffer',
|
107
|
-
});
|
108
|
-
return Buffer.from(response.data, 'binary').toString('base64');
|
109
|
-
});
|
52
|
+
saveToDynamo(log, options, identifier) {
|
53
|
+
const dynamoItem = { entity_hash: 'a3da8b74348b592a71fe3667f5d92954', entity_id: log.id, options, identifier };
|
54
|
+
return this.dynamoService.setItem('sk_entity_records', dynamoItem);
|
110
55
|
}
|
111
56
|
};
|
112
57
|
MailService = __decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAiD;AACjD,iCAAiC;AACjC,6EAAwE;AAExE,gFAA2E;AAC3E,gFAA2E;AAC3E,qDAAiD;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAQtC,IAAa,WAAW,GAAxB,MAAa,WAAW;IAMpB,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IASvD,IAAI,CAAC,OAAuB,EAAE,QAAc;;YAC9C,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACnD,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC;YAElC,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC;YACrD,MAAM,GAAG,GAAG,IAAA,gCAAY,EAAC,+BAAa,kCAAO,IAAI,GAAK,QAAQ,EAAG,CAAC;YAElE,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAElD,OAAO,GAAG,CAAC;QACf,CAAC;KAAA;IAUO,WAAW,CAAC,OAAuB;QACvC,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAEnC,IAAI,OAAO,KAAK,UAAU;YAAE,OAAO,IAAI,2CAAmB,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;QAC9E,IAAI,OAAO,KAAK,UAAU;YAAE,OAAO,IAAI,2CAAmB,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IAClF,CAAC;IAWO,YAAY,CAAC,GAAkB,EAAE,OAAuB,EAAE,UAAkB;QAChF,MAAM,UAAU,GAAG,EAAE,WAAW,EAAE,kCAAkC,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;QAG/G,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AA1DY,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAOmC,8BAAa;GANhD,WAAW,CA0DvB;AA1DY,kCAAW"}
|
@@ -31,10 +31,11 @@ let SqsService = class SqsService {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
32
32
|
message.time = Date.now();
|
33
33
|
const params = {
|
34
|
-
MessageGroupId: 'group-1',
|
35
34
|
MessageBody: JSON.stringify(message),
|
36
35
|
QueueUrl: queue,
|
37
36
|
};
|
37
|
+
if (this.isFifo(queue))
|
38
|
+
params.MessageGroupId = 'group-1';
|
38
39
|
this.logger.log(`pushing to queue : ${queue} job: ${message.name}`);
|
39
40
|
return this.sendMessage(params);
|
40
41
|
});
|
@@ -54,7 +55,7 @@ let SqsService = class SqsService {
|
|
54
55
|
QueueUrl: queue,
|
55
56
|
MaxNumberOfMessages: count,
|
56
57
|
VisibilityTimeout: 10,
|
57
|
-
WaitTimeSeconds:
|
58
|
+
WaitTimeSeconds: 0,
|
58
59
|
};
|
59
60
|
return new Promise((resolve, reject) => {
|
60
61
|
this.client.receiveMessage(params, (err, data) => {
|
@@ -81,6 +82,12 @@ let SqsService = class SqsService {
|
|
81
82
|
});
|
82
83
|
});
|
83
84
|
}
|
85
|
+
isFifo(queue) {
|
86
|
+
const ext = queue.slice(queue.length - 5);
|
87
|
+
if (ext.toLowerCase() === '.fifo')
|
88
|
+
return true;
|
89
|
+
return false;
|
90
|
+
}
|
84
91
|
};
|
85
92
|
SqsService = __decorate([
|
86
93
|
(0, common_1.Injectable)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sqs.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/sqs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,qCAA8B;AAC9B,oDAAoD;AAGpD,IAAa,UAAU,GAAvB,MAAa,UAAU;IAInB;QAFQ,WAAM,GAAW,IAAI,eAAM,CAAC,mBAAmB,CAAC,CAAC;QAGrD,IAAI,CAAC,MAAM,GAAG,IAAI,aAAG,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,GAAG,EAAE,eAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACpH,CAAC;IAEK,GAAG,CAAC,KAAa,EAAE,OAAY;;YACjC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAE1B,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"sqs.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/sqs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,qCAA8B;AAC9B,oDAAoD;AAGpD,IAAa,UAAU,GAAvB,MAAa,UAAU;IAInB;QAFQ,WAAM,GAAW,IAAI,eAAM,CAAC,mBAAmB,CAAC,CAAC;QAGrD,IAAI,CAAC,MAAM,GAAG,IAAI,aAAG,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,GAAG,EAAE,eAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACpH,CAAC;IAEK,GAAG,CAAC,KAAa,EAAE,OAAY;;YACjC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAE1B,MAAM,MAAM,GAAQ;gBAChB,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;gBACpC,QAAQ,EAAE,KAAK;aAClB,CAAC;YAEF,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;gBAAE,MAAM,CAAC,cAAc,GAAG,SAAS,CAAC;YAC1D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sBAAsB,KAAK,SAAS,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;YAEpE,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;KAAA;IAEK,MAAM,CAAC,KAAa,EAAE,aAAqB;;YAC7C,MAAM,YAAY,GAAG;gBACjB,QAAQ,EAAE,KAAK;gBACf,aAAa,EAAE,aAAa;aAC/B,CAAC;YAEF,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QACtD,CAAC;KAAA;IAEK,GAAG,CAAC,KAAa,EAAE,QAAgB,EAAE;;YACvC,MAAM,MAAM,GAAG;gBACX,QAAQ,EAAE,KAAK;gBACf,mBAAmB,EAAE,KAAK;gBAC1B,iBAAiB,EAAE,EAAE;gBACrB,eAAe,EAAE,CAAC;aACrB,CAAC;YAEF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACnC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAC7C,IAAI,GAAG;wBAAE,MAAM,CAAC,GAAG,CAAC,CAAC;;wBAChB,OAAO,CAAC,IAAI,CAAC,CAAC;gBACvB,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;IAEa,WAAW,CAAC,MAA8B;;YACpD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACnC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAC1C,IAAI,GAAG,EAAE;wBACL,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;wBACvC,MAAM,CAAC,GAAG,CAAC,CAAC;qBACf;yBAAM;wBACH,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;qBAC3B;gBACL,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;IAEO,MAAM,CAAC,KAAa;QACxB,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC1C,IAAI,GAAG,CAAC,WAAW,EAAE,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC;QAE/C,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAlEY,UAAU;IADtB,IAAA,mBAAU,GAAE;;GACA,UAAU,CAkEtB;AAlEY,gCAAU"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/subscribers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/security/entities/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/security/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC;AACzC,qDAAmC"}
|
package/dist/security/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,oDAAkC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/commands/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,qDAAmC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/controllers/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAkC;AAClC,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,+DAA6C"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -11,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
11
15
|
};
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
17
|
__exportStar(require("./job.record.param.dto"), exports);
|
18
|
+
__exportStar(require("./local.file.s3.upload.dto"), exports);
|
14
19
|
__exportStar(require("./menu.list.preference.creation.dto"), exports);
|
15
20
|
__exportStar(require("./model.allowed.column.dto"), exports);
|
16
21
|
__exportStar(require("./model.form.preference.creation.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,6DAA2C;AAC3C,sEAAoD;AACpD,6DAA2C;AAC3C,uEAAqD;AACrD,iEAA+C"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|