@servicelabsco/nestjs-utility-services 1.0.149 → 1.0.153
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/cli.js +2 -2
- package/dist/cli.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/1643899218270-CreateSmsMessageTable.d.ts +5 -0
- package/dist/migrations/1643899218270-CreateSmsMessageTable.js +24 -0
- package/dist/migrations/1643899218270-CreateSmsMessageTable.js.map +1 -0
- package/dist/platformUtility/commands/entity.generator.command.d.ts +3 -4
- package/dist/platformUtility/commands/entity.generator.command.js +24 -20
- package/dist/platformUtility/commands/entity.generator.command.js.map +1 -1
- package/dist/platformUtility/commands/maintenance.command.d.ts +2 -1
- package/dist/platformUtility/commands/maintenance.command.js +17 -4
- package/dist/platformUtility/commands/maintenance.command.js.map +1 -1
- package/dist/platformUtility/commands/sqs.worker.command.d.ts +6 -2
- package/dist/platformUtility/commands/sqs.worker.command.js +17 -14
- package/dist/platformUtility/commands/sqs.worker.command.js.map +1 -1
- package/dist/platformUtility/commands/sync.class.command.d.ts +2 -4
- package/dist/platformUtility/commands/sync.class.command.js +17 -12
- package/dist/platformUtility/commands/sync.class.command.js.map +1 -1
- package/dist/platformUtility/es6.classes.d.ts +3 -3
- package/dist/platformUtility/platform.utility.module.js +1 -2
- package/dist/platformUtility/platform.utility.module.js.map +1 -1
- package/dist/platformUtility/services/maintenance.service.d.ts +5 -2
- package/dist/platformUtility/services/maintenance.service.js +17 -6
- package/dist/platformUtility/services/maintenance.service.js.map +1 -1
- package/dist/platformUtility/services/queue.service.js +1 -1
- package/dist/platformUtility/services/queue.service.js.map +1 -1
- package/dist/platformUtility/services/sqs.service.d.ts +1 -0
- package/dist/platformUtility/services/sqs.service.js +4 -0
- package/dist/platformUtility/services/sqs.service.js.map +1 -1
- package/dist/system/commands/db.scanner.command.d.ts +3 -4
- package/dist/system/commands/db.scanner.command.js +16 -12
- package/dist/system/commands/db.scanner.command.js.map +1 -1
- package/dist/system/commands/event.queue.command.d.ts +4 -4
- package/dist/system/commands/event.queue.command.js +20 -16
- package/dist/system/commands/event.queue.command.js.map +1 -1
- package/dist/system/commands/index.d.ts +0 -1
- package/dist/system/commands/index.js +0 -1
- package/dist/system/commands/index.js.map +1 -1
- package/dist/system/commands/jobs.scanner.command.d.ts +3 -5
- package/dist/system/commands/jobs.scanner.command.js +16 -13
- package/dist/system/commands/jobs.scanner.command.js.map +1 -1
- package/dist/system/commands/model.scanner.command.d.ts +2 -4
- package/dist/system/commands/model.scanner.command.js +15 -12
- package/dist/system/commands/model.scanner.command.js.map +1 -1
- package/dist/system/commands/report.scanner.command.d.ts +2 -4
- package/dist/system/commands/report.scanner.command.js +15 -12
- package/dist/system/commands/report.scanner.command.js.map +1 -1
- package/dist/system/commands/service.scanner.command.d.ts +3 -4
- package/dist/system/commands/service.scanner.command.js +17 -13
- package/dist/system/commands/service.scanner.command.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/sms.message.entity.d.ts +16 -0
- package/dist/system/entities/sms.message.entity.js +69 -0
- package/dist/system/entities/sms.message.entity.js.map +1 -0
- package/dist/system/es6.classes.d.ts +3 -3
- package/dist/system/es6.classes.js +3 -10
- package/dist/system/es6.classes.js.map +1 -1
- package/dist/system/system.module.js +1 -2
- package/dist/system/system.module.js.map +1 -1
- package/package.json +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"report.scanner.command.js","sourceRoot":"","sources":["../../../src/system/commands/report.scanner.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,
|
1
|
+
{"version":3,"file":"report.scanner.command.js","sourceRoot":"","sources":["../../../src/system/commands/report.scanner.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAAyC;AACzC,gFAA4E;AAC5E,6DAAyD;AACzD,2EAAqE;AAGrE,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAM7B,YAA6B,YAA0B,EAAmB,mBAAwC;QAArF,iBAAY,GAAZ,YAAY,CAAc;QAAmB,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAMhH,OAAO;;YACT,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;YAEhC,MAAM,OAAO,GAAG,MAAM,4BAAY,CAAC,IAAI,EAAE,CAAC;YAC1C,MAAM,QAAQ,GAAG,EAAE,CAAC;YAEpB,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACvB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;YAChE,CAAC,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;gBACtC,OAAO,GAAG,CAAC;YACf,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;AAdG;IAJC,IAAA,wBAAO,EAAC;QACL,OAAO,EAAE,aAAa;QACtB,QAAQ,EAAE,0CAA0C;KACvD,CAAC;;;;mDAcD;AAzBQ,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAOkC,4BAAY,EAAwC,4CAAmB;GANzG,oBAAoB,CA0BhC;AA1BY,oDAAoB"}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { ConsoleService } from 'nestjs-console';
|
2
1
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
3
2
|
import { CommonService } from '../services/common.service';
|
4
3
|
export declare class ServiceScannerCommand {
|
5
|
-
private readonly consoleService;
|
6
4
|
private readonly queueService;
|
7
5
|
private readonly commonService;
|
8
|
-
|
9
|
-
|
6
|
+
private logger;
|
7
|
+
constructor(queueService: QueueService, commonService: CommonService);
|
8
|
+
process(): Promise<void>;
|
10
9
|
}
|
@@ -20,35 +20,39 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
21
|
exports.ServiceScannerCommand = void 0;
|
22
22
|
const common_1 = require("@nestjs/common");
|
23
|
-
const
|
23
|
+
const nestjs_command_1 = require("nestjs-command");
|
24
24
|
const platform_constants_1 = require("../../config/platform.constants");
|
25
25
|
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
26
26
|
const common_service_1 = require("../services/common.service");
|
27
27
|
let ServiceScannerCommand = class ServiceScannerCommand {
|
28
|
-
constructor(
|
29
|
-
this.consoleService = consoleService;
|
28
|
+
constructor(queueService, commonService) {
|
30
29
|
this.queueService = queueService;
|
31
30
|
this.commonService = commonService;
|
32
|
-
this.
|
31
|
+
this.logger = new common_1.Logger('ConsoleCommand');
|
32
|
+
}
|
33
|
+
process() {
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
33
35
|
yield this.queueService.pause();
|
34
36
|
const services = platform_constants_1.default.services;
|
35
37
|
for (const key of Object.keys(services)) {
|
36
38
|
const entity = yield this.commonService.checkOrSetRecord(key);
|
37
|
-
|
39
|
+
this.logger.log('processed service : ', entity.name);
|
38
40
|
}
|
39
41
|
});
|
40
|
-
const cli = this.consoleService.getCli();
|
41
|
-
this.consoleService.createCommand({
|
42
|
-
command: 'sync:service',
|
43
|
-
description: 'sync up all the services defined in the system',
|
44
|
-
}, this.syncServices, cli);
|
45
42
|
}
|
46
43
|
};
|
44
|
+
__decorate([
|
45
|
+
(0, nestjs_command_1.Command)({
|
46
|
+
command: 'sync:service',
|
47
|
+
describe: 'sync up all the services defined in the system',
|
48
|
+
}),
|
49
|
+
__metadata("design:type", Function),
|
50
|
+
__metadata("design:paramtypes", []),
|
51
|
+
__metadata("design:returntype", Promise)
|
52
|
+
], ServiceScannerCommand.prototype, "process", null);
|
47
53
|
ServiceScannerCommand = __decorate([
|
48
54
|
(0, common_1.Injectable)(),
|
49
|
-
__metadata("design:paramtypes", [
|
50
|
-
queue_service_1.QueueService,
|
51
|
-
common_service_1.CommonService])
|
55
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService, common_service_1.CommonService])
|
52
56
|
], ServiceScannerCommand);
|
53
57
|
exports.ServiceScannerCommand = ServiceScannerCommand;
|
54
58
|
//# sourceMappingURL=service.scanner.command.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.scanner.command.js","sourceRoot":"","sources":["../../../src/system/commands/service.scanner.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"service.scanner.command.js","sourceRoot":"","sources":["../../../src/system/commands/service.scanner.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,mDAAyC;AACzC,wEAAgE;AAChE,gFAA4E;AAC5E,+DAA2D;AAQ3D,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAe9B,YAA6B,YAA0B,EAAmB,aAA4B;QAAzE,iBAAY,GAAZ,YAAY,CAAc;QAAmB,kBAAa,GAAb,aAAa,CAAe;QAR9F,WAAM,GAAW,IAAI,eAAM,CAAC,gBAAgB,CAAC,CAAC;IAQmD,CAAC;IAMpG,OAAO;;YACT,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;YAEhC,MAAM,QAAQ,GAAG,4BAAiB,CAAC,QAAQ,CAAC;YAE5C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;gBACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBAE9D,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sBAAsB,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;aACxD;QACL,CAAC;KAAA;CACJ,CAAA;AAXG;IAJC,IAAA,wBAAO,EAAC;QACL,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,gDAAgD;KAC7D,CAAC;;;;oDAWD;AA/BQ,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAgBkC,4BAAY,EAAkC,8BAAa;GAf7F,qBAAqB,CAgCjC;AAhCY,sDAAqB"}
|
@@ -38,6 +38,7 @@ export * from './scheduled.event.entity';
|
|
38
38
|
export * from './secondary.axis.entity';
|
39
39
|
export * from './security.rule.entity';
|
40
40
|
export * from './service.entity';
|
41
|
+
export * from './sms.message.entity';
|
41
42
|
export * from './sms.template.entity';
|
42
43
|
export * from './system.script.entity';
|
43
44
|
export * from './ui.action.entity';
|
@@ -50,6 +50,7 @@ __exportStar(require("./scheduled.event.entity"), exports);
|
|
50
50
|
__exportStar(require("./secondary.axis.entity"), exports);
|
51
51
|
__exportStar(require("./security.rule.entity"), exports);
|
52
52
|
__exportStar(require("./service.entity"), exports);
|
53
|
+
__exportStar(require("./sms.message.entity"), exports);
|
53
54
|
__exportStar(require("./sms.template.entity"), exports);
|
54
55
|
__exportStar(require("./system.script.entity"), exports);
|
55
56
|
__exportStar(require("./ui.action.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,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"}
|
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,uDAAqC;AACrC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,0DAAwC;AACxC,sDAAoC;AACpC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,2DAAyC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { CommonEntity } from './../../common/libraries/common.entity';
|
2
|
+
import { LookupValueEntity } from './lookup.value.entity';
|
3
|
+
import { SmsTemplateEntity } from './sms.template.entity';
|
4
|
+
export declare class SmsMessageEntity extends CommonEntity {
|
5
|
+
source_type: string;
|
6
|
+
source_id: number;
|
7
|
+
dialing_code: number;
|
8
|
+
mobile: number;
|
9
|
+
content: string;
|
10
|
+
template_id: number;
|
11
|
+
gateway_id: number;
|
12
|
+
delivered_on: Date;
|
13
|
+
attributes: any;
|
14
|
+
template: SmsTemplateEntity;
|
15
|
+
gateway: LookupValueEntity;
|
16
|
+
}
|
@@ -0,0 +1,69 @@
|
|
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.SmsMessageEntity = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
const common_entity_1 = require("./../../common/libraries/common.entity");
|
15
|
+
const lookup_value_entity_1 = require("./lookup.value.entity");
|
16
|
+
const sms_template_entity_1 = require("./sms.template.entity");
|
17
|
+
let SmsMessageEntity = class SmsMessageEntity extends common_entity_1.CommonEntity {
|
18
|
+
};
|
19
|
+
__decorate([
|
20
|
+
(0, typeorm_1.Column)(),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], SmsMessageEntity.prototype, "source_type", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.Column)(),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], SmsMessageEntity.prototype, "source_id", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)(),
|
29
|
+
__metadata("design:type", Number)
|
30
|
+
], SmsMessageEntity.prototype, "dialing_code", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, typeorm_1.Column)(),
|
33
|
+
__metadata("design:type", Number)
|
34
|
+
], SmsMessageEntity.prototype, "mobile", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, typeorm_1.Column)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], SmsMessageEntity.prototype, "content", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.Column)(),
|
41
|
+
__metadata("design:type", Number)
|
42
|
+
], SmsMessageEntity.prototype, "template_id", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, typeorm_1.Column)(),
|
45
|
+
__metadata("design:type", Number)
|
46
|
+
], SmsMessageEntity.prototype, "gateway_id", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, typeorm_1.Column)(),
|
49
|
+
__metadata("design:type", Date)
|
50
|
+
], SmsMessageEntity.prototype, "delivered_on", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, typeorm_1.Column)('json'),
|
53
|
+
__metadata("design:type", Object)
|
54
|
+
], SmsMessageEntity.prototype, "attributes", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, typeorm_1.ManyToOne)(() => sms_template_entity_1.SmsTemplateEntity),
|
57
|
+
(0, typeorm_1.JoinColumn)({ name: 'template_id' }),
|
58
|
+
__metadata("design:type", sms_template_entity_1.SmsTemplateEntity)
|
59
|
+
], SmsMessageEntity.prototype, "template", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, typeorm_1.ManyToOne)(() => lookup_value_entity_1.LookupValueEntity),
|
62
|
+
(0, typeorm_1.JoinColumn)({ name: 'gateway_id' }),
|
63
|
+
__metadata("design:type", lookup_value_entity_1.LookupValueEntity)
|
64
|
+
], SmsMessageEntity.prototype, "gateway", void 0);
|
65
|
+
SmsMessageEntity = __decorate([
|
66
|
+
(0, typeorm_1.Entity)('sys_sms_messages')
|
67
|
+
], SmsMessageEntity);
|
68
|
+
exports.SmsMessageEntity = SmsMessageEntity;
|
69
|
+
//# sourceMappingURL=sms.message.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sms.message.entity.js","sourceRoot":"","sources":["../../../src/system/entities/sms.message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,0EAAsE;AACtE,+DAA0D;AAC1D,+DAA0D;AAS1D,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,4BAAY;CA+BjD,CAAA;AA7BG;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;mDACS;AAGlB;IADC,IAAA,gBAAM,GAAE;;sDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;gDACM;AAGf;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;oDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;sDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;oDACC;AAGyD;IAAxE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,uCAAiB;kDAAC;AAC7B;IAAvE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAAU,uCAAiB;iDAAC;AA9B1F,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,gBAAgB,CA+B5B;AA/BY,4CAAgB"}
|
@@ -4,7 +4,6 @@ import { JobsScannerCommand } from './commands/jobs.scanner.command';
|
|
4
4
|
import { ModelScannerCommand } from './commands/model.scanner.command';
|
5
5
|
import { ReportScannerCommand } from './commands/report.scanner.command';
|
6
6
|
import { ServiceScannerCommand } from './commands/service.scanner.command';
|
7
|
-
import { VaccineCommand } from './commands/vaccine.command';
|
8
7
|
import { BaseController } from './controllers/base.controller';
|
9
8
|
import { DataController } from './controllers/data.controller';
|
10
9
|
import { FormController } from './controllers/form.controller';
|
@@ -53,6 +52,7 @@ import { ReportRoleEntity } from './entities/report.role.entity';
|
|
53
52
|
import { ScheduledEventEntity } from './entities/scheduled.event.entity';
|
54
53
|
import { SecurityRuleEntity } from './entities/security.rule.entity';
|
55
54
|
import { ServiceEntity } from './entities/service.entity';
|
55
|
+
import { SmsMessageEntity } from './entities/sms.message.entity';
|
56
56
|
import { SmsTemplateEntity } from './entities/sms.template.entity';
|
57
57
|
import { SystemScriptEntity } from './entities/system.script.entity';
|
58
58
|
import { UiActionEntity } from './entities/ui.action.entity';
|
@@ -110,10 +110,10 @@ import { UserGroupMemberSubscriber } from './subscribers/user.group.member.subsc
|
|
110
110
|
import { UserGroupPermissionSubscriber } from './subscribers/user.group.permission.subscriber';
|
111
111
|
import { UserGroupRoleSubscriber } from './subscribers/user.group.role.subscriber';
|
112
112
|
declare const es6Classes: {
|
113
|
-
commands: (typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof
|
113
|
+
commands: (typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof DbScannerCommand)[];
|
114
114
|
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof JobController | typeof MenuController | typeof PreferenceController | typeof ReportController | typeof UploadController | typeof UserPreferenceController)[];
|
115
115
|
dtos: (typeof JobRecordParamDto | typeof ModelFormPreferenceCreationDto | typeof LocalFileS3UploadDto | typeof UserPreferenceCreationDto | typeof ModelAllowedColumnDto)[];
|
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)[];
|
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 SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity)[];
|
117
117
|
jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
118
118
|
libraries: (typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator)[];
|
119
119
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
@@ -6,7 +6,6 @@ const jobs_scanner_command_1 = require("./commands/jobs.scanner.command");
|
|
6
6
|
const model_scanner_command_1 = require("./commands/model.scanner.command");
|
7
7
|
const report_scanner_command_1 = require("./commands/report.scanner.command");
|
8
8
|
const service_scanner_command_1 = require("./commands/service.scanner.command");
|
9
|
-
const vaccine_command_1 = require("./commands/vaccine.command");
|
10
9
|
const base_controller_1 = require("./controllers/base.controller");
|
11
10
|
const data_controller_1 = require("./controllers/data.controller");
|
12
11
|
const form_controller_1 = require("./controllers/form.controller");
|
@@ -62,6 +61,7 @@ const scheduled_event_entity_1 = require("./entities/scheduled.event.entity");
|
|
62
61
|
const secondary_axis_entity_1 = require("./entities/secondary.axis.entity");
|
63
62
|
const security_rule_entity_1 = require("./entities/security.rule.entity");
|
64
63
|
const service_entity_1 = require("./entities/service.entity");
|
64
|
+
const sms_message_entity_1 = require("./entities/sms.message.entity");
|
65
65
|
const sms_template_entity_1 = require("./entities/sms.template.entity");
|
66
66
|
const system_script_entity_1 = require("./entities/system.script.entity");
|
67
67
|
const ui_action_entity_1 = require("./entities/ui.action.entity");
|
@@ -119,15 +119,7 @@ const user_group_member_subscriber_1 = require("./subscribers/user.group.member.
|
|
119
119
|
const user_group_permission_subscriber_1 = require("./subscribers/user.group.permission.subscriber");
|
120
120
|
const user_group_role_subscriber_1 = require("./subscribers/user.group.role.subscriber");
|
121
121
|
const es6Classes = {
|
122
|
-
commands: [
|
123
|
-
db_scanner_command_1.DbScannerCommand,
|
124
|
-
event_queue_command_1.EventQueueCommand,
|
125
|
-
jobs_scanner_command_1.JobsScannerCommand,
|
126
|
-
model_scanner_command_1.ModelScannerCommand,
|
127
|
-
report_scanner_command_1.ReportScannerCommand,
|
128
|
-
service_scanner_command_1.ServiceScannerCommand,
|
129
|
-
vaccine_command_1.VaccineCommand,
|
130
|
-
],
|
122
|
+
commands: [db_scanner_command_1.DbScannerCommand, event_queue_command_1.EventQueueCommand, jobs_scanner_command_1.JobsScannerCommand, model_scanner_command_1.ModelScannerCommand, report_scanner_command_1.ReportScannerCommand, service_scanner_command_1.ServiceScannerCommand],
|
131
123
|
controllers: [
|
132
124
|
base_controller_1.BaseController,
|
133
125
|
data_controller_1.DataController,
|
@@ -188,6 +180,7 @@ const es6Classes = {
|
|
188
180
|
secondary_axis_entity_1.SecondaryAxisEntity,
|
189
181
|
security_rule_entity_1.SecurityRuleEntity,
|
190
182
|
service_entity_1.ServiceEntity,
|
183
|
+
sms_message_entity_1.SmsMessageEntity,
|
191
184
|
sms_template_entity_1.SmsTemplateEntity,
|
192
185
|
system_script_entity_1.SystemScriptEntity,
|
193
186
|
ui_action_entity_1.UiActionEntity,
|
@@ -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,
|
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,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,sEAAiE;AACjE,wEAAmE;AACnE,0EAAqE;AACrE,kEAA6D;AAC7D,wFAAkF;AAClF,4EAAsE;AACtE,oEAA+D;AAC/D,kFAA4E;AAC5E,0FAAoF;AACpF,8EAAwE;AACxE,8EAAyE;AACzE,gFAA0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B;QACtB,qDAAwB;QACxB,wDAAyB;QACzB,gEAA6B;QAC7B,oDAAuB;KAC1B;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SystemModule = void 0;
|
10
10
|
const common_1 = require("@nestjs/common");
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
12
|
-
const nestjs_console_1 = require("nestjs-console");
|
13
12
|
const auth_module_1 = require("../auth/auth.module");
|
14
13
|
const platform_utility_module_1 = require("../platformUtility/platform.utility.module");
|
15
14
|
const es6_classes_1 = require("./es6.classes");
|
@@ -17,7 +16,7 @@ let SystemModule = class SystemModule {
|
|
17
16
|
};
|
18
17
|
SystemModule = __decorate([
|
19
18
|
(0, common_1.Module)({
|
20
|
-
imports: [typeorm_1.TypeOrmModule.forFeature(es6_classes_1.default.entities), auth_module_1.AuthModule, platform_utility_module_1.PlatformUtilityModule
|
19
|
+
imports: [typeorm_1.TypeOrmModule.forFeature(es6_classes_1.default.entities), auth_module_1.AuthModule, platform_utility_module_1.PlatformUtilityModule],
|
21
20
|
controllers: es6_classes_1.default.controllers,
|
22
21
|
providers: [...es6_classes_1.default.services, ...es6_classes_1.default.commands, ...es6_classes_1.default.subscribers, ...es6_classes_1.default.jobs],
|
23
22
|
exports: [...es6_classes_1.default.services, ...es6_classes_1.default.jobs],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system.module.js","sourceRoot":"","sources":["../../src/system/system.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,
|
1
|
+
{"version":3,"file":"system.module.js","sourceRoot":"","sources":["../../src/system/system.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,qDAAiD;AACjD,wFAAmF;AACnF,+CAAuC;AAQvC,IAAa,YAAY,GAAzB,MAAa,YAAY;CAAG,CAAA;AAAf,YAAY;IANxB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,qBAAU,CAAC,QAAQ,CAAC,EAAE,wBAAU,EAAE,+CAAqB,CAAC;QAC3F,WAAW,EAAE,qBAAU,CAAC,WAAW;QACnC,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,WAAW,EAAE,GAAG,qBAAU,CAAC,IAAI,CAAC;QAC1G,OAAO,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,IAAI,CAAC;KACxD,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicelabsco/nestjs-utility-services",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.153",
|
4
4
|
"description": "NestJS generic packages to support development",
|
5
5
|
"author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"m:r": "npm run typeorm migration:run",
|
29
29
|
"m:c": "npm run typeorm migration:create -- -n",
|
30
30
|
"m:rev": "npm run typeorm migration:revert",
|
31
|
-
"
|
31
|
+
"command": "npx nestjs-command",
|
32
32
|
"console": "node dist/console.js",
|
33
33
|
"sonar": "node sonar-project.js"
|
34
34
|
},
|
@@ -65,6 +65,7 @@
|
|
65
65
|
"helmet": "^4.6.0",
|
66
66
|
"md5": "^2.3.0",
|
67
67
|
"nestjs-command": "^3.1.1",
|
68
|
+
"nestjs-console": "^7.0.1",
|
68
69
|
"parse-bearer-token": "^1.0.1",
|
69
70
|
"passport-facebook": "^3.0.0",
|
70
71
|
"passport-google-oauth20": "^2.0.0",
|
@@ -99,7 +100,6 @@
|
|
99
100
|
"express-http-context": "^1.2.4",
|
100
101
|
"install-peers-cli": "^2.2.0",
|
101
102
|
"jest": "^27.3.1",
|
102
|
-
"nestjs-console": "^7.0.0",
|
103
103
|
"passport": "^0.5.0",
|
104
104
|
"pg": "^8.7.1",
|
105
105
|
"prettier": "^2.4.1",
|