@servicelabsco/nestjs-utility-services 1.0.142 → 1.0.146
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 -5
- package/dist/app.controller.js +2 -9
- package/dist/app.controller.js.map +1 -1
- package/dist/auth/es6.classes.d.ts +1 -1
- package/dist/common/libraries/base.migration.utility.d.ts +1 -0
- package/dist/common/libraries/base.migration.utility.js +1 -0
- package/dist/common/libraries/base.migration.utility.js.map +1 -1
- package/dist/common/libraries/common.job.d.ts +1 -0
- package/dist/common/libraries/common.job.js +12 -0
- package/dist/common/libraries/common.job.js.map +1 -1
- package/dist/common/libraries/common.subscriber.d.ts +1 -1
- package/dist/common/libraries/common.subscriber.js +2 -9
- package/dist/common/libraries/common.subscriber.js.map +1 -1
- package/dist/common/libraries/migration.utility.js +10 -2
- package/dist/common/libraries/migration.utility.js.map +1 -1
- package/dist/common/libraries/platform.utility.d.ts +3 -0
- package/dist/common/libraries/platform.utility.js +10 -0
- package/dist/common/libraries/platform.utility.js.map +1 -1
- package/dist/config/entity.constants.d.ts +2 -0
- package/dist/config/entity.constants.js +2 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1643398296090-CreateMailLogTable.d.ts +5 -0
- package/dist/migrations/1643398296090-CreateMailLogTable.js +25 -0
- package/dist/migrations/1643398296090-CreateMailLogTable.js.map +1 -0
- package/dist/platformUtility/dtos/index.d.ts +1 -0
- package/dist/platformUtility/dtos/index.js +1 -0
- package/dist/platformUtility/dtos/index.js.map +1 -1
- package/dist/platformUtility/dtos/mail.options.dto.d.ts +13 -0
- package/dist/platformUtility/dtos/mail.options.dto.js +59 -0
- package/dist/platformUtility/dtos/mail.options.dto.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +3 -2
- package/dist/platformUtility/es6.classes.js +2 -1
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/services/index.d.ts +1 -0
- package/dist/platformUtility/services/index.js +1 -0
- package/dist/platformUtility/services/index.js.map +1 -1
- package/dist/platformUtility/services/local.property.service.d.ts +3 -0
- package/dist/platformUtility/services/local.property.service.js +10 -0
- package/dist/platformUtility/services/local.property.service.js.map +1 -1
- package/dist/platformUtility/services/mail.service.d.ts +12 -1
- package/dist/platformUtility/services/mail.service.js +89 -2
- package/dist/platformUtility/services/mail.service.js.map +1 -1
- package/dist/platformUtility/services/queue.service.d.ts +3 -1
- package/dist/platformUtility/services/queue.service.js +10 -3
- package/dist/platformUtility/services/queue.service.js.map +1 -1
- package/dist/system/commands/vaccine.command.js +0 -10
- package/dist/system/commands/vaccine.command.js.map +1 -1
- package/dist/system/controllers/base.controller.d.ts +3 -1
- package/dist/system/controllers/base.controller.js +6 -4
- package/dist/system/controllers/base.controller.js.map +1 -1
- package/dist/system/controllers/data.controller.d.ts +3 -1
- package/dist/system/controllers/data.controller.js +6 -5
- package/dist/system/controllers/data.controller.js.map +1 -1
- package/dist/system/entities/index.d.ts +1 -0
- package/dist/system/entities/index.js +1 -0
- package/dist/system/entities/index.js.map +1 -1
- package/dist/system/entities/mail.log.entity.d.ts +12 -0
- package/dist/system/entities/mail.log.entity.js +57 -0
- package/dist/system/entities/mail.log.entity.js.map +1 -0
- package/dist/system/es6.classes.d.ts +4 -3
- package/dist/system/es6.classes.js +2 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/jobs/model.scanner.job.d.ts +4 -2
- package/dist/system/jobs/model.scanner.job.js +9 -8
- package/dist/system/jobs/model.scanner.job.js.map +1 -1
- package/dist/system/services/common.service.d.ts +3 -2
- package/dist/system/services/common.service.js +6 -9
- package/dist/system/services/common.service.js.map +1 -1
- package/package.json +2 -1
@@ -5,6 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
7
|
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
8
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
9
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
10
13
|
return new (P || (P = Promise))(function (resolve, reject) {
|
@@ -16,15 +19,99 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
16
19
|
};
|
17
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
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");
|
19
25
|
const common_1 = require("@nestjs/common");
|
26
|
+
const axios_1 = require("axios");
|
27
|
+
const class_validator_1 = require("class-validator");
|
28
|
+
const config = require("config");
|
29
|
+
const fs_1 = require("fs");
|
30
|
+
const sgMail = require('@sendgrid/mail');
|
31
|
+
const mailConfig = config.get('mail');
|
20
32
|
let MailService = class MailService {
|
21
|
-
|
33
|
+
constructor(dynamoService) {
|
34
|
+
this.dynamoService = dynamoService;
|
35
|
+
}
|
36
|
+
send(options, metadata) {
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
38
|
+
const response = yield this.sendMailViaSendgrid(options);
|
39
|
+
const body = { gateway: 'sendgrid', identifier: response[0].headers['x-message-id'], to: options.to };
|
40
|
+
const log = (0, class_transformer_1.plainToClass)(mail_log_entity_1.MailLogEntity, Object.assign(Object.assign({}, body), metadata));
|
41
|
+
yield log.save();
|
42
|
+
yield this.saveToDynamo(log, options, response);
|
43
|
+
return log;
|
44
|
+
});
|
45
|
+
}
|
46
|
+
saveToDynamo(log, options, response) {
|
47
|
+
const dynamoItem = { entity_hash: 'a3da8b74348b592a71fe3667f5d92954', entity_id: log.id, options, response };
|
48
|
+
return this.dynamoService.setItem('sk_entity_records', dynamoItem);
|
49
|
+
}
|
50
|
+
sendMailViaSendgrid(options) {
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
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
|
+
});
|
95
|
+
}
|
96
|
+
getLocalFileBuffer(file) {
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
98
|
+
return (0, fs_1.readFileSync)(file).toString('base64');
|
99
|
+
});
|
100
|
+
}
|
101
|
+
getNetworkFileBuffer(url) {
|
22
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');
|
23
109
|
});
|
24
110
|
}
|
25
111
|
};
|
26
112
|
MailService = __decorate([
|
27
|
-
(0, common_1.Injectable)()
|
113
|
+
(0, common_1.Injectable)(),
|
114
|
+
__metadata("design:paramtypes", [dynamo_service_1.DynamoService])
|
28
115
|
], MailService);
|
29
116
|
exports.MailService = MailService;
|
30
117
|
//# sourceMappingURL=mail.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"mail.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/mail.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAiD;AACjD,6EAAwE;AACxE,2CAA4C;AAC5C,iCAA0B;AAC1B,qDAAgD;AAChD,iCAAiC;AACjC,2BAAkC;AAIlC,MAAM,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACzC,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,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAEzD,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,EAA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|
|
1
|
+
import { LocalPropertyService } from './local.property.service';
|
1
2
|
import { Job, Queue } from 'bull';
|
2
3
|
import { QueueOptionsDto } from '../dtos/queue.options.dto';
|
3
4
|
import { MaintenanceService } from './maintenance.service';
|
@@ -8,10 +9,11 @@ export declare class QueueService {
|
|
8
9
|
private readonly maintenanceService;
|
9
10
|
private readonly shutdownService;
|
10
11
|
private readonly cacheService;
|
12
|
+
private readonly localPropertyService;
|
11
13
|
data: any;
|
12
14
|
private restartIdentifier;
|
13
15
|
private logger;
|
14
|
-
constructor(businessQueue: Queue, maintenanceService: MaintenanceService, shutdownService: ShutdownService, cacheService: CacheService);
|
16
|
+
constructor(businessQueue: Queue, maintenanceService: MaintenanceService, shutdownService: ShutdownService, cacheService: CacheService, localPropertyService: LocalPropertyService);
|
15
17
|
add(type: string, data: any, options?: QueueOptionsDto): Promise<Job>;
|
16
18
|
getStats(): Promise<any>;
|
17
19
|
addJob(type: string, data: any, options?: QueueOptionsDto): Promise<Job>;
|
@@ -22,6 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
};
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
24
|
exports.QueueService = void 0;
|
25
|
+
const operation_exception_1 = require("./../../common/exceptions/operation.exception");
|
26
|
+
const local_property_service_1 = require("./local.property.service");
|
25
27
|
const bull_1 = require("@nestjs/bull");
|
26
28
|
const common_1 = require("@nestjs/common");
|
27
29
|
const date_util_1 = require("../../common/libraries/date.util");
|
@@ -31,11 +33,12 @@ const shutdown_service_1 = require("./shutdown.service");
|
|
31
33
|
const cache_service_1 = require("./cache.service");
|
32
34
|
const queueName = platform_constants_1.default.queue;
|
33
35
|
let QueueService = class QueueService {
|
34
|
-
constructor(businessQueue, maintenanceService, shutdownService, cacheService) {
|
36
|
+
constructor(businessQueue, maintenanceService, shutdownService, cacheService, localPropertyService) {
|
35
37
|
this.businessQueue = businessQueue;
|
36
38
|
this.maintenanceService = maintenanceService;
|
37
39
|
this.shutdownService = shutdownService;
|
38
40
|
this.cacheService = cacheService;
|
41
|
+
this.localPropertyService = localPropertyService;
|
39
42
|
this.data = {};
|
40
43
|
this.restartIdentifier = 'queue_restart_time';
|
41
44
|
this.logger = new common_1.Logger('EventQueueManager');
|
@@ -60,10 +63,13 @@ let QueueService = class QueueService {
|
|
60
63
|
}
|
61
64
|
addJob(type, data, options) {
|
62
65
|
return __awaiter(this, void 0, void 0, function* () {
|
66
|
+
const jobInstance = this.localPropertyService.getJob(type);
|
67
|
+
if (!jobInstance)
|
68
|
+
throw new operation_exception_1.OperationException(`trying to dispatch job which is not available`);
|
63
69
|
const payload = {
|
64
70
|
job: type,
|
65
71
|
payload: data,
|
66
|
-
name:
|
72
|
+
name: jobInstance.constructor.name,
|
67
73
|
};
|
68
74
|
options = options !== null && options !== void 0 ? options : {};
|
69
75
|
return this.businessQueue.add('generic.job.trigger', payload, options);
|
@@ -251,7 +257,8 @@ QueueService = __decorate([
|
|
251
257
|
__param(0, (0, bull_1.InjectQueue)(queueName)),
|
252
258
|
__metadata("design:paramtypes", [Object, maintenance_service_1.MaintenanceService,
|
253
259
|
shutdown_service_1.ShutdownService,
|
254
|
-
cache_service_1.CacheService
|
260
|
+
cache_service_1.CacheService,
|
261
|
+
local_property_service_1.LocalPropertyService])
|
255
262
|
], QueueService);
|
256
263
|
exports.QueueService = QueueService;
|
257
264
|
//# sourceMappingURL=queue.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queue.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/queue.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAoD;AACpD,2CAAoD;AAEpD,gEAA4D;AAC5D,wEAAgE;AAEhE,+DAA2D;AAC3D,yDAAqD;AACrD,mDAA+C;AAE/C,MAAM,SAAS,GAAG,4BAAiB,CAAC,KAAK,CAAC;AAQ1C,IAAa,YAAY,GAAzB,MAAa,YAAY;IAgBrB,YAC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KAAa;;YAChC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACnD,GAAG,CAAC,MAAM,EAAE,CAAC;QACjB,CAAC;KAAA;IASO,cAAc,CAAC,IAAW;QAC9B,MAAM,QAAQ,GAAG,EAAE,CAAC;QAEpB,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;;YACjB,QAAQ,CAAC,IAAI,CAAC;gBACV,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE;gBACX,IAAI,EAAE,CAAA,MAAA,GAAG,CAAC,IAAI,0CAAE,IAAI,KAAI,GAAG,CAAC,IAAI;gBAChC,UAAU,EAAE,GAAG,CAAC,SAAS;gBACzB,YAAY,EAAE,GAAG,CAAC,WAAW;gBAC7B,WAAW,EAAE,GAAG,CAAC,UAAU;gBAC3B,MAAM,EAAE,GAAG,CAAC,WAAW,GAAG,GAAG,CAAC,SAAS;gBACvC,GAAG,EAAE,GAAG,CAAC,UAAU,GAAG,GAAG,CAAC,WAAW;gBACrC,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ;aAC9B,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ,CAAA;AA5YY,YAAY;IADxB,IAAA,mBAAU,GAAE;IAkBJ,WAAA,IAAA,kBAAW,EAAC,SAAS,CAAC,CAAA;6CACc,wCAAkB;QACrB,kCAAe;QAClB,4BAAY;QACJ,6CAAoB;GArBtD,YAAY,CA4YxB;AA5YY,oCAAY"}
|
@@ -48,16 +48,6 @@ let VaccineCommand = class VaccineCommand {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
49
49
|
const dates = ['26-05-2021'];
|
50
50
|
const districts = [294, 276, 265];
|
51
|
-
for (const date of dates) {
|
52
|
-
global.console.log('finding for date : ', `${date} : ${new Date()}`);
|
53
|
-
for (const district of districts) {
|
54
|
-
const found = yield this.runForDate(date, district);
|
55
|
-
if (found.length) {
|
56
|
-
yield this.mailService.send(this.createHtml(found));
|
57
|
-
return true;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
51
|
return false;
|
62
52
|
});
|
63
53
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaccine.command.js","sourceRoot":"","sources":["../../../src/system/commands/vaccine.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAAgD;AAChD,gFAA4E;AAC5E,kGAA6F;AAC7F,gFAA4E;AAG5E,IAAa,cAAc,GAA3B,MAAa,cAAc;IAMvB,YACqB,YAA0B,EAC1B,cAA8B,EAC9B,oBAA0C,EAC1C,WAAwB;QAHxB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,gBAAW,GAAX,WAAW,CAAa;QAc7C,cAAS,GAAG,GAAS,EAAE;YACnB,OAAO,IAAI,EAAE;gBACT,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBAC5C,IAAI,KAAK;oBAAE,OAAO;gBAElB,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aAC3B;QACL,CAAC,CAAA,CAAC;QAnBE,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC;QAEzC,IAAI,CAAC,cAAc,CAAC,aAAa,CAC7B;YACI,OAAO,EAAE,cAAc;YACvB,WAAW,EAAE,mEAAmE;SACnF,EACD,IAAI,CAAC,SAAS,EACd,GAAG,CACN,CAAC;IACN,CAAC;IAWK,gBAAgB;;YAClB,MAAM,KAAK,GAAG,CAAC,YAAY,CAAC,CAAC;YAE7B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"vaccine.command.js","sourceR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;QAE3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEK,KAAK,CAAC,EAAE;;YACV,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ,CAAA;AA1GY,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAQ0B,4BAAY;QACV,+BAAc;QACR,6CAAoB;QAC7B,0BAAW;GAVpC,cAAc,CA0G1B;AA1GY,wCAAc"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { LocalPropertyService } from './../../platformUtility/services/local.property.service';
|
1
2
|
import { AuditService } from './../../platformUtility/services/audit.service';
|
2
3
|
import { ClientScriptService } from '../../system/services/client.script.service';
|
3
4
|
import { ListService } from '../../system/services/list.service';
|
@@ -9,7 +10,8 @@ export declare class BaseController {
|
|
9
10
|
private readonly preferenceService;
|
10
11
|
private readonly clientScriptService;
|
11
12
|
private readonly auditService;
|
12
|
-
|
13
|
+
private readonly localPropertyService;
|
14
|
+
constructor(listService: ListService, modelService: ModelService, preferenceService: PreferenceService, clientScriptService: ClientScriptService, auditService: AuditService, localPropertyService: LocalPropertyService);
|
13
15
|
get(hash: string, query: any): Promise<any>;
|
14
16
|
create(hash: string): Promise<{
|
15
17
|
model: import("..").ModelEntity;
|
@@ -22,24 +22,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
};
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
24
|
exports.BaseController = void 0;
|
25
|
+
const local_property_service_1 = require("./../../platformUtility/services/local.property.service");
|
25
26
|
const audit_service_1 = require("./../../platformUtility/services/audit.service");
|
26
27
|
const common_1 = require("@nestjs/common");
|
27
28
|
const class_transformer_1 = require("class-transformer");
|
28
29
|
const operation_exception_1 = require("../../common/exceptions/operation.exception");
|
29
30
|
const generic_index_parser_1 = require("../../common/libraries/generic.index.parser");
|
30
31
|
const generic_show_parser_1 = require("../../common/libraries/generic.show.parser");
|
31
|
-
const platform_constants_1 = require("../../config/platform.constants");
|
32
32
|
const client_script_service_1 = require("../../system/services/client.script.service");
|
33
33
|
const list_service_1 = require("../../system/services/list.service");
|
34
34
|
const model_service_1 = require("../../system/services/model.service");
|
35
35
|
const preference_service_1 = require("../../system/services/preference.service");
|
36
36
|
let BaseController = class BaseController {
|
37
|
-
constructor(listService, modelService, preferenceService, clientScriptService, auditService) {
|
37
|
+
constructor(listService, modelService, preferenceService, clientScriptService, auditService, localPropertyService) {
|
38
38
|
this.listService = listService;
|
39
39
|
this.modelService = modelService;
|
40
40
|
this.preferenceService = preferenceService;
|
41
41
|
this.clientScriptService = clientScriptService;
|
42
42
|
this.auditService = auditService;
|
43
|
+
this.localPropertyService = localPropertyService;
|
43
44
|
}
|
44
45
|
get(hash, query) {
|
45
46
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -126,7 +127,7 @@ let BaseController = class BaseController {
|
|
126
127
|
});
|
127
128
|
}
|
128
129
|
getEntityFromHash(hash) {
|
129
|
-
const entityObject =
|
130
|
+
const entityObject = this.localPropertyService.getEntity(hash);
|
130
131
|
if (!entityObject)
|
131
132
|
throw new operation_exception_1.OperationException('Entity does not exist in the system');
|
132
133
|
return entityObject;
|
@@ -202,7 +203,8 @@ BaseController = __decorate([
|
|
202
203
|
model_service_1.ModelService,
|
203
204
|
preference_service_1.PreferenceService,
|
204
205
|
client_script_service_1.ClientScriptService,
|
205
|
-
audit_service_1.AuditService
|
206
|
+
audit_service_1.AuditService,
|
207
|
+
local_property_service_1.LocalPropertyService])
|
206
208
|
], BaseController);
|
207
209
|
exports.BaseController = BaseController;
|
208
210
|
//# sourceMappingURL=base.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/base.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAA8E;AAC9E,2CAAwF;AACxF,yDAAwE;AACxE,qFAAiF;AACjF,sFAAiF;AACjF,oFAA+E;
|
1
|
+
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/base.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oGAA+F;AAC/F,kFAA8E;AAC9E,2CAAwF;AACxF,yDAAwE;AACxE,qFAAiF;AACjF,sFAAiF;AACjF,oFAA+E;AAE/E,uFAAkF;AAClF,qEAAiE;AACjE,uEAAmE;AACnE,iFAA6E;AAG7E,IAAa,cAAc,GAA3B,MAAa,cAAc;IACvB,YACqB,WAAwB,EACxB,YAA0B,EAC1B,iBAAoC,EACpC,mBAAwC,EACxC,YAA0B,EAC1B,oBAA0C;QAL1C,gBAAW,GAAX,WAAW,CAAa;QACxB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,yBAAoB,GAApB,oBAAoB,CAAsB;IAC5D,CAAC;IAEE,GAAG,CAAgB,IAAY,EAAW,KAAU;;YACtD,MAAM,MAAM,GAAG,IAAI,yCAAkB,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;YAEvD,MAAM,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YACrE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC;YAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,CAAC;KAAA;IAGK,MAAM,CAAgB,IAAY;;YACpC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEpE,MAAM,IAAI,GAAG;gBACT,KAAK;g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AAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;4CAc1B;AAGD;IADC,IAAA,YAAG,EAAC,MAAM,CAAC;IACA,WAAA,IAAA,cAAK,GAAE,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;0CAMvC;AAGD;IADC,IAAA,aAAI,GAAE;IACM,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,aAAI,GAAE,CAAA;;;;2CAU/C;AAGD;IADC,IAAA,YAAG,EAAC,UAAU,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CAiBnD;AAUD;IADC,IAAA,YAAG,EAAC,eAAe,CAAC;IACT,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CAInD;AAGD;IADC,IAAA,YAAG,EAAC,KAAK,CAAC;IACG,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;;;4CAazE;AAGD;IADC,IAAA,eAAM,EAAC,KAAK,CAAC;IACA,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;4CASrD;AAtHQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,kBAAkB,CAAC;qCAGO,0BAAW;QACV,4BAAY;QACP,sCAAiB;QACf,2CAAmB;QAC1B,4BAAY;QACJ,6CAAoB;GAPtD,cAAc,CAqI1B;AArIY,wCAAc"}
|
@@ -1,7 +1,9 @@
|
|
1
|
+
import { LocalPropertyService } from './../../platformUtility/services/local.property.service';
|
1
2
|
import { ModelService } from './../../system/services/model.service';
|
2
3
|
export declare class DataController {
|
3
4
|
private readonly modelService;
|
4
|
-
|
5
|
+
private readonly localPropertyService;
|
6
|
+
constructor(modelService: ModelService, localPropertyService: LocalPropertyService);
|
5
7
|
index(hash: string, query: any): Promise<any>;
|
6
8
|
show(hash: string, id: number, query: any): Promise<any>;
|
7
9
|
}
|
@@ -24,16 +24,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.DataController = void 0;
|
25
25
|
const common_1 = require("@nestjs/common");
|
26
26
|
const index_params_dto_1 = require("../../common/dtos/index.params.dto");
|
27
|
-
const
|
27
|
+
const local_property_service_1 = require("./../../platformUtility/services/local.property.service");
|
28
28
|
const model_service_1 = require("./../../system/services/model.service");
|
29
29
|
let DataController = class DataController {
|
30
|
-
constructor(modelService) {
|
30
|
+
constructor(modelService, localPropertyService) {
|
31
31
|
this.modelService = modelService;
|
32
|
+
this.localPropertyService = localPropertyService;
|
32
33
|
}
|
33
34
|
index(hash, query) {
|
34
35
|
return __awaiter(this, void 0, void 0, function* () {
|
35
36
|
const model = yield this.modelService.validateHashAccess(hash, 'r');
|
36
|
-
const entity =
|
37
|
+
const entity = this.localPropertyService.getEntity(model.model_hash);
|
37
38
|
const options = new index_params_dto_1.IndexParamsDto(query).getOptions();
|
38
39
|
return entity.find(options);
|
39
40
|
});
|
@@ -41,7 +42,7 @@ let DataController = class DataController {
|
|
41
42
|
show(hash, id, query) {
|
42
43
|
return __awaiter(this, void 0, void 0, function* () {
|
43
44
|
const model = yield this.modelService.validateHashAccess(hash, 'r');
|
44
|
-
const entity =
|
45
|
+
const entity = this.localPropertyService.getEntity(model.model_hash);
|
45
46
|
const options = new index_params_dto_1.IndexParamsDto(query).getOptions();
|
46
47
|
return entity.findOne(id, options);
|
47
48
|
});
|
@@ -66,7 +67,7 @@ __decorate([
|
|
66
67
|
], DataController.prototype, "show", null);
|
67
68
|
DataController = __decorate([
|
68
69
|
(0, common_1.Controller)('api/data/:hash'),
|
69
|
-
__metadata("design:paramtypes", [model_service_1.ModelService])
|
70
|
+
__metadata("design:paramtypes", [model_service_1.ModelService, local_property_service_1.LocalPropertyService])
|
70
71
|
], DataController);
|
71
72
|
exports.DataController = DataController;
|
72
73
|
//# sourceMappingURL=data.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/data.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,yEAAoE;AACpE,
|
1
|
+
{"version":3,"file":"data.controller.js","sourceRoot":"","sources":["../../../src/system/controllers/data.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,yEAAoE;AACpE,oGAA+F;AAC/F,yEAAqE;AAGrE,IAAa,cAAc,GAA3B,MAAa,cAAc;IACvB,YAA6B,YAA0B,EAAmB,oBAA0C;QAAvF,iBAAY,GAAZ,YAAY,CAAc;QAAmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAElH,KAAK,CAAgB,IAAY,EAAW,KAAU;;YACxD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEpE,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACrE,MAAM,OAAO,GAAG,IAAI,iCAAc,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;YAEvD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC;KAAA;IAGK,IAAI,CAAgB,IAAY,EAAe,EAAU,EAAW,KAAU;;YAChF,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YAEpE,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACrE,MAAM,OAAO,GAAG,IAAI,iCAAc,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;YAEvD,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACvC,CAAC;KAAA;CACJ,CAAA;AAlBG;IADC,IAAA,YAAG,GAAE;IACO,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,GAAE,CAAA;;;;2CAOhD;AAGD;IADC,IAAA,YAAG,EAAC,MAAM,CAAC;IACA,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;0CAOxE;AApBQ,cAAc;IAD1B,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAEkB,4BAAY,EAAyC,6CAAoB;GAD3G,cAAc,CAqB1B;AArBY,wCAAc"}
|
@@ -14,6 +14,7 @@ export * from './form.preference.entity';
|
|
14
14
|
export * from './list.preference.entity';
|
15
15
|
export * from './lookup.type.entity';
|
16
16
|
export * from './lookup.value.entity';
|
17
|
+
export * from './mail.log.entity';
|
17
18
|
export * from './menu.entity';
|
18
19
|
export * from './menu.role.entity';
|
19
20
|
export * from './model.column.entity';
|
@@ -26,6 +26,7 @@ __exportStar(require("./form.preference.entity"), exports);
|
|
26
26
|
__exportStar(require("./list.preference.entity"), exports);
|
27
27
|
__exportStar(require("./lookup.type.entity"), exports);
|
28
28
|
__exportStar(require("./lookup.value.entity"), exports);
|
29
|
+
__exportStar(require("./mail.log.entity"), exports);
|
29
30
|
__exportStar(require("./menu.entity"), exports);
|
30
31
|
__exportStar(require("./menu.role.entity"), exports);
|
31
32
|
__exportStar(require("./model.column.entity"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,8DAA4C;AAC5C,iDAA+B;AAC/B,yDAAuC;AACvC,6DAA2C;AAC3C,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC;AACtC,iDAA+B;AAC/B,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,sDAAoC;AACpC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,8DAA4C;AAC5C,iDAA+B;AAC/B,yDAAuC;AACvC,6DAA2C;AAC3C,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC;AACtC,iDAA+B;AAC/B,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,sDAAoC;AACpC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { CommonEntity } from './../../common/libraries/common.entity';
|
2
|
+
export declare class MailLogEntity extends CommonEntity {
|
3
|
+
source_type: string;
|
4
|
+
source_id: string;
|
5
|
+
gateway: string;
|
6
|
+
identifier: string;
|
7
|
+
to: string;
|
8
|
+
processed_on: Date;
|
9
|
+
delivered_on: Date;
|
10
|
+
opened_on: Date;
|
11
|
+
attributes: any;
|
12
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.MailLogEntity = void 0;
|
13
|
+
const common_entity_1 = require("./../../common/libraries/common.entity");
|
14
|
+
const typeorm_1 = require("typeorm");
|
15
|
+
let MailLogEntity = class MailLogEntity extends common_entity_1.CommonEntity {
|
16
|
+
};
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.Column)(),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], MailLogEntity.prototype, "source_type", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], MailLogEntity.prototype, "source_id", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.Column)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], MailLogEntity.prototype, "gateway", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], MailLogEntity.prototype, "identifier", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], MailLogEntity.prototype, "to", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, typeorm_1.Column)(),
|
39
|
+
__metadata("design:type", Date)
|
40
|
+
], MailLogEntity.prototype, "processed_on", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, typeorm_1.Column)(),
|
43
|
+
__metadata("design:type", Date)
|
44
|
+
], MailLogEntity.prototype, "delivered_on", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, typeorm_1.Column)(),
|
47
|
+
__metadata("design:type", Date)
|
48
|
+
], MailLogEntity.prototype, "opened_on", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, typeorm_1.Column)('json'),
|
51
|
+
__metadata("design:type", Object)
|
52
|
+
], MailLogEntity.prototype, "attributes", void 0);
|
53
|
+
MailLogEntity = __decorate([
|
54
|
+
(0, typeorm_1.Entity)('sys_mail_logs')
|
55
|
+
], MailLogEntity);
|
56
|
+
exports.MailLogEntity = MailLogEntity;
|
57
|
+
//# sourceMappingURL=mail.log.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mail.log.entity.js","sourceRoot":"","sources":["../../../src/system/entities/mail.log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qCAAyC;AASzC,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,4BAAY;CA6B9C,CAAA;AA3BG;IADC,IAAA,gBAAM,GAAE;;kDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;gDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;8CACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;iDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;yCACE;AAGX;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;mDAAC;AAGnB;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;mDAAC;AAGnB;IADC,IAAA,gBAAM,GAAE;8BACE,IAAI;gDAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;iDACC;AA1BP,aAAa;IADzB,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,aAAa,CA6BzB;AA7BY,sCAAa"}
|
@@ -32,6 +32,7 @@ import { EventQueueEntity } from './entities/event.queue.entity';
|
|
32
32
|
import { FormColumnEntity } from './entities/form.column.entity';
|
33
33
|
import { FormPreferenceEntity } from './entities/form.preference.entity';
|
34
34
|
import { LookupTypeEntity } from './entities/lookup.type.entity';
|
35
|
+
import { MailLogEntity } from './entities/mail.log.entity';
|
35
36
|
import { MenuEntity } from './entities/menu.entity';
|
36
37
|
import { MenuRoleEntity } from './entities/menu.role.entity';
|
37
38
|
import { ModelColumnEntity } from './entities/model.column.entity';
|
@@ -109,11 +110,11 @@ import { UserGroupMemberSubscriber } from './subscribers/user.group.member.subsc
|
|
109
110
|
import { UserGroupPermissionSubscriber } from './subscribers/user.group.permission.subscriber';
|
110
111
|
import { UserGroupRoleSubscriber } from './subscribers/user.group.role.subscriber';
|
111
112
|
declare const es6Classes: {
|
112
|
-
commands: (typeof
|
113
|
+
commands: (typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof VaccineCommand | typeof DbScannerCommand)[];
|
113
114
|
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof JobController | typeof MenuController | typeof PreferenceController | typeof ReportController | typeof UploadController | typeof UserPreferenceController)[];
|
114
115
|
dtos: (typeof JobRecordParamDto | typeof ModelFormPreferenceCreationDto | typeof LocalFileS3UploadDto | typeof UserPreferenceCreationDto | typeof ModelAllowedColumnDto)[];
|
115
|
-
entities: (typeof
|
116
|
-
jobs: (typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob
|
116
|
+
entities: (typeof LookupTypeEntity | typeof UserGroupRoleEntity | typeof UserGroupEntity | typeof UserGroupMemberEntity | typeof BusinessRuleRoleEntity | typeof BusinessRuleEntity | typeof ColumnDefinitionEntity | typeof ColumnEntity | typeof ModelEntity | typeof FormPreferenceEntity | typeof ModelColumnEntity | typeof RelationshipEntity | typeof ModelRelationshipEntity | typeof ModelRoleEntity | typeof FormColumnEntity | typeof SystemScriptEntity | typeof UiActionPermissionEntity | typeof UiActionEntity | typeof UiActionRoleEntity | typeof PrimaryAxisEntity | typeof ChartEntity | typeof ClientScriptEntity | typeof CommentEntity | typeof DocumentEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof MailLogEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof OpenPropertyEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ReportColumnEntity | typeof ScheduledEventEntity | typeof SecurityRuleEntity | typeof ServiceEntity | typeof SmsTemplateEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity)[];
|
117
|
+
jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
117
118
|
libraries: (typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator)[];
|
118
119
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
119
120
|
services: (typeof EventQueueService | typeof EventDetailService | typeof PropertyService | typeof SecurityRuleService | typeof UiActionService | typeof ModelService | typeof CommonService | typeof ClientScriptService | typeof PreferenceService | typeof BusinessRuleService | typeof ListService | typeof FormService | typeof MenuService | typeof UserPreferenceService | typeof ReportService | typeof UploadService | typeof ScheduledEventService | typeof ColumnService | typeof CommentService | typeof DocumentService | typeof Es6JobsService | typeof Es6Service)[];
|
@@ -38,6 +38,7 @@ const form_preference_entity_1 = require("./entities/form.preference.entity");
|
|
38
38
|
const list_preference_entity_1 = require("./entities/list.preference.entity");
|
39
39
|
const lookup_type_entity_1 = require("./entities/lookup.type.entity");
|
40
40
|
const lookup_value_entity_1 = require("./entities/lookup.value.entity");
|
41
|
+
const mail_log_entity_1 = require("./entities/mail.log.entity");
|
41
42
|
const menu_entity_1 = require("./entities/menu.entity");
|
42
43
|
const menu_role_entity_1 = require("./entities/menu.role.entity");
|
43
44
|
const model_column_entity_1 = require("./entities/model.column.entity");
|
@@ -163,6 +164,7 @@ const es6Classes = {
|
|
163
164
|
list_preference_entity_1.ListPreferenceEntity,
|
164
165
|
lookup_type_entity_1.LookupTypeEntity,
|
165
166
|
lookup_value_entity_1.LookupValueEntity,
|
167
|
+
mail_log_entity_1.MailLogEntity,
|
166
168
|
menu_entity_1.MenuEntity,
|
167
169
|
menu_role_entity_1.MenuRoleEntity,
|
168
170
|
model_column_entity_1.ModelColumnEntity,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,gEAA4D;AAC5D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,iEAA6D;AAC7D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,sEAAgE;AAChE,8EAAuE;AACvE,gGAAyF;AACzF,8EAAwE;AACxE,kGAA2F;AAC3F,sFAAgF;AAChF,0EAAqE;AACrE,oFAA8E;AAC9E,0DAAsD;AACtD,0EAAqE;AACrE,kFAA6E;AAC7E,4DAAwD;AACxD,8DAA0D;AAC1D,gEAA4D;AAC5D,wEAAmE;AACnE,sEAAiE;AACjE,sEAAiE;AACjE,wDAAoD;AACpD,8EAAyE;AACzE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,wDAAoD;AACpD,kEAA6D;AAC7D,wEAAmE;AACnE,0DAAsD;AACtD,oFAA+E;AAC/E,oEAA+D;AAC/D,4DAAwD;AACxD,sEAAiE;AACjE,0EAAqE;AACrE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,gEAA4D;AAC5D,wEAAoE;AACpE,0EAAqE;AACrE,4DAAwD;AACxD,wEAAmE;AACnE,sFAAiF;AACjF,sEAAiE;AACjE,8EAAyE;AACzE,4EAAuE;AACvE,0EAAqE;AACrE,8DAA0D;AAC1D,wEAAmE;AACnE,0EAAqE;AACrE,kEAA6D;AAC7D,wFAAkF;AAClF,4EAAsE;AACtE,oEAA+D;AAC/D,kFAA4E;AAC5E,0FAAoF;AACpF,8EAAwE;AACxE,8EAAyE;AACzE,gFAA0E;AAC1E,gEAA2D;AAC3D,gEAA2D;AAC3D,4EAAuE;AACv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CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/system/es6.classes.ts"],"names":[],"mappings":";;AAAA,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,4EAAuE;AACvE,8EAAyE;AACzE,gFAA2E;AAC3E,gEAA4D;AAC5D,mEAA+D;AAC/D,mEAA+D;AAC/D,mEAA+D;AAC/D,iEAA6D;AAC7D,mEAA+D;AAC/D,+EAA2E;AAC3E,uEAAmE;AACnE,uEAAmE;AACnE,yFAAoF;AACpF,sEAAgE;AAChE,8EAAuE;AACvE,gGAAyF;AACzF,8EAAwE;AACxE,kGAA2F;AAC3F,sFAAgF;AAChF,0EAAqE;AACrE,oFAA8E;AAC9E,0DAAsD;AACtD,0EAAqE;AACrE,kFAA6E;AAC7E,4DAAwD;AACxD,8DAA0D;AAC1D,gEAA4D;AAC5D,wEAAmE;AACnE,sEAAiE;AACjE,sEAAiE;AACjE,wDAAoD;AACpD,8EAAyE;AACzE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,gEAA2D;AAC3D,wDAAoD;AACpD,kEAA6D;AAC7D,wEAAmE;AACnE,0DAAsD;AACtD,oFAA+E;AAC/E,oEAA+D;AAC/D,4DAAwD;AACxD,sEAAiE;AACjE,0EAAqE;AACrE,8EAAyE;AACzE,sEAAiE;AACjE,wEAAmE;AACnE,gEAA4D;AAC5D,wEAAoE;AACpE,0EAAqE;AACrE,4DAAwD;AACxD,wEAAmE;AACnE,sFAAiF;AACjF,sEAAiE;AACjE,8EAAyE;AACzE,4EAAuE;AACvE,0EAAqE;AACrE,8DAA0D;AAC1D,wEAAmE;AACnE,0EAAqE;AACrE,kEAA6D;AAC7D,wFAAkF;AAClF,4EAAsE;AACtE,oEAA+D;AAC/D,kFAA4E;AAC5E,0FAAoF;AACpF,8EAAwE;AACxE,8EAAyE;AACzE,gFAA0E;AAC1E,gEAA2D;AAC3D,gEAA2D;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gEAA6B;QAC7B,oDAAuB;KAC1B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -1,9 +1,11 @@
|
|
1
|
+
import { CommonJob } from '../../common/libraries/common.job';
|
1
2
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
2
3
|
import { ModelEntity } from '../entities/model.entity';
|
3
|
-
import {
|
4
|
+
import { LocalPropertyService } from './../../platformUtility/services/local.property.service';
|
4
5
|
export declare class ModelScannerJob extends CommonJob {
|
5
6
|
protected readonly queueService: QueueService;
|
6
|
-
|
7
|
+
private readonly localPropertyService;
|
8
|
+
constructor(queueService: QueueService, localPropertyService: LocalPropertyService);
|
7
9
|
handle(model_hash: string): Promise<string | any[] | ModelEntity>;
|
8
10
|
private setOneToOneRelations;
|
9
11
|
private setOneToManyRelations;
|