@servicelabsco/nestjs-utility-services 1.0.145 → 1.0.149
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 -1
- package/dist/app.controller.js +3 -1
- package/dist/app.controller.js.map +1 -1
- package/dist/app.module.js +2 -0
- package/dist/app.module.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +32 -0
- package/dist/cli.js.map +1 -0
- package/dist/common/libraries/common.job.d.ts +1 -0
- package/dist/common/libraries/common.job.js +17 -2
- package/dist/common/libraries/common.job.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/commands/index.d.ts +1 -0
- package/dist/platformUtility/commands/index.js +1 -0
- package/dist/platformUtility/commands/index.js.map +1 -1
- package/dist/platformUtility/commands/sqs.worker.command.d.ts +13 -0
- package/dist/platformUtility/commands/sqs.worker.command.js +117 -0
- package/dist/platformUtility/commands/sqs.worker.command.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +6 -3
- package/dist/platformUtility/es6.classes.js +6 -2
- package/dist/platformUtility/es6.classes.js.map +1 -1
- package/dist/platformUtility/jobs/index.d.ts +1 -0
- package/dist/platformUtility/jobs/index.js +1 -0
- package/dist/platformUtility/jobs/index.js.map +1 -1
- package/dist/platformUtility/jobs/test.job.d.ts +8 -0
- package/dist/platformUtility/jobs/test.job.js +42 -0
- package/dist/platformUtility/jobs/test.job.js.map +1 -0
- package/dist/platformUtility/services/dynamo.service.js +4 -4
- package/dist/platformUtility/services/dynamo.service.js.map +1 -1
- package/dist/platformUtility/services/es6.jobs.service.d.ts +3 -1
- package/dist/platformUtility/services/es6.jobs.service.js +7 -2
- package/dist/platformUtility/services/es6.jobs.service.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/mail.service.d.ts +7 -1
- package/dist/platformUtility/services/mail.service.js +26 -2
- package/dist/platformUtility/services/mail.service.js.map +1 -1
- package/dist/platformUtility/services/queue.service.d.ts +7 -4
- package/dist/platformUtility/services/queue.service.js +23 -10
- package/dist/platformUtility/services/queue.service.js.map +1 -1
- package/dist/platformUtility/services/sqs.service.d.ts +8 -0
- package/dist/platformUtility/services/sqs.service.js +86 -0
- package/dist/platformUtility/services/sqs.service.js.map +1 -0
- 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 +2 -1
- package/dist/system/es6.classes.js +2 -0
- package/dist/system/es6.classes.js.map +1 -1
- package/package.json +4 -2
package/dist/app.controller.d.ts
CHANGED
package/dist/app.controller.js
CHANGED
@@ -39,7 +39,9 @@ let AppController = class AppController {
|
|
39
39
|
});
|
40
40
|
}
|
41
41
|
set() {
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
43
|
+
return this.queueService.addJob('b20ed62e97fbef22a56c84c4908996a6', 123);
|
44
|
+
});
|
43
45
|
}
|
44
46
|
};
|
45
47
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAiD;AACjD,+CAA2C;AAC3C,kDAA+C;
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAAiD;AACjD,+CAA2C;AAC3C,kDAA+C;AAE/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;;YACL,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,kCAAkC,EAAE,GAAG,CAAC,CAAC;QAE7E,CAAC;KAAA;CACJ,CAAA;AAnBG;IADC,IAAA,YAAG,GAAE;;;;wCAGL;AAQD;IADC,IAAA,YAAG,EAAC,UAAU,CAAC;;;;sDAGf;AAGD;IADC,IAAA,YAAG,EAAC,KAAK,CAAC;;;;wCAIV;AAtBQ,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEgC,wBAAU,EAAiC,4BAAY;GADvF,aAAa,CAuBzB;AAvBY,sCAAa"}
|
package/dist/app.module.js
CHANGED
@@ -10,6 +10,7 @@ exports.AppModule = void 0;
|
|
10
10
|
const bull_1 = require("@nestjs/bull");
|
11
11
|
const common_1 = require("@nestjs/common");
|
12
12
|
const typeorm_1 = require("@nestjs/typeorm");
|
13
|
+
const nestjs_command_1 = require("nestjs-command");
|
13
14
|
const nestjs_console_1 = require("nestjs-console");
|
14
15
|
const app_controller_1 = require("./app.controller");
|
15
16
|
const app_service_1 = require("./app.service");
|
@@ -43,6 +44,7 @@ AppModule = __decorate([
|
|
43
44
|
security_module_1.SecurityModule,
|
44
45
|
common_module_1.CommonModule,
|
45
46
|
nestjs_console_1.ConsoleModule,
|
47
|
+
nestjs_command_1.CommandModule,
|
46
48
|
],
|
47
49
|
controllers: [app_controller_1.AppController],
|
48
50
|
providers: [app_service_1.AppService],
|
package/dist/app.module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,2CAA2E;AAC3E,6CAAgD;AAChD,mDAA+C;AAC/C,qDAAiD;AACjD,+CAA2C;AAC3C,oDAAgD;AAChD,oFAA+E;AAC/E,sEAAkE;AAClE,oFAAgF;AAChF,0DAAsD;AACtD,qDAAqD;AACrD,qDAAqD;AACrD,iGAA6F;AAC7F,uFAAkF;AAClF,gEAA4D;AAC5D,0DAAsD;
|
1
|
+
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,2CAA2E;AAC3E,6CAAgD;AAChD,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAiD;AACjD,+CAA2C;AAC3C,oDAAgD;AAChD,oFAA+E;AAC/E,sEAAkE;AAClE,oFAAgF;AAChF,0DAAsD;AACtD,qDAAqD;AACrD,qDAAqD;AACrD,iGAA6F;AAC7F,uFAAkF;AAClF,gEAA4D;AAC5D,0DAAsD;AAiBtD,IAAa,SAAS,GAAtB,MAAa,SAAS;IAClB,SAAS,CAAC,QAA4B;QAClC,QAAQ,CAAC,KAAK,CAAC,8CAAqB,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,sBAAa,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1F,QAAQ,CAAC,KAAK,CAAC,8BAAa,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,sBAAa,CAAC,GAAG,EAAE,CAAC,CAAC;QAClF,QAAQ,CAAC,KAAK,CAAC,2CAAmB,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,sBAAa,CAAC,GAAG,EAAE,CAAC,CAAC;QACxF,QAAQ,CAAC,KAAK,CAAC,4CAAoB,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,sBAAa,CAAC,GAAG,EAAE,CAAC,CAAC;IACjG,CAAC;CACJ,CAAA;AAPY,SAAS;IAfrB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,uBAAa,CAAC,OAAO,CAAC,SAAS,CAAC;YAChC,iBAAU,CAAC,OAAO,CAAC,WAAW,CAAC;YAC/B,+CAAqB;YACrB,wBAAU;YACV,4BAAY;YACZ,gCAAc;YACd,4BAAY;YACZ,8BAAa;YACb,8BAAa;SAChB;QACD,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KAC1B,CAAC;GACW,SAAS,CAOrB;AAPY,8BAAS"}
|
package/dist/cli.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/cli.js
ADDED
@@ -0,0 +1,32 @@
|
|
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
|
+
const app_module_1 = require("./app.module");
|
13
|
+
const core_1 = require("@nestjs/core");
|
14
|
+
const nestjs_command_1 = require("nestjs-command");
|
15
|
+
function bootstrap() {
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
17
|
+
const app = yield core_1.NestFactory.createApplicationContext(app_module_1.AppModule, {
|
18
|
+
logger: ['error'],
|
19
|
+
});
|
20
|
+
try {
|
21
|
+
yield app.select(nestjs_command_1.CommandModule).get(nestjs_command_1.CommandService).exec();
|
22
|
+
yield app.close();
|
23
|
+
}
|
24
|
+
catch (error) {
|
25
|
+
global.console.error(error);
|
26
|
+
yield app.close();
|
27
|
+
process.exit(1);
|
28
|
+
}
|
29
|
+
});
|
30
|
+
}
|
31
|
+
bootstrap();
|
32
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAAyC;AACzC,uCAA2C;AAC3C,mDAA+D;AAE/D,SAAe,SAAS;;QACpB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,wBAAwB,CAAC,sBAAS,EAAE;YAC9D,MAAM,EAAE,CAAC,OAAO,CAAC;SACpB,CAAC,CAAC;QAEH,IAAI;YACA,MAAM,GAAG,CAAC,MAAM,CAAC,8BAAa,CAAC,CAAC,GAAG,CAAC,+BAAc,CAAC,CAAC,IAAI,EAAE,CAAC;YAC3D,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;SACrB;QAAC,OAAO,KAAK,EAAE;YACZ,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC5B,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;YAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACnB;IACL,CAAC;CAAA;AACD,SAAS,EAAE,CAAC"}
|
@@ -3,6 +3,7 @@ import { QueueOptionsDto } from '../../platformUtility/dtos/queue.options.dto';
|
|
3
3
|
import { QueueService } from '../../platformUtility/services/queue.service';
|
4
4
|
import { BaseJobInterface } from './base.job.interface';
|
5
5
|
export declare class CommonJob implements BaseJobInterface {
|
6
|
+
protected mode: string;
|
6
7
|
protected queueService: QueueService;
|
7
8
|
dispatch(data: any, options?: QueueOptionsDto): Promise<any>;
|
8
9
|
delayedDispatch(data: any, options?: QueueOptionsDto): Promise<any>;
|
@@ -10,8 +10,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.CommonJob = void 0;
|
13
|
+
const operation_exception_1 = require("./../exceptions/operation.exception");
|
14
|
+
const config = require("config");
|
13
15
|
const hash_1 = require("./hash");
|
14
16
|
class CommonJob {
|
17
|
+
constructor() {
|
18
|
+
this.mode = 'redis';
|
19
|
+
}
|
15
20
|
dispatch(data, options) {
|
16
21
|
return __awaiter(this, void 0, void 0, function* () {
|
17
22
|
const payload = {
|
@@ -20,7 +25,12 @@ class CommonJob {
|
|
20
25
|
name: this.constructor.name,
|
21
26
|
};
|
22
27
|
options = options !== null && options !== void 0 ? options : {};
|
23
|
-
|
28
|
+
if (this.mode === 'redis')
|
29
|
+
return this.queueService.add('generic.job.trigger', payload, options);
|
30
|
+
const sqsQueue = config.get(`sqs.${this.mode}`);
|
31
|
+
if (!sqsQueue)
|
32
|
+
throw new operation_exception_1.OperationException(`Queue ${this.mode} is not defined in the system. please add is under sqs`);
|
33
|
+
return this.queueService.sqsService.add(sqsQueue, payload);
|
24
34
|
});
|
25
35
|
}
|
26
36
|
delayedDispatch(data, options) {
|
@@ -32,7 +42,12 @@ class CommonJob {
|
|
32
42
|
};
|
33
43
|
options = options !== null && options !== void 0 ? options : {};
|
34
44
|
options.delay = options.delay || 200;
|
35
|
-
|
45
|
+
if (this.mode === 'redis')
|
46
|
+
return this.queueService.add('generic.job.trigger', payload, options);
|
47
|
+
const sqsQueue = config.get(`sqs.${this.mode}`);
|
48
|
+
if (!sqsQueue)
|
49
|
+
throw new operation_exception_1.OperationException(`Queue ${this.mode} is not defined in the system. please add is under sqs`);
|
50
|
+
return this.queueService.sqsService.add(sqsQueue, payload);
|
36
51
|
});
|
37
52
|
}
|
38
53
|
handle(data, job) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.job.js","sourceRoot":"","sources":["../../../src/common/libraries/common.job.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"common.job.js","sourceRoot":"","sources":["../../../src/common/libraries/common.job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAyE;AAEzE,iCAAiC;AAIjC,iCAA8B;AAO9B,MAAa,SAAS;IAAtB;QAQc,SAAI,GAAW,OAAO,CAAC;IAoErC,CAAC;IApDS,QAAQ,CAAC,IAAS,EAAE,OAAyB;;YAC/C,MAAM,OAAO,GAAG;gBACZ,GAAG,EAAE,WAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;gBACxC,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI;aAC9B,CAAC;YAEF,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;YAExB,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;gBAAE,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAEjG,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAChD,IAAI,CAAC,QAAQ;gBAAE,MAAM,IAAI,wCAAkB,CAAC,SAAS,IAAI,CAAC,IAAI,wDAAwD,CAAC,CAAC;YAExH,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC/D,CAAC;KAAA;IASK,eAAe,CAAC,IAAS,EAAE,OAAyB;;YACtD,MAAM,OAAO,GAAG;gBACZ,GAAG,EAAE,WAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;gBACxC,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI;aAC9B,CAAC;YAEF,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;YACxB,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,GAAG,CAAC;YAErC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;gBAAE,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAEjG,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAChD,IAAI,CAAC,QAAQ;gBAAE,MAAM,IAAI,wCAAkB,CAAC,SAAS,IAAI,CAAC,IAAI,wDAAwD,CAAC,CAAC;YAExH,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC/D,CAAC;KAAA;IASK,MAAM,CAAC,IAAS,EAAE,GAAS;;YAC7B,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AA5ED,8BA4EC"}
|
@@ -24,6 +24,7 @@ import { FormPreferenceEntity } from '../system/entities/form.preference.entity'
|
|
24
24
|
import { ListPreferenceEntity } from '../system/entities/list.preference.entity';
|
25
25
|
import { LookupTypeEntity } from '../system/entities/lookup.type.entity';
|
26
26
|
import { LookupValueEntity } from '../system/entities/lookup.value.entity';
|
27
|
+
import { MailLogEntity } from '../system/entities/mail.log.entity';
|
27
28
|
import { MenuEntity } from '../system/entities/menu.entity';
|
28
29
|
import { MenuRoleEntity } from '../system/entities/menu.role.entity';
|
29
30
|
import { ModelColumnEntity } from '../system/entities/model.column.entity';
|
@@ -84,6 +85,7 @@ declare const entityConstants: {
|
|
84
85
|
adb199a467c1d3df2eee56ef45adde17: typeof ListPreferenceEntity;
|
85
86
|
'9efb14076dca6034ab4c3255c5c63aa2': typeof LookupTypeEntity;
|
86
87
|
ca12043141c4bbc3b08a13bd8dfa9bc8: typeof LookupValueEntity;
|
88
|
+
a3da8b74348b592a71fe3667f5d92954: typeof MailLogEntity;
|
87
89
|
'1ef387eee5c23a8d3c8f6a3130e1c397': typeof MenuEntity;
|
88
90
|
'0357bfa9c9022c76f5302e2274e249fe': typeof MenuRoleEntity;
|
89
91
|
e9e8c013efaa8c7456bc2384506d86df: typeof ModelColumnEntity;
|
@@ -25,6 +25,7 @@ const form_preference_entity_1 = require("../system/entities/form.preference.ent
|
|
25
25
|
const list_preference_entity_1 = require("../system/entities/list.preference.entity");
|
26
26
|
const lookup_type_entity_1 = require("../system/entities/lookup.type.entity");
|
27
27
|
const lookup_value_entity_1 = require("../system/entities/lookup.value.entity");
|
28
|
+
const mail_log_entity_1 = require("../system/entities/mail.log.entity");
|
28
29
|
const menu_entity_1 = require("../system/entities/menu.entity");
|
29
30
|
const menu_role_entity_1 = require("../system/entities/menu.role.entity");
|
30
31
|
const model_column_entity_1 = require("../system/entities/model.column.entity");
|
@@ -85,6 +86,7 @@ const entityConstants = {
|
|
85
86
|
adb199a467c1d3df2eee56ef45adde17: list_preference_entity_1.ListPreferenceEntity,
|
86
87
|
'9efb14076dca6034ab4c3255c5c63aa2': lookup_type_entity_1.LookupTypeEntity,
|
87
88
|
ca12043141c4bbc3b08a13bd8dfa9bc8: lookup_value_entity_1.LookupValueEntity,
|
89
|
+
a3da8b74348b592a71fe3667f5d92954: mail_log_entity_1.MailLogEntity,
|
88
90
|
'1ef387eee5c23a8d3c8f6a3130e1c397': menu_entity_1.MenuEntity,
|
89
91
|
'0357bfa9c9022c76f5302e2274e249fe': menu_role_entity_1.MenuRoleEntity,
|
90
92
|
e9e8c013efaa8c7456bc2384506d86df: model_column_entity_1.ModelColumnEntity,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":"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"}
|
1
|
+
{"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateMailLogTable1643398296090 = void 0;
|
4
|
+
const migration_utility_1 = require("./../common/libraries/migration.utility");
|
5
|
+
class CreateMailLogTable1643398296090 extends migration_utility_1.MigrationUtility {
|
6
|
+
constructor() {
|
7
|
+
super('sys_mail_logs');
|
8
|
+
this.process();
|
9
|
+
}
|
10
|
+
process() {
|
11
|
+
this.primary();
|
12
|
+
this.source();
|
13
|
+
this.string('gateway');
|
14
|
+
this.string('identifier');
|
15
|
+
this.string('to');
|
16
|
+
this.dateTime('processed_on');
|
17
|
+
this.dateTime('delivered_on');
|
18
|
+
this.dateTime('opened_on');
|
19
|
+
this.json('attributes');
|
20
|
+
this.whoColumns();
|
21
|
+
this.index(['identifier']);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
exports.CreateMailLogTable1643398296090 = CreateMailLogTable1643398296090;
|
25
|
+
//# sourceMappingURL=1643398296090-CreateMailLogTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"1643398296090-CreateMailLogTable.js","sourceRoot":"","sources":["../../src/migrations/1643398296090-CreateMailLogTable.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAE3E,MAAa,+BAAgC,SAAQ,oCAAgB;IACjE;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,MAAM,EAAE,CAAC;QAEd,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAE1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAElB,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE3B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/B,CAAC;CACJ;AAzBD,0EAyBC"}
|
@@ -13,4 +13,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./entity.generator.command"), exports);
|
14
14
|
__exportStar(require("./maintenance.command"), exports);
|
15
15
|
__exportStar(require("./sync.class.command"), exports);
|
16
|
+
__exportStar(require("./sqs.worker.command"), exports);
|
16
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2C;AAC3C,wDAAsC;AACtC,uDAAqC;AACrC,uDAAqC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { QueueService } from '../../platformUtility/services/queue.service';
|
2
|
+
export declare class SqsWorkerCommand {
|
3
|
+
private readonly queueService;
|
4
|
+
private counter;
|
5
|
+
private start_time;
|
6
|
+
constructor(queueService: QueueService);
|
7
|
+
test(): Promise<void>;
|
8
|
+
private processMessage;
|
9
|
+
private dropMessage;
|
10
|
+
private fetchMessages;
|
11
|
+
private processMessages;
|
12
|
+
private checkForSystem;
|
13
|
+
}
|
@@ -0,0 +1,117 @@
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
+
});
|
19
|
+
};
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
21
|
+
exports.SqsWorkerCommand = void 0;
|
22
|
+
const common_1 = require("@nestjs/common");
|
23
|
+
const config = require("config");
|
24
|
+
const nestjs_command_1 = require("nestjs-command");
|
25
|
+
const platform_constants_1 = require("../../config/platform.constants");
|
26
|
+
const queue_service_1 = require("../../platformUtility/services/queue.service");
|
27
|
+
const date_util_1 = require("./../../common/libraries/date.util");
|
28
|
+
const sqsQueue = config.get('sqs.fifo');
|
29
|
+
let SqsWorkerCommand = class SqsWorkerCommand {
|
30
|
+
constructor(queueService) {
|
31
|
+
this.queueService = queueService;
|
32
|
+
this.counter = 0;
|
33
|
+
this.start_time = date_util_1.DateUtil.getDateTimeInFormat();
|
34
|
+
}
|
35
|
+
test() {
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
37
|
+
global.console.log(platform_constants_1.default.jobs);
|
38
|
+
while (true) {
|
39
|
+
yield this.queueService.pause();
|
40
|
+
yield this.checkForSystem();
|
41
|
+
let record;
|
42
|
+
try {
|
43
|
+
record = yield this.fetchMessages();
|
44
|
+
}
|
45
|
+
catch (error) {
|
46
|
+
global.console.log('error', error);
|
47
|
+
}
|
48
|
+
if (!(record === null || record === void 0 ? void 0 : record.Messages))
|
49
|
+
yield this.queueService.sleep(1000);
|
50
|
+
if ((record === null || record === void 0 ? void 0 : record.Messages) && Array.isArray(record.Messages)) {
|
51
|
+
yield this.processMessages(record.Messages);
|
52
|
+
}
|
53
|
+
global.console.log(`[sqs.fifo][events] ${this.start_time} : ${this.counter}`);
|
54
|
+
}
|
55
|
+
});
|
56
|
+
}
|
57
|
+
processMessage(message) {
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
59
|
+
++this.counter;
|
60
|
+
const data = JSON.parse(message.Body);
|
61
|
+
global.console.log(`[sqs.fifo][ Processing] ${message.MessageId} : ${data.name} `);
|
62
|
+
const startTime = date_util_1.DateUtil.now();
|
63
|
+
try {
|
64
|
+
yield platform_constants_1.default.jobs[data.job].handle(data.payload);
|
65
|
+
const timeTaken = date_util_1.DateUtil.now() - startTime;
|
66
|
+
global.console.log(`[sqs.fifo][ Processed] ${message.MessageId} : ${data.name} ${timeTaken} ms`);
|
67
|
+
}
|
68
|
+
catch (error) {
|
69
|
+
global.console.log(`[sqs.fifo][ failure] ${message.MessageId} : ${data.name} `);
|
70
|
+
global.console.log('failed-job', data);
|
71
|
+
global.console.log('error', error);
|
72
|
+
}
|
73
|
+
finally {
|
74
|
+
this.dropMessage(message.ReceiptHandle);
|
75
|
+
}
|
76
|
+
});
|
77
|
+
}
|
78
|
+
dropMessage(id) {
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
80
|
+
return this.queueService.sqsService.delete(sqsQueue, id);
|
81
|
+
});
|
82
|
+
}
|
83
|
+
fetchMessages() {
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
85
|
+
return this.queueService.sqsService.get(sqsQueue, 10);
|
86
|
+
});
|
87
|
+
}
|
88
|
+
processMessages(messages) {
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
90
|
+
for (const message of messages)
|
91
|
+
yield this.processMessage(message);
|
92
|
+
});
|
93
|
+
}
|
94
|
+
checkForSystem() {
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
96
|
+
yield this.queueService.checkForMaintenance();
|
97
|
+
if (yield this.queueService.hasRestartFlagChanged()) {
|
98
|
+
process.exit(0);
|
99
|
+
}
|
100
|
+
});
|
101
|
+
}
|
102
|
+
};
|
103
|
+
__decorate([
|
104
|
+
(0, nestjs_command_1.Command)({
|
105
|
+
command: 'queue:sqs',
|
106
|
+
describe: 'create a user',
|
107
|
+
}),
|
108
|
+
__metadata("design:type", Function),
|
109
|
+
__metadata("design:paramtypes", []),
|
110
|
+
__metadata("design:returntype", Promise)
|
111
|
+
], SqsWorkerCommand.prototype, "test", null);
|
112
|
+
SqsWorkerCommand = __decorate([
|
113
|
+
(0, common_1.Injectable)(),
|
114
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
115
|
+
], SqsWorkerCommand);
|
116
|
+
exports.SqsWorkerCommand = SqsWorkerCommand;
|
117
|
+
//# sourceMappingURL=sqs.worker.command.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sqs.worker.command.js","sourceRoot":"","sources":["../../../src/platformUtility/commands/sqs.worker.command.ts"],"names":[],"mappings":"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"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { EntityGeneratorCommand } from './commands/entity.generator.command';
|
2
2
|
import { MaintenanceCommand } from './commands/maintenance.command';
|
3
|
+
import { SqsWorkerCommand } from './commands/sqs.worker.command';
|
3
4
|
import { SyncClassCommand } from './commands/sync.class.command';
|
4
5
|
import { EventConsumer } from './consumers/event.consumer';
|
5
6
|
import { JobConsumer } from './consumers/job.consumer';
|
@@ -9,6 +10,7 @@ import { PushNotificationResponseDto } from './dtos/push.notification.response.d
|
|
9
10
|
import { PushNotificationTemplateDto } from './dtos/push.notification.template.dto';
|
10
11
|
import { QueueOptionsDto } from './dtos/queue.options.dto';
|
11
12
|
import { RecordWatcherJob } from './jobs/record.watcher.job';
|
13
|
+
import { TestJob } from './jobs/test.job';
|
12
14
|
import { CreateEntityConstantsFile } from './libraries/create.entity.constants.file';
|
13
15
|
import { CreateEs6ClassesFile } from './libraries/create.es6.classes.file';
|
14
16
|
import { CreateEs6JobsFile } from './libraries/create.es6.jobs.file';
|
@@ -29,16 +31,17 @@ import { QueueService } from './services/queue.service';
|
|
29
31
|
import { RemoteRequestService } from './services/remote.request.service';
|
30
32
|
import { ShutdownService } from './services/shutdown.service';
|
31
33
|
import { SqlService } from './services/sql.service';
|
34
|
+
import { SqsService } from './services/sqs.service';
|
32
35
|
import { StartupService } from './services/startup.service';
|
33
36
|
import { BaseSubscriber } from './subscribers/base.subscriber';
|
34
37
|
declare const es6Classes: {
|
35
|
-
commands: (typeof EntityGeneratorCommand | typeof MaintenanceCommand | typeof SyncClassCommand)[];
|
38
|
+
commands: (typeof EntityGeneratorCommand | typeof MaintenanceCommand | typeof SqsWorkerCommand | typeof SyncClassCommand)[];
|
36
39
|
consumers: (typeof EventConsumer | typeof JobConsumer)[];
|
37
40
|
dtos: (typeof QueueOptionsDto | typeof MailOptionsDto | typeof FcmResponseDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto)[];
|
38
|
-
jobs: (typeof RecordWatcherJob)[];
|
41
|
+
jobs: (typeof TestJob | typeof RecordWatcherJob)[];
|
39
42
|
libraries: (typeof FileSystemUtility | typeof CreateIndexFile | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile)[];
|
40
43
|
middlewares: (typeof MaintenanceMiddleware)[];
|
41
|
-
services: (typeof LocalPropertyService | typeof MaintenanceService | typeof ShutdownService | typeof
|
44
|
+
services: (typeof CacheService | typeof LocalPropertyService | typeof MaintenanceService | typeof ShutdownService | typeof SqsService | typeof QueueService | typeof RemoteRequestService | typeof SqlService | typeof DynamoService | typeof MailService | typeof AuditService | typeof FcmNotificationService | typeof StartupService | typeof Es6JobsService | typeof Es6Service)[];
|
42
45
|
subscribers: (typeof BaseSubscriber)[];
|
43
46
|
};
|
44
47
|
export default es6Classes;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const entity_generator_command_1 = require("./commands/entity.generator.command");
|
4
4
|
const maintenance_command_1 = require("./commands/maintenance.command");
|
5
|
+
const sqs_worker_command_1 = require("./commands/sqs.worker.command");
|
5
6
|
const sync_class_command_1 = require("./commands/sync.class.command");
|
6
7
|
const event_consumer_1 = require("./consumers/event.consumer");
|
7
8
|
const job_consumer_1 = require("./consumers/job.consumer");
|
@@ -11,6 +12,7 @@ const push_notification_response_dto_1 = require("./dtos/push.notification.respo
|
|
11
12
|
const push_notification_template_dto_1 = require("./dtos/push.notification.template.dto");
|
12
13
|
const queue_options_dto_1 = require("./dtos/queue.options.dto");
|
13
14
|
const record_watcher_job_1 = require("./jobs/record.watcher.job");
|
15
|
+
const test_job_1 = require("./jobs/test.job");
|
14
16
|
const create_entity_constants_file_1 = require("./libraries/create.entity.constants.file");
|
15
17
|
const create_es6_classes_file_1 = require("./libraries/create.es6.classes.file");
|
16
18
|
const create_es6_jobs_file_1 = require("./libraries/create.es6.jobs.file");
|
@@ -31,13 +33,14 @@ const queue_service_1 = require("./services/queue.service");
|
|
31
33
|
const remote_request_service_1 = require("./services/remote.request.service");
|
32
34
|
const shutdown_service_1 = require("./services/shutdown.service");
|
33
35
|
const sql_service_1 = require("./services/sql.service");
|
36
|
+
const sqs_service_1 = require("./services/sqs.service");
|
34
37
|
const startup_service_1 = require("./services/startup.service");
|
35
38
|
const base_subscriber_1 = require("./subscribers/base.subscriber");
|
36
39
|
const es6Classes = {
|
37
|
-
commands: [entity_generator_command_1.EntityGeneratorCommand, maintenance_command_1.MaintenanceCommand, sync_class_command_1.SyncClassCommand],
|
40
|
+
commands: [entity_generator_command_1.EntityGeneratorCommand, maintenance_command_1.MaintenanceCommand, sqs_worker_command_1.SqsWorkerCommand, sync_class_command_1.SyncClassCommand],
|
38
41
|
consumers: [event_consumer_1.EventConsumer, job_consumer_1.JobConsumer],
|
39
42
|
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],
|
40
|
-
jobs: [record_watcher_job_1.RecordWatcherJob],
|
43
|
+
jobs: [record_watcher_job_1.RecordWatcherJob, test_job_1.TestJob],
|
41
44
|
libraries: [create_entity_constants_file_1.CreateEntityConstantsFile, create_es6_classes_file_1.CreateEs6ClassesFile, create_es6_jobs_file_1.CreateEs6JobsFile, create_es6_service_file_1.CreateEs6ServiceFile, create_index_file_1.CreateIndexFile, file_system_utility_1.FileSystemUtility],
|
42
45
|
middlewares: [maintenance_middleware_1.MaintenanceMiddleware],
|
43
46
|
services: [
|
@@ -54,6 +57,7 @@ const es6Classes = {
|
|
54
57
|
remote_request_service_1.RemoteRequestService,
|
55
58
|
shutdown_service_1.ShutdownService,
|
56
59
|
sql_service_1.SqlService,
|
60
|
+
sqs_service_1.SqsService,
|
57
61
|
startup_service_1.StartupService,
|
58
62
|
],
|
59
63
|
subscribers: [base_subscriber_1.BaseSubscriber],
|
@@ -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,+DAA2D;AAC3D,2DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,0FAAoF;AACpF,0FAAoF;AACpF,gEAA2D;AAC3D,kEAA6D;AAC7D,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,gEAA4D;AAC5D,mEAA+D;AAE/D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,iDAAsB,EAAE,wCAAkB,EAAE,qCAAgB,CAAC;
|
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,CAAC,wDAAyB,EAAE,8CAAoB,EAAE,wCAAiB,EAAE,8CAAoB,EAAE,mCAAe,EAAE,uCAAiB,CAAC;IACzI,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"}
|
@@ -11,4 +11,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
11
11
|
};
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
__exportStar(require("./record.watcher.job"), exports);
|
14
|
+
__exportStar(require("./test.job"), exports);
|
14
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAqC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/jobs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAqC;AACrC,6CAA2B"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { CommonJob } from './../../common/libraries/common.job';
|
2
|
+
import { QueueService } from './../services/queue.service';
|
3
|
+
export declare class TestJob extends CommonJob {
|
4
|
+
protected readonly queueService: QueueService;
|
5
|
+
protected mode: string;
|
6
|
+
constructor(queueService: QueueService);
|
7
|
+
handle(data: any): Promise<void>;
|
8
|
+
}
|
@@ -0,0 +1,42 @@
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
+
});
|
19
|
+
};
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
21
|
+
exports.TestJob = void 0;
|
22
|
+
const common_1 = require("@nestjs/common");
|
23
|
+
const common_job_1 = require("./../../common/libraries/common.job");
|
24
|
+
const queue_service_1 = require("./../services/queue.service");
|
25
|
+
let TestJob = class TestJob extends common_job_1.CommonJob {
|
26
|
+
constructor(queueService) {
|
27
|
+
super();
|
28
|
+
this.queueService = queueService;
|
29
|
+
this.mode = 'fifo';
|
30
|
+
}
|
31
|
+
handle(data) {
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
33
|
+
global.console.log('data', data);
|
34
|
+
});
|
35
|
+
}
|
36
|
+
};
|
37
|
+
TestJob = __decorate([
|
38
|
+
(0, common_1.Injectable)(),
|
39
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
40
|
+
], TestJob);
|
41
|
+
exports.TestJob = TestJob;
|
42
|
+
//# sourceMappingURL=test.job.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"test.job.js","sourceRoot":"","sources":["../../../src/platformUtility/jobs/test.job.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oEAAgE;AAChE,+DAA2D;AAG3D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,sBAAS;IAGlC,YAA+B,YAA0B;QACrD,KAAK,EAAE,CAAC;QADmB,iBAAY,GAAZ,YAAY,CAAc;QAF/C,SAAI,GAAG,MAAM,CAAC;IAIxB,CAAC;IAEK,MAAM,CAAC,IAAS;;YAClB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;KAAA;CACJ,CAAA;AAVY,OAAO;IADnB,IAAA,mBAAU,GAAE;qCAIoC,4BAAY;GAHhD,OAAO,CAUnB;AAVY,0BAAO"}
|
@@ -18,16 +18,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.DynamoService = void 0;
|
19
19
|
const common_1 = require("@nestjs/common");
|
20
20
|
const aws_sdk_1 = require("aws-sdk");
|
21
|
-
const
|
21
|
+
const awsConfig = require("../../config/aws.config");
|
22
22
|
let DynamoService = class DynamoService {
|
23
23
|
constructor() {
|
24
24
|
this.client = null;
|
25
25
|
}
|
26
26
|
init() {
|
27
27
|
this.client = new aws_sdk_1.DynamoDB.DocumentClient({
|
28
|
-
accessKeyId:
|
29
|
-
secretAccessKey:
|
30
|
-
region:
|
28
|
+
accessKeyId: awsConfig.key,
|
29
|
+
secretAccessKey: awsConfig.secret,
|
30
|
+
region: awsConfig.region,
|
31
31
|
});
|
32
32
|
}
|
33
33
|
getClient() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dynamo.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/dynamo.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAmC;AACnC,
|
1
|
+
{"version":3,"file":"dynamo.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/dynamo.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAmC;AACnC,qDAAqD;AAQrD,IAAa,aAAa,GAA1B,MAAa,aAAa;IAA1B;QAMY,WAAM,GAAG,IAAI,CAAC;IAkE1B,CAAC;IA3DW,IAAI;QACR,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAQ,CAAC,cAAc,CAAC;YACtC,WAAW,EAAE,SAAS,CAAC,GAAG;YAC1B,eAAe,EAAE,SAAS,CAAC,MAAM;YACjC,MAAM,EAAE,SAAS,CAAC,MAAM;SAC3B,CAAC,CAAC;IACP,CAAC;IAQO,SAAS;QACb,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,IAAI,EAAE,CAAC;QAE9B,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IASK,OAAO,CAAC,SAAiB,EAAE,IAAS;;YACtC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAEhC,MAAM,MAAM,GAAG;gBACX,SAAS,EAAE,SAAS;gBACpB,IAAI,EAAE,IAAI;aACb,CAAC;YAGF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC3B,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAC7B,IAAI,GAAG;wBAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;oBACxC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAClB,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;IAQK,SAAS,CAAC,MAAW;;YACvB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAEhC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC3B,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAC/B,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACxB,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAA;AAxEY,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAwEzB;AAxEY,sCAAa"}
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { RecordWatcherJob } from '../jobs/record.watcher.job';
|
2
|
+
import { TestJob } from '../jobs/test.job';
|
2
3
|
import { LocalPropertyService } from '../../platformUtility/services/local.property.service';
|
3
4
|
export declare class Es6JobsService {
|
4
5
|
private readonly recordWatcherJob;
|
6
|
+
private readonly testJob;
|
5
7
|
private readonly localPropertyService;
|
6
8
|
private jobs;
|
7
|
-
constructor(recordWatcherJob: RecordWatcherJob, localPropertyService: LocalPropertyService);
|
9
|
+
constructor(recordWatcherJob: RecordWatcherJob, testJob: TestJob, localPropertyService: LocalPropertyService);
|
8
10
|
alignJobs(): void;
|
9
11
|
setJobs(): void;
|
10
12
|
}
|