@servicelabsco/nestjs-utility-services 1.0.159 → 1.0.160
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/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 +7 -4
- 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/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.js +5 -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 +2 -2
- 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
package/dist/app.controller.d.ts
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
import { PropertyService } from './system/services/property.service';
|
2
1
|
import { AppService } from './app.service';
|
3
2
|
import { QueueService } from './platformUtility/services/queue.service';
|
4
3
|
export declare class AppController {
|
5
4
|
private readonly appService;
|
6
5
|
private readonly queueService;
|
7
|
-
|
8
|
-
constructor(appService: AppService, queueService: QueueService, propertyService: PropertyService);
|
6
|
+
constructor(appService: AppService, queueService: QueueService);
|
9
7
|
get(): Promise<{
|
10
8
|
message: string;
|
11
9
|
}>;
|
package/dist/app.controller.js
CHANGED
@@ -19,16 +19,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
19
19
|
};
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
exports.AppController = void 0;
|
22
|
-
const property_service_1 = require("./system/services/property.service");
|
23
22
|
const common_1 = require("@nestjs/common");
|
24
23
|
const app_service_1 = require("./app.service");
|
25
24
|
const auth_1 = require("./common/libraries/auth");
|
26
25
|
const queue_service_1 = require("./platformUtility/services/queue.service");
|
27
26
|
let AppController = class AppController {
|
28
|
-
constructor(appService, queueService
|
27
|
+
constructor(appService, queueService) {
|
29
28
|
this.appService = appService;
|
30
29
|
this.queueService = queueService;
|
31
|
-
this.propertyService = propertyService;
|
32
30
|
}
|
33
31
|
get() {
|
34
32
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -64,9 +62,7 @@ __decorate([
|
|
64
62
|
], AppController.prototype, "set", null);
|
65
63
|
AppController = __decorate([
|
66
64
|
(0, common_1.Controller)(),
|
67
|
-
__metadata("design:paramtypes", [app_service_1.AppService,
|
68
|
-
queue_service_1.QueueService,
|
69
|
-
property_service_1.PropertyService])
|
65
|
+
__metadata("design:paramtypes", [app_service_1.AppService, queue_service_1.QueueService])
|
70
66
|
], AppController);
|
71
67
|
exports.AppController = AppController;
|
72
68
|
//# sourceMappingURL=app.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,2CAAiD;AACjD,+CAA2C;AAC3C,kDAA+C;AAG/C,4EAAwE;AAGxE,IAAa,aAAa,GAA1B,MAAa,aAAa;IACtB,YAA6B,UAAsB,EAAmB,YAA0B;QAAnE,eAAU,GAAV,UAAU,CAAY;QAAmB,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAG9F,GAAG;;YACL,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;QACvC,CAAC;KAAA;IAQK,iBAAiB;;YACnB,OAAO,WAAI,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC;KAAA;IAGK,GAAG;8DAAI,CAAC;KAAA;CACjB,CAAA;AAhBG;IADC,IAAA,YAAG,GAAE;;;;wCAGL;AAQD;IADC,IAAA,YAAG,EAAC,UAAU,CAAC;;;;sDAGf;AAGD;IADC,IAAA,YAAG,EAAC,KAAK,CAAC;;;;wCACG;AAnBL,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEgC,wBAAU,EAAiC,4BAAY;GADvF,aAAa,CAoBzB;AApBY,sCAAa"}
|
@@ -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/auth/controllers/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC"}
|
package/dist/auth/dtos/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/auth/dtos/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,8DAA4C;AAC5C,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC"}
|
@@ -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/auth/entities/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,gDAA8B;AAC9B,yDAAuC"}
|
package/dist/auth/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];
|
package/dist/auth/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yCAAuB;AACvB,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,+CAA6B;AAC7B,gDAA8B"}
|
@@ -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/auth/middlewares/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mDAAiC;AACjC,0DAAwC"}
|
@@ -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/auth/services/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B;AAC/B,yDAAuC;AACvC,0DAAwC;AACxC,iDAA+B;AAC/B,mDAAiC;AACjC,iDAA+B"}
|
@@ -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/auth/strategies/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/strategies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,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/common/dtos/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,6DAA2C;AAC3C,4DAA0C;AAC1C,8CAA4B;AAC5B,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,wDAAsC;AACtC,yDAAuC;AACvC,kDAAgC;AAChC,4DAA0C;AAC1C,mDAAiC;AACjC,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C"}
|
@@ -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/common/exceptions/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/exceptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,0DAAwC;AACxC,6DAA2C;AAC3C,wDAAsC"}
|
@@ -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/common/guards/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/guards/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
package/dist/common/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];
|
package/dist/common/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B;AAC7B,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC"}
|
@@ -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/common/libraries/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2DAAyC;AACzC,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,+CAA6B;AAC7B,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,8CAA4B;AAC5B,yDAAuC;AACvC,wDAAsC;AACtC,yCAAuB;AACvB,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,8DAA4C;AAC5C,mDAAiC"}
|
package/dist/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];
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,2CAAyB;AACzB,2CAAyB;AACzB,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/platformUtility/commands/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC"}
|
@@ -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/consumers/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/consumers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B"}
|
@@ -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/dtos/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,mEAAiD;AACjD,mEAAiD;AACjD,sDAAoC;AACpC,qDAAmC"}
|
@@ -17,6 +17,9 @@ import { CreateEs6JobsFile } from './libraries/create.es6.jobs.file';
|
|
17
17
|
import { CreateEs6ServiceFile } from './libraries/create.es6.service.file';
|
18
18
|
import { CreateIndexFile } from './libraries/create.index.file';
|
19
19
|
import { FileSystemUtility } from './libraries/file.system.utility';
|
20
|
+
import { ProcessCommonMail } from './libraries/process.common.mail';
|
21
|
+
import { ProcessPostmarkMail } from './libraries/process.postmark.mail';
|
22
|
+
import { ProcessSendgridMail } from './libraries/process.sendgrid.mail';
|
20
23
|
import { MaintenanceMiddleware } from './middlewares/maintenance.middleware';
|
21
24
|
import { AuditService } from './services/audit.service';
|
22
25
|
import { CacheService } from './services/cache.service';
|
@@ -37,11 +40,11 @@ import { BaseSubscriber } from './subscribers/base.subscriber';
|
|
37
40
|
declare const es6Classes: {
|
38
41
|
commands: (typeof EntityGeneratorCommand | typeof MaintenanceCommand | typeof SqsWorkerCommand | typeof SyncClassCommand)[];
|
39
42
|
consumers: (typeof EventConsumer | typeof JobConsumer)[];
|
40
|
-
dtos: (typeof
|
41
|
-
jobs: (typeof
|
42
|
-
libraries: (typeof FileSystemUtility | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile)[];
|
43
|
+
dtos: (typeof MailOptionsDto | typeof QueueOptionsDto | typeof FcmResponseDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto)[];
|
44
|
+
jobs: (typeof RecordWatcherJob | typeof TestJob)[];
|
45
|
+
libraries: (typeof ProcessCommonMail | typeof ProcessPostmarkMail | typeof ProcessSendgridMail | typeof FileSystemUtility | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile)[];
|
43
46
|
middlewares: (typeof MaintenanceMiddleware)[];
|
44
|
-
services: (typeof CacheService | typeof LocalPropertyService | typeof MaintenanceService | typeof ShutdownService | typeof SqsService | typeof QueueService | typeof RemoteRequestService | typeof SqlService | typeof
|
47
|
+
services: (typeof DynamoService | typeof MailService | typeof CacheService | typeof LocalPropertyService | typeof MaintenanceService | typeof ShutdownService | typeof SqsService | typeof QueueService | typeof RemoteRequestService | typeof SqlService | typeof AuditService | typeof FcmNotificationService | typeof StartupService | typeof Es6JobsService | typeof Es6Service)[];
|
45
48
|
subscribers: (typeof BaseSubscriber)[];
|
46
49
|
};
|
47
50
|
export default es6Classes;
|
@@ -19,6 +19,9 @@ const create_es6_jobs_file_1 = require("./libraries/create.es6.jobs.file");
|
|
19
19
|
const create_es6_service_file_1 = require("./libraries/create.es6.service.file");
|
20
20
|
const create_index_file_1 = require("./libraries/create.index.file");
|
21
21
|
const file_system_utility_1 = require("./libraries/file.system.utility");
|
22
|
+
const process_common_mail_1 = require("./libraries/process.common.mail");
|
23
|
+
const process_postmark_mail_1 = require("./libraries/process.postmark.mail");
|
24
|
+
const process_sendgrid_mail_1 = require("./libraries/process.sendgrid.mail");
|
22
25
|
const maintenance_middleware_1 = require("./middlewares/maintenance.middleware");
|
23
26
|
const audit_service_1 = require("./services/audit.service");
|
24
27
|
const cache_service_1 = require("./services/cache.service");
|
@@ -41,7 +44,17 @@ const es6Classes = {
|
|
41
44
|
consumers: [event_consumer_1.EventConsumer, job_consumer_1.JobConsumer],
|
42
45
|
dtos: [fcm_response_dto_1.FcmResponseDto, mail_options_dto_1.MailOptionsDto, push_notification_response_dto_1.PushNotificationResponseDto, push_notification_template_dto_1.PushNotificationTemplateDto, queue_options_dto_1.QueueOptionsDto],
|
43
46
|
jobs: [record_watcher_job_1.RecordWatcherJob, test_job_1.TestJob],
|
44
|
-
libraries: [
|
47
|
+
libraries: [
|
48
|
+
create_entity_constants_file_1.CreateEntityConstantsFile,
|
49
|
+
create_es6_classes_file_1.CreateEs6ClassesFile,
|
50
|
+
create_es6_jobs_file_1.CreateEs6JobsFile,
|
51
|
+
create_es6_service_file_1.CreateEs6ServiceFile,
|
52
|
+
create_index_file_1.CreateIndexFile,
|
53
|
+
file_system_utility_1.FileSystemUtility,
|
54
|
+
process_common_mail_1.ProcessCommonMail,
|
55
|
+
process_postmark_mail_1.ProcessPostmarkMail,
|
56
|
+
process_sendgrid_mail_1.ProcessSendgridMail,
|
57
|
+
],
|
45
58
|
middlewares: [maintenance_middleware_1.MaintenanceMiddleware],
|
46
59
|
services: [
|
47
60
|
audit_service_1.AuditService,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,kFAA6E;AAC7E,wEAAoE;AACpE,sEAAiE;AACjE,sEAAiE;AACjE,+DAA2D;AAC3D,2DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,0FAAoF;AACpF,0FAAoF;AACpF,gEAA2D;AAC3D,kEAA6D;AAC7D,8CAA0C;AAC1C,2FAAqF;AACrF,iFAA2E;AAC3E,2EAAqE;AACrE,iFAA2E;AAC3E,qEAAgE;AAChE,yEAAoE;AACpE,iFAA6E;AAC7E,4DAAwD;AACxD,4DAAwD;AACxD,8DAA0D;AAC1D,kEAA6D;AAC7D,wDAAoD;AACpD,kFAA6E;AAC7E,8EAAyE;AACzE,0DAAsD;AACtD,wEAAoE;AACpE,4DAAwD;AACxD,8EAAyE;AACzE,kEAA8D;AAC9D,wDAAoD;AACpD,wDAAoD;AACpD,gEAA4D;AAC5D,mEAA+D;AAE/D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,iDAAsB,EAAE,wCAAkB,EAAE,qCAAgB,EAAE,qCAAgB,CAAC;IAC1F,SAAS,EAAE,CAAC,8BAAa,EAAE,0BAAW,CAAC;IACvC,IAAI,EAAE,CAAC,iCAAc,EAAE,iCAAc,EAAE,4DAA2B,EAAE,4DAA2B,EAAE,mCAAe,CAAC;IACjH,IAAI,EAAE,CAAC,qCAAgB,EAAE,kBAAO,CAAC;IACjC,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/platformUtility/es6.classes.ts"],"names":[],"mappings":";;AAAA,kFAA6E;AAC7E,wEAAoE;AACpE,sEAAiE;AACjE,sEAAiE;AACjE,+DAA2D;AAC3D,2DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,0FAAoF;AACpF,0FAAoF;AACpF,gEAA2D;AAC3D,kEAA6D;AAC7D,8CAA0C;AAC1C,2FAAqF;AACrF,iFAA2E;AAC3E,2EAAqE;AACrE,iFAA2E;AAC3E,qEAAgE;AAChE,yEAAoE;AACpE,yEAAoE;AACpE,6EAAwE;AACxE,6EAAwE;AACxE,iFAA6E;AAC7E,4DAAwD;AACxD,4DAAwD;AACxD,8DAA0D;AAC1D,kEAA6D;AAC7D,wDAAoD;AACpD,kFAA6E;AAC7E,8EAAyE;AACzE,0DAAsD;AACtD,wEAAoE;AACpE,4DAAwD;AACxD,8EAAyE;AACzE,kEAA8D;AAC9D,wDAAoD;AACpD,wDAAoD;AACpD,gEAA4D;AAC5D,mEAA+D;AAE/D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,iDAAsB,EAAE,wCAAkB,EAAE,qCAAgB,EAAE,qCAAgB,CAAC;IAC1F,SAAS,EAAE,CAAC,8BAAa,EAAE,0BAAW,CAAC;IACvC,IAAI,EAAE,CAAC,iCAAc,EAAE,iCAAc,EAAE,4DAA2B,EAAE,4DAA2B,EAAE,mCAAe,CAAC;IACjH,IAAI,EAAE,CAAC,qCAAgB,EAAE,kBAAO,CAAC;IACjC,SAAS,EAAE;QACP,wDAAyB;QACzB,8CAAoB;QACpB,wCAAiB;QACjB,8CAAoB;QACpB,mCAAe;QACf,uCAAiB;QACjB,uCAAiB;QACjB,2CAAmB;QACnB,2CAAmB;KACtB;IACD,WAAW,EAAE,CAAC,8CAAqB,CAAC;IACpC,QAAQ,EAAE;QACN,4BAAY;QACZ,4BAAY;QACZ,8BAAa;QACb,iCAAc;QACd,wBAAU;QACV,iDAAsB;QACtB,6CAAoB;QACpB,0BAAW;QACX,wCAAkB;QAClB,4BAAY;QACZ,6CAAoB;QACpB,kCAAe;QACf,wBAAU;QACV,wBAAU;QACV,gCAAc;KACjB;IACD,WAAW,EAAE,CAAC,gCAAc,CAAC;CAChC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -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/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platformUtility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,yCAAuB;AACvB,yCAAuB;AACvB,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B;AAC9B,4DAA0C"}
|
@@ -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/jobs/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6CAA2B"}
|
@@ -4,3 +4,6 @@ export * from './create.es6.jobs.file';
|
|
4
4
|
export * from './create.es6.service.file';
|
5
5
|
export * from './create.index.file';
|
6
6
|
export * from './file.system.utility';
|
7
|
+
export * from './process.common.mail';
|
8
|
+
export * from './process.postmark.mail';
|
9
|
+
export * from './process.sendgrid.mail';
|
@@ -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
|
+
}
|