@servicelabsco/nestjs-utility-services 1.1.61 → 1.1.63
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 +4 -3
- package/dist/app.controller.js +8 -9
- package/dist/app.controller.js.map +1 -1
- package/dist/auth/es6.classes.d.ts +1 -1
- package/dist/common/adapters/index.d.ts +1 -0
- package/dist/common/adapters/index.js +18 -0
- package/dist/common/adapters/index.js.map +1 -0
- package/dist/common/adapters/redis.io.adapter.d.ts +5 -0
- package/dist/common/adapters/redis.io.adapter.js +23 -0
- package/dist/common/adapters/redis.io.adapter.js.map +1 -0
- package/dist/common/es6.classes.d.ts +3 -1
- package/dist/common/es6.classes.js +2 -0
- package/dist/common/es6.classes.js.map +1 -1
- package/dist/common/index.d.ts +2 -1
- package/dist/common/index.js +2 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/libraries/platform.utility.d.ts +14 -0
- package/dist/common/libraries/platform.utility.js +28 -1
- package/dist/common/libraries/platform.utility.js.map +1 -1
- package/dist/platformUtility/dtos/index.d.ts +6 -5
- package/dist/platformUtility/dtos/index.js +6 -5
- package/dist/platformUtility/dtos/index.js.map +1 -1
- package/dist/platformUtility/dtos/source.column.dto.d.ts +4 -0
- package/dist/platformUtility/dtos/source.column.dto.js +29 -0
- package/dist/platformUtility/dtos/source.column.dto.js.map +1 -0
- package/dist/platformUtility/es6.classes.d.ts +2 -2
- package/dist/platformUtility/services/es6.jobs.service.d.ts +1 -3
- package/dist/platformUtility/services/es6.jobs.service.js +4 -7
- package/dist/platformUtility/services/es6.jobs.service.js.map +1 -1
- package/dist/platformUtility/services/es6.service.d.ts +1 -3
- package/dist/platformUtility/services/es6.service.js +4 -7
- package/dist/platformUtility/services/es6.service.js.map +1 -1
- package/dist/platformUtility/services/local.property.service.js +2 -2
- package/dist/platformUtility/services/local.property.service.js.map +1 -1
- package/dist/system/dtos/file.upload.dto.d.ts +7 -0
- package/dist/system/dtos/file.upload.dto.js +41 -0
- package/dist/system/dtos/file.upload.dto.js.map +1 -0
- package/dist/system/dtos/index.d.ts +1 -0
- package/dist/system/dtos/index.js +1 -0
- package/dist/system/dtos/index.js.map +1 -1
- package/dist/system/es6.classes.d.ts +3 -3
- package/dist/system/services/document.service.d.ts +5 -0
- package/dist/system/services/document.service.js +22 -0
- package/dist/system/services/document.service.js.map +1 -1
- package/dist/system/services/es6.jobs.service.d.ts +1 -3
- package/dist/system/services/es6.jobs.service.js +4 -7
- package/dist/system/services/es6.jobs.service.js.map +1 -1
- package/package.json +2 -1
package/dist/app.controller.d.ts
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
import { Request } from 'express';
|
2
|
-
import { UserEntity } from './auth';
|
3
2
|
import { QueueService } from './platformUtility/services/queue.service';
|
3
|
+
import { AwsS3Service } from './system/services/aws.s3.service';
|
4
4
|
export declare class AppController {
|
5
5
|
private readonly queueService;
|
6
|
-
|
6
|
+
private readonly awsS3Service;
|
7
|
+
constructor(queueService: QueueService, awsS3Service: AwsS3Service);
|
7
8
|
get(): Promise<{
|
8
9
|
message: string;
|
9
10
|
}>;
|
10
11
|
getUserAuthObject(): Promise<any>;
|
11
|
-
set(req: Request): Promise<
|
12
|
+
set(req: Request): Promise<any>;
|
12
13
|
uset(query: any): Promise<void>;
|
13
14
|
getQueueInstance(): Promise<any>;
|
14
15
|
queue(id: number): Promise<import("bull").Job<any>>;
|
package/dist/app.controller.js
CHANGED
@@ -14,24 +14,23 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.AppController = void 0;
|
16
16
|
const common_1 = require("@nestjs/common");
|
17
|
-
const auth_1 = require("./auth");
|
18
|
-
const common_2 = require("./common");
|
19
|
-
const auth_2 = require("./common/libraries/auth");
|
17
|
+
const auth_1 = require("./common/libraries/auth");
|
20
18
|
const queue_service_1 = require("./platformUtility/services/queue.service");
|
19
|
+
const aws_s3_service_1 = require("./system/services/aws.s3.service");
|
20
|
+
const platform_utility_1 = require("./common/libraries/platform.utility");
|
21
21
|
let AppController = class AppController {
|
22
|
-
constructor(queueService) {
|
22
|
+
constructor(queueService, awsS3Service) {
|
23
23
|
this.queueService = queueService;
|
24
|
+
this.awsS3Service = awsS3Service;
|
24
25
|
}
|
25
26
|
async get() {
|
26
27
|
return { message: 'Hello World!' };
|
27
28
|
}
|
28
29
|
async getUserAuthObject() {
|
29
|
-
return
|
30
|
+
return auth_1.Auth.user();
|
30
31
|
}
|
31
32
|
async set(req) {
|
32
|
-
|
33
|
-
user.password = common_2.Hash.hash('Sublimer$24');
|
34
|
-
return user.save();
|
33
|
+
return platform_utility_1.PlatformUtility.getEntity('dc391312269bea08532638498a886f5c');
|
35
34
|
}
|
36
35
|
async uset(query) { }
|
37
36
|
async getQueueInstance() {
|
@@ -82,7 +81,7 @@ __decorate([
|
|
82
81
|
], AppController.prototype, "queue", null);
|
83
82
|
AppController = __decorate([
|
84
83
|
(0, common_1.Controller)(),
|
85
|
-
__metadata("design:paramtypes", [queue_service_1.QueueService])
|
84
|
+
__metadata("design:paramtypes", [queue_service_1.QueueService, aws_s3_service_1.AwsS3Service])
|
86
85
|
], AppController);
|
87
86
|
exports.AppController = AppController;
|
88
87
|
//# sourceMappingURL=app.controller.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AAEpE,
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AAEpE,kDAA+C;AAC/C,4EAAwE;AACxE,qEAAgE;AAChE,0EAAsE;AAG/D,IAAM,aAAa,GAAnB,MAAM,aAAa;IACtB,YAA6B,YAA0B,EAAmB,YAA0B;QAAvE,iBAAY,GAAZ,YAAY,CAAc;QAAmB,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAGlG,AAAN,KAAK,CAAC,GAAG;QACL,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;IACvC,CAAC;IAQK,AAAN,KAAK,CAAC,iBAAiB;QACnB,OAAO,WAAI,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAGK,AAAN,KAAK,CAAC,GAAG,CAAQ,GAAY;QACzB,OAAO,kCAAe,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;IACzE,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAU,KAAU,IAAG,CAAC;IAG5B,AAAN,KAAK,CAAC,gBAAgB;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;IAClC,CAAC;IAGK,AAAN,KAAK,CAAC,KAAK,CAAc,EAAU;QAC/B,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AA/BS;IADL,IAAA,YAAG,GAAE;;;;wCAGL;AAQK;IADL,IAAA,YAAG,EAAC,UAAU,CAAC;;;;sDAGf;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACA,WAAA,IAAA,YAAG,GAAE,CAAA;;;;wCAEf;AAGK;IADL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACF,WAAA,IAAA,cAAK,GAAE,CAAA;;;;yCAAe;AAG5B;IADL,IAAA,YAAG,EAAC,OAAO,CAAC;;;;qDAGZ;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACJ,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;0CAEvB;AAlCQ,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEkC,4BAAY,EAAiC,6BAAY;GAD3F,aAAa,CAmCzB;AAnCY,sCAAa"}
|
@@ -26,7 +26,7 @@ import { UserService } from './services/user.service';
|
|
26
26
|
declare const es6Classes: {
|
27
27
|
controllers: (typeof AuthController | typeof SocialController | typeof UserController)[];
|
28
28
|
dtos: (typeof UserLoginDto | typeof CreateUserDto | typeof OfflineUserDto | typeof PermissionAssignmentDto | typeof RoleAssignmentDto | typeof UpdateUserDto)[];
|
29
|
-
entities: (typeof CreatorEntity | typeof
|
29
|
+
entities: (typeof CreatorEntity | typeof CountryEntity | typeof UserReferralEntity | typeof DeviceTokenEntity | typeof RefreshTokenEntity)[];
|
30
30
|
middlewares: (typeof BasicAuthMiddleware | typeof JwtMiddleware | typeof RestrictedMiddleware | typeof InternalMiddleware)[];
|
31
31
|
services: (typeof RefreshTokenService | typeof AuthService | typeof DeviceTokenService | typeof UserService | typeof SocialService | typeof AccessManager | typeof Es6Service)[];
|
32
32
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './redis.io.adapter';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./redis.io.adapter"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/adapters/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RedisIoAdapter = void 0;
|
4
|
+
const platform_socket_io_1 = require("@nestjs/platform-socket.io");
|
5
|
+
const redis_adapter_1 = require("@socket.io/redis-adapter");
|
6
|
+
const config = require("config");
|
7
|
+
const redis_1 = require("redis");
|
8
|
+
const redis = config.get('redis');
|
9
|
+
const host = process.env.REDIS_HOST || redis.host;
|
10
|
+
const redisPort = process.env.REDIS_PORT || redis.port;
|
11
|
+
const prefix = process.env.REDIS_SLUG || redis.slug;
|
12
|
+
const pubClient = new redis_1.RedisClient({ host, port: redisPort, prefix });
|
13
|
+
const subClient = pubClient.duplicate();
|
14
|
+
const redisAdapter = (0, redis_adapter_1.createAdapter)(pubClient, subClient);
|
15
|
+
class RedisIoAdapter extends platform_socket_io_1.IoAdapter {
|
16
|
+
createIOServer(port, options) {
|
17
|
+
const server = super.createIOServer(port, options);
|
18
|
+
server.adapter(redisAdapter);
|
19
|
+
return server;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.RedisIoAdapter = RedisIoAdapter;
|
23
|
+
//# sourceMappingURL=redis.io.adapter.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"redis.io.adapter.js","sourceRoot":"","sources":["../../../src/common/adapters/redis.io.adapter.ts"],"names":[],"mappings":";;;AAAA,mEAAuD;AACvD,4DAAyD;AACzD,iCAAiC;AACjC,iCAAoC;AAGpC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAElC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,CAAC;AACvD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,CAAC;AAEpD,MAAM,SAAS,GAAG,IAAI,mBAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;AACrE,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;AACxC,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAQzD,MAAa,cAAe,SAAQ,8BAAS;IAQzC,cAAc,CAAC,IAAY,EAAE,OAAuB;QAChD,MAAM,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC7B,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAbD,wCAaC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { RedisIoAdapter } from './adapters/redis.io.adapter';
|
1
2
|
import { AggregationParamDto } from './dtos/aggregation.param.dto';
|
2
3
|
import { CaptureRecordIndexDto } from './dtos/capture.record.index.dto';
|
3
4
|
import { CaptureRecordShowDto } from './dtos/capture.record.show.dto';
|
@@ -27,7 +28,8 @@ import { ReportDataManager } from './libraries/report.data.manager';
|
|
27
28
|
import { ReportListManager } from './libraries/report.list.manager';
|
28
29
|
import { SeederUtility } from './libraries/seeder.utility';
|
29
30
|
declare const es6Classes: {
|
30
|
-
|
31
|
+
adapters: (typeof RedisIoAdapter)[];
|
32
|
+
dtos: (typeof AggregationParamDto | typeof CaptureRecordIndexDto | typeof CaptureRecordShowDto | typeof LayoutColumnDbDto | typeof GenericIndexParamDto | typeof RecordDataManagerDto | typeof RecordTabDto | typeof GroupParamDto | typeof ReportBodyDto | typeof ReportDataManagerDto | typeof MetaDataDto | typeof DatabaseEventDto | typeof ForeignMigrationDto | typeof GenericShowParamDto | typeof IndexColumnDto | typeof KeyValueParamDto | typeof RenameColumnDto)[];
|
31
33
|
exceptions: (typeof AccessException)[];
|
32
34
|
libraries: (typeof GenericIndexParser | typeof GenericShowParser | typeof DataManager | typeof ListManager | typeof RecordManager | typeof ReportDataManager | typeof ReportListManager | typeof BaseMigrationUtility | typeof CommonConsumer | typeof SeederUtility)[];
|
33
35
|
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const redis_io_adapter_1 = require("./adapters/redis.io.adapter");
|
3
4
|
const aggregation_param_dto_1 = require("./dtos/aggregation.param.dto");
|
4
5
|
const capture_record_index_dto_1 = require("./dtos/capture.record.index.dto");
|
5
6
|
const capture_record_show_dto_1 = require("./dtos/capture.record.show.dto");
|
@@ -47,6 +48,7 @@ const report_list_manager_1 = require("./libraries/report.list.manager");
|
|
47
48
|
const reverse_migration_utility_1 = require("./libraries/reverse.migration.utility");
|
48
49
|
const seeder_utility_1 = require("./libraries/seeder.utility");
|
49
50
|
const es6Classes = {
|
51
|
+
adapters: [redis_io_adapter_1.RedisIoAdapter],
|
50
52
|
dtos: [
|
51
53
|
aggregation_param_dto_1.AggregationParamDto,
|
52
54
|
capture_record_index_dto_1.CaptureRecordIndexDto,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/common/es6.classes.ts"],"names":[],"mappings":";;AAAA,wEAAmE;AACnE,8EAAwE;AACxE,4EAAsE;AACtE,kEAA6D;AAC7D,wEAAmE;AACnE,4EAAsE;AACtE,0EAAoE;AACpE,4DAAuD;AACvD,8DAAyD;AACzD,8DAAyD;AACzD,oEAA8D;AAC9D,sEAAgE;AAChE,wDAAmD;AACnD,4EAAsE;AACtE,0DAAqD;AACrD,gEAA2D;AAC3D,4DAAuD;AACvD,4EAAsE;AACtE,oEAAgE;AAChE,8EAA0E;AAC1E,oFAA8E;AAC9E,0EAAsE;AACtE,gFAA4E;AAC5E,2CAAwC;AACxC,+EAA0E;AAC1E,2DAAuD;AACvD,iEAA6D;AAC7D,6DAAyD;AACzD,uDAAmD;AACnD,qEAAgE;AAChE,qEAAiE;AACjE,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,2EAAsE;AACtE,yEAAoE;AACpE,2CAAwC;AACxC,2DAAuD;AACvD,qEAAiE;AACjE,mEAA+D;AAC/D,+DAA2D;AAC3D,uEAAkE;AAClE,yEAAoE;AACpE,yEAAoE;AACpE,qFAAgF;AAChF,+DAA2D;AAE3D,MAAM,UAAU,GAAG;IACf,IAAI,EAAE;QACF,2CAAmB;QACnB,gDAAqB;QACrB,8CAAoB;QACpB,qCAAgB;QAChB,2CAAmB;QACnB,8CAAoB;QACpB,4CAAmB;QACnB,+BAAa;QACb,iCAAc;QACd,iCAAc;QACd,sCAAgB;QAChB,wCAAiB;QACjB,2BAAW;QACX,8CAAoB;QACpB,6BAAY;QACZ,mCAAe;QACf,+BAAa;QACb,8CAAoB;KACvB;IACD,UAAU,EAAE,CAAC,kCAAe,EAAE,4CAAoB,EAAE,gDAAqB,EAAE,wCAAkB,EAAE,8CAAqB,CAAC;IACrH,SAAS,EAAE;QACP,WAAI;QACJ,6CAAoB;QACpB,0BAAW;QACX,gCAAc;QACd,4BAAY;QACZ,sBAAS;QACT,mCAAe;QACf,oCAAgB;QAChB,0BAAW;QACX,0BAAW;QACX,oBAAQ;QACR,yCAAkB;QAClB,uCAAiB;QACjB,WAAI;QACJ,0BAAW;QACX,oCAAgB;QAChB,kCAAe;QACf,8BAAa;QACb,qCAAgB;QAChB,uCAAiB;QACjB,uCAAiB;QACjB,mDAAuB;QACvB,8BAAa;KAChB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/common/es6.classes.ts"],"names":[],"mappings":";;AAAA,kEAA6D;AAC7D,wEAAmE;AACnE,8EAAwE;AACxE,4EAAsE;AACtE,kEAA6D;AAC7D,wEAAmE;AACnE,4EA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,oCAAgB;QAChB,kCAAe;QACf,8BAAa;QACb,qCAAgB;QAChB,uCAAiB;QACjB,uCAAiB;QACjB,mDAAuB;QACvB,8BAAa;KAChB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
package/dist/common/index.d.ts
CHANGED
package/dist/common/index.js
CHANGED
@@ -14,8 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./adapters"), exports);
|
18
|
+
__exportStar(require("./common.module"), exports);
|
17
19
|
__exportStar(require("./dtos"), exports);
|
18
20
|
__exportStar(require("./exceptions"), exports);
|
19
21
|
__exportStar(require("./libraries"), exports);
|
20
|
-
__exportStar(require("./common.module"), exports);
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/common/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,kDAAgC;AAChC,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B"}
|
@@ -1,4 +1,12 @@
|
|
1
1
|
export declare class PlatformUtility {
|
2
|
+
static getConstantInstance(): {
|
3
|
+
queue: any;
|
4
|
+
entities: {};
|
5
|
+
jobs: {};
|
6
|
+
services: {};
|
7
|
+
mails: {};
|
8
|
+
whoColumns: string[];
|
9
|
+
};
|
2
10
|
static ucwords(str: any): string;
|
3
11
|
static generateRandomNumber(digits: number): number;
|
4
12
|
static generateRandomAlpha(len: number): string;
|
@@ -6,9 +14,15 @@ export declare class PlatformUtility {
|
|
6
14
|
static generateBase32(len: number): string;
|
7
15
|
static generateChars(charset: string, len: number): string;
|
8
16
|
static getEntity(hash: string): any;
|
17
|
+
static setEntity(key: string, value: any): void;
|
18
|
+
static setEntities(entities: Record<string, any>): void;
|
9
19
|
static initObject(data: any, obj?: any): any;
|
10
20
|
static getService(hash: string): any;
|
21
|
+
static setService(key: string, value: any): void;
|
22
|
+
static setServices(entities: Record<string, any>): void;
|
11
23
|
static getJob(hash: string): any;
|
24
|
+
static setJob(key: string, value: any): void;
|
25
|
+
static setJobs(entities: Record<string, any>): void;
|
12
26
|
static sleep(ms: number): Promise<void>;
|
13
27
|
static isProductionEnvironment(): boolean;
|
14
28
|
}
|
@@ -1,9 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PlatformUtility = void 0;
|
4
|
-
const platform_constants_1 = require("../../config/platform.constants");
|
5
4
|
const config = require("config");
|
5
|
+
const platform_constants_1 = require("../../config/platform.constants");
|
6
6
|
class PlatformUtility {
|
7
|
+
static getConstantInstance() {
|
8
|
+
return platform_constants_1.default;
|
9
|
+
}
|
7
10
|
static ucwords(str) {
|
8
11
|
return (str + '').replace(/^(.)|\s+(.)/g, ($1) => {
|
9
12
|
return $1.toUpperCase();
|
@@ -37,15 +40,39 @@ class PlatformUtility {
|
|
37
40
|
static getEntity(hash) {
|
38
41
|
return platform_constants_1.default.entities[hash];
|
39
42
|
}
|
43
|
+
static setEntity(key, value) {
|
44
|
+
platform_constants_1.default.entities[key] = value;
|
45
|
+
}
|
46
|
+
static setEntities(entities) {
|
47
|
+
for (const [key, value] of Object.entries(entities)) {
|
48
|
+
this.setEntity(key, value);
|
49
|
+
}
|
50
|
+
}
|
40
51
|
static initObject(data, obj = {}) {
|
41
52
|
return Object.assign(Object.assign({}, data), obj);
|
42
53
|
}
|
43
54
|
static getService(hash) {
|
44
55
|
return platform_constants_1.default.services[hash];
|
45
56
|
}
|
57
|
+
static setService(key, value) {
|
58
|
+
platform_constants_1.default.services[key] = value;
|
59
|
+
}
|
60
|
+
static setServices(entities) {
|
61
|
+
for (const [key, value] of Object.entries(entities)) {
|
62
|
+
this.setService(key, value);
|
63
|
+
}
|
64
|
+
}
|
46
65
|
static getJob(hash) {
|
47
66
|
return platform_constants_1.default.jobs[hash];
|
48
67
|
}
|
68
|
+
static setJob(key, value) {
|
69
|
+
platform_constants_1.default.jobs[key] = value;
|
70
|
+
}
|
71
|
+
static setJobs(entities) {
|
72
|
+
for (const [key, value] of Object.entries(entities)) {
|
73
|
+
this.setJob(key, value);
|
74
|
+
}
|
75
|
+
}
|
49
76
|
static async sleep(ms) {
|
50
77
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
51
78
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"platform.utility.js","sourceRoot":"","sources":["../../../src/common/libraries/platform.utility.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"platform.utility.js","sourceRoot":"","sources":["../../../src/common/libraries/platform.utility.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,wEAAgE;AAOhE,MAAa,eAAe;IAOxB,MAAM,CAAC,mBAAmB;QACtB,OAAO,4BAAiB,CAAC;IAC7B,CAAC;IASD,MAAM,CAAC,OAAO,CAAC,GAAG;QACd,OAAO,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,EAAE,EAAE,EAAE;YAC7C,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;QAC5B,CAAC,CAAC,CAAC;IACP,CAAC;IAUD,MAAM,CAAC,oBAAoB,CAAC,MAAc;QACtC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QAChD,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC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C,GAAG,EAAE,KAAK,CAAC,CAAC;SAC3B;IACL,CAAC;IASD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAU;QACzB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IAQD,MAAM,CAAC,uBAAuB;QAC1B,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEpC,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC;QACtD,IAAI,WAAW,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC;QAEzC,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AAxOD,0CAwOC"}
|
@@ -1,10 +1,11 @@
|
|
1
|
+
export * from './common.attributes.dto';
|
2
|
+
export * from './failed.bull.job.attributes.dto';
|
1
3
|
export * from './fcm.response.dto';
|
4
|
+
export * from './job.payload.dto';
|
5
|
+
export * from './mail.options.dto';
|
6
|
+
export * from './pending.bull.job.attributes.dto';
|
2
7
|
export * from './push.notification.response.dto';
|
3
8
|
export * from './push.notification.template.dto';
|
4
9
|
export * from './queue.options.dto';
|
5
|
-
export * from './mail.options.dto';
|
6
|
-
export * from './common.attributes.dto';
|
7
10
|
export * from './remote.raw.response.dto';
|
8
|
-
export * from './
|
9
|
-
export * from './pending.bull.job.attributes.dto';
|
10
|
-
export * from './job.payload.dto';
|
11
|
+
export * from './source.column.dto';
|
@@ -14,14 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./common.attributes.dto"), exports);
|
18
|
+
__exportStar(require("./failed.bull.job.attributes.dto"), exports);
|
17
19
|
__exportStar(require("./fcm.response.dto"), exports);
|
20
|
+
__exportStar(require("./job.payload.dto"), exports);
|
21
|
+
__exportStar(require("./mail.options.dto"), exports);
|
22
|
+
__exportStar(require("./pending.bull.job.attributes.dto"), exports);
|
18
23
|
__exportStar(require("./push.notification.response.dto"), exports);
|
19
24
|
__exportStar(require("./push.notification.template.dto"), exports);
|
20
25
|
__exportStar(require("./queue.options.dto"), exports);
|
21
|
-
__exportStar(require("./mail.options.dto"), exports);
|
22
|
-
__exportStar(require("./common.attributes.dto"), exports);
|
23
26
|
__exportStar(require("./remote.raw.response.dto"), exports);
|
24
|
-
__exportStar(require("./
|
25
|
-
__exportStar(require("./pending.bull.job.attributes.dto"), exports);
|
26
|
-
__exportStar(require("./job.payload.dto"), exports);
|
27
|
+
__exportStar(require("./source.column.dto"), exports);
|
27
28
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,oEAAkD;AAClD,mEAAiD;AACjD,mEAAiD;AACjD,sDAAoC;AACpC,4DAA0C;AAC1C,sDAAoC"}
|
@@ -0,0 +1,29 @@
|
|
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.SourceColumnDto = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class SourceColumnDto {
|
16
|
+
}
|
17
|
+
__decorate([
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
19
|
+
(0, class_transformer_1.Expose)(),
|
20
|
+
__metadata("design:type", String)
|
21
|
+
], SourceColumnDto.prototype, "source_type", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
24
|
+
(0, class_transformer_1.Expose)(),
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
26
|
+
__metadata("design:type", Number)
|
27
|
+
], SourceColumnDto.prototype, "source_id", void 0);
|
28
|
+
exports.SourceColumnDto = SourceColumnDto;
|
29
|
+
//# sourceMappingURL=source.column.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"source.column.dto.js","sourceRoot":"","sources":["../../../src/platformUtility/dtos/source.column.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAyD;AAEzD,MAAa,eAAe;CAS3B;AARG;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;oDACW;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kDACK;AARtB,0CASC"}
|
@@ -52,12 +52,12 @@ declare const es6Classes: {
|
|
52
52
|
commands: (typeof EntityGeneratorCommand | typeof MaintenanceCommand | typeof SyncClassCommand | typeof SqsWorkerCommand)[];
|
53
53
|
consumers: (typeof EventConsumer | typeof JobConsumer)[];
|
54
54
|
controllers: (typeof BullJobController | typeof QueueController)[];
|
55
|
-
dtos: (typeof
|
55
|
+
dtos: (typeof JobPayloadDto | typeof QueueOptionsDto | typeof CommonAttributesDto | typeof RemoteRawResponseDto | typeof MailOptionsDto | typeof FcmResponseDto | typeof PushNotificationResponseDto | typeof PushNotificationTemplateDto)[];
|
56
56
|
entities: (typeof FailedBullJobEntity | typeof PendingBullJobEntity)[];
|
57
57
|
jobs: (typeof LoadFailedBullJob | typeof RecordWatcherJob | typeof ReloadPendingBullJob | typeof TestJob)[];
|
58
58
|
libraries: (typeof FileSystemUtility | typeof CommonSqsPolling | typeof CreateEntityConstantsFile | typeof CreateEs6ClassesFile | typeof CreateEs6JobsFile | typeof CreateEs6ServiceFile | typeof CreateIndexFile | typeof ProcessCommonMail | typeof ProcessPostmarkMail | typeof ProcessSmtpMail)[];
|
59
59
|
middlewares: (typeof MaintenanceMiddleware | typeof TrimPipe)[];
|
60
|
-
services: (typeof
|
60
|
+
services: (typeof CacheService | typeof RemoteRequestService | typeof SqlService | typeof DynamoService | typeof MaintenanceService | typeof ShutdownService | typeof AuditService | typeof FcmNotificationService | typeof MailService | typeof StartupService | typeof SqsService | typeof Es6JobsService | typeof Es6Service | typeof LocalPropertyService | typeof QueueService)[];
|
61
61
|
subscribers: (typeof BaseSubscriber)[];
|
62
62
|
};
|
63
63
|
export default es6Classes;
|
@@ -2,15 +2,13 @@ import { LoadFailedBullJob } from '../jobs/load.failed.bull.job';
|
|
2
2
|
import { RecordWatcherJob } from '../jobs/record.watcher.job';
|
3
3
|
import { ReloadPendingBullJob } from '../jobs/reload.pending.bull.job';
|
4
4
|
import { TestJob } from '../jobs/test.job';
|
5
|
-
import { LocalPropertyService } from '../../platformUtility/services/local.property.service';
|
6
5
|
export declare class Es6JobsService {
|
7
6
|
private readonly loadFailedBullJob;
|
8
7
|
private readonly recordWatcherJob;
|
9
8
|
private readonly reloadPendingBullJob;
|
10
9
|
private readonly testJob;
|
11
|
-
private readonly localPropertyService;
|
12
10
|
private jobs;
|
13
|
-
constructor(loadFailedBullJob: LoadFailedBullJob, recordWatcherJob: RecordWatcherJob, reloadPendingBullJob: ReloadPendingBullJob, testJob: TestJob
|
11
|
+
constructor(loadFailedBullJob: LoadFailedBullJob, recordWatcherJob: RecordWatcherJob, reloadPendingBullJob: ReloadPendingBullJob, testJob: TestJob);
|
14
12
|
alignJobs(): void;
|
15
13
|
setJobs(): void;
|
16
14
|
}
|
@@ -15,14 +15,13 @@ const load_failed_bull_job_1 = require("../jobs/load.failed.bull.job");
|
|
15
15
|
const record_watcher_job_1 = require("../jobs/record.watcher.job");
|
16
16
|
const reload_pending_bull_job_1 = require("../jobs/reload.pending.bull.job");
|
17
17
|
const test_job_1 = require("../jobs/test.job");
|
18
|
-
const
|
18
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
19
19
|
let Es6JobsService = class Es6JobsService {
|
20
|
-
constructor(loadFailedBullJob, recordWatcherJob, reloadPendingBullJob, testJob
|
20
|
+
constructor(loadFailedBullJob, recordWatcherJob, reloadPendingBullJob, testJob) {
|
21
21
|
this.loadFailedBullJob = loadFailedBullJob;
|
22
22
|
this.recordWatcherJob = recordWatcherJob;
|
23
23
|
this.reloadPendingBullJob = reloadPendingBullJob;
|
24
24
|
this.testJob = testJob;
|
25
|
-
this.localPropertyService = localPropertyService;
|
26
25
|
this.jobs = {};
|
27
26
|
this.alignJobs();
|
28
27
|
this.setJobs();
|
@@ -36,8 +35,7 @@ let Es6JobsService = class Es6JobsService {
|
|
36
35
|
};
|
37
36
|
}
|
38
37
|
setJobs() {
|
39
|
-
|
40
|
-
this.localPropertyService.set('jobs', Object.assign(Object.assign({}, existingJobs), this.jobs));
|
38
|
+
platform_utility_1.PlatformUtility.setJobs(this.jobs);
|
41
39
|
}
|
42
40
|
};
|
43
41
|
Es6JobsService = __decorate([
|
@@ -45,8 +43,7 @@ Es6JobsService = __decorate([
|
|
45
43
|
__metadata("design:paramtypes", [load_failed_bull_job_1.LoadFailedBullJob,
|
46
44
|
record_watcher_job_1.RecordWatcherJob,
|
47
45
|
reload_pending_bull_job_1.ReloadPendingBullJob,
|
48
|
-
test_job_1.TestJob
|
49
|
-
local_property_service_1.LocalPropertyService])
|
46
|
+
test_job_1.TestJob])
|
50
47
|
], Es6JobsService);
|
51
48
|
exports.Es6JobsService = Es6JobsService;
|
52
49
|
//# sourceMappingURL=es6.jobs.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uEAAiE;AACjE,mEAA8D;AAC9D,6EAAuE;AACvE,+CAA2C;AAC3C,
|
1
|
+
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,uEAAiE;AACjE,mEAA8D;AAC9D,6EAAuE;AACvE,+CAA2C;AAC3C,8EAA0E;AAQnE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,iBAAoC,EACpC,gBAAkC,EAClC,oBAA0C,EAC1C,OAAgB;QAHhB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,YAAO,GAAP,OAAO,CAAS;QAN7B,SAAI,GAAG,EAAE,CAAC;QAQd,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAMD,SAAS;QACL,IAAI,CAAC,IAAI,GAAG;YACR,kCAAkC,EAAE,IAAI,CAAC,iBAAiB;YAC1D,kCAAkC,EAAE,IAAI,CAAC,gBAAgB;YACzD,kCAAkC,EAAE,IAAI,CAAC,oBAAoB;YAC7D,gCAAgC,EAAE,IAAI,CAAC,OAAO;SACjD,CAAC;IACN,CAAC;IAMD,OAAO;QACH,kCAAe,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACJ,CAAA;AAjCY,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAK+B,wCAAiB;QAClB,qCAAgB;QACZ,8CAAoB;QACjC,kBAAO;GAP5B,cAAc,CAiC1B;AAjCY,wCAAc"}
|
@@ -10,7 +10,6 @@ import { RemoteRequestService } from './remote.request.service';
|
|
10
10
|
import { ShutdownService } from './shutdown.service';
|
11
11
|
import { SqlService } from './sql.service';
|
12
12
|
import { StartupService } from './startup.service';
|
13
|
-
import { LocalPropertyService } from '../../platformUtility/services/local.property.service';
|
14
13
|
export declare class Es6Service {
|
15
14
|
private readonly auditService;
|
16
15
|
private readonly cacheService;
|
@@ -24,9 +23,8 @@ export declare class Es6Service {
|
|
24
23
|
private readonly shutdownService;
|
25
24
|
private readonly sqlService;
|
26
25
|
private readonly startupService;
|
27
|
-
private readonly localPropertyService;
|
28
26
|
private services;
|
29
|
-
constructor(auditService: AuditService, cacheService: CacheService, dynamoService: DynamoService, es6JobsService: Es6JobsService, fcmNotificationService: FcmNotificationService, mailService: MailService, maintenanceService: MaintenanceService, queueService: QueueService, remoteRequestService: RemoteRequestService, shutdownService: ShutdownService, sqlService: SqlService, startupService: StartupService
|
27
|
+
constructor(auditService: AuditService, cacheService: CacheService, dynamoService: DynamoService, es6JobsService: Es6JobsService, fcmNotificationService: FcmNotificationService, mailService: MailService, maintenanceService: MaintenanceService, queueService: QueueService, remoteRequestService: RemoteRequestService, shutdownService: ShutdownService, sqlService: SqlService, startupService: StartupService);
|
30
28
|
alignServices(): void;
|
31
29
|
setServices(): void;
|
32
30
|
}
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.Es6Service = void 0;
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
14
15
|
const audit_service_1 = require("./audit.service");
|
15
16
|
const cache_service_1 = require("./cache.service");
|
16
17
|
const dynamo_service_1 = require("./dynamo.service");
|
@@ -23,9 +24,8 @@ const remote_request_service_1 = require("./remote.request.service");
|
|
23
24
|
const shutdown_service_1 = require("./shutdown.service");
|
24
25
|
const sql_service_1 = require("./sql.service");
|
25
26
|
const startup_service_1 = require("./startup.service");
|
26
|
-
const local_property_service_1 = require("../../platformUtility/services/local.property.service");
|
27
27
|
let Es6Service = class Es6Service {
|
28
|
-
constructor(auditService, cacheService, dynamoService, es6JobsService, fcmNotificationService, mailService, maintenanceService, queueService, remoteRequestService, shutdownService, sqlService, startupService
|
28
|
+
constructor(auditService, cacheService, dynamoService, es6JobsService, fcmNotificationService, mailService, maintenanceService, queueService, remoteRequestService, shutdownService, sqlService, startupService) {
|
29
29
|
this.auditService = auditService;
|
30
30
|
this.cacheService = cacheService;
|
31
31
|
this.dynamoService = dynamoService;
|
@@ -38,7 +38,6 @@ let Es6Service = class Es6Service {
|
|
38
38
|
this.shutdownService = shutdownService;
|
39
39
|
this.sqlService = sqlService;
|
40
40
|
this.startupService = startupService;
|
41
|
-
this.localPropertyService = localPropertyService;
|
42
41
|
this.services = {};
|
43
42
|
this.alignServices();
|
44
43
|
this.setServices();
|
@@ -60,8 +59,7 @@ let Es6Service = class Es6Service {
|
|
60
59
|
};
|
61
60
|
}
|
62
61
|
setServices() {
|
63
|
-
|
64
|
-
this.localPropertyService.set('services', Object.assign(Object.assign({}, existingServices), this.services));
|
62
|
+
platform_utility_1.PlatformUtility.setServices(this.services);
|
65
63
|
}
|
66
64
|
};
|
67
65
|
Es6Service = __decorate([
|
@@ -77,8 +75,7 @@ Es6Service = __decorate([
|
|
77
75
|
remote_request_service_1.RemoteRequestService,
|
78
76
|
shutdown_service_1.ShutdownService,
|
79
77
|
sql_service_1.SqlService,
|
80
|
-
startup_service_1.StartupService
|
81
|
-
local_property_service_1.LocalPropertyService])
|
78
|
+
startup_service_1.StartupService])
|
82
79
|
], Es6Service);
|
83
80
|
exports.Es6Service = Es6Service;
|
84
81
|
//# sourceMappingURL=es6.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/es6.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAiD;AACjD,yDAAoD;AACpD,yEAAoE;AACpE,iDAA6C;AAC7C,+DAA2D;AAC3D,mDAA+C;AAC/C,qEAAgE;AAChE,yDAAqD;AACrD,+CAA2C;AAC3C,uDAAmD;
|
1
|
+
{"version":3,"file":"es6.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/es6.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,8EAA0E;AAC1E,mDAA+C;AAC/C,mDAA+C;AAC/C,qDAAiD;AACjD,yDAAoD;AACpD,yEAAoE;AACpE,iDAA6C;AAC7C,+DAA2D;AAC3D,mDAA+C;AAC/C,qEAAgE;AAChE,yDAAqD;AACrD,+CAA2C;AAC3C,uDAAmD;AAQ5C,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,YACqB,YAA0B,EAC1B,YAA0B,EAC1B,aAA4B,EAC5B,cAA8B,EAC9B,sBAA8C,EAC9C,WAAwB,EACxB,kBAAsC,EACtC,YAA0B,EAC1B,oBAA0C,EAC1C,eAAgC,EAChC,UAAsB,EACtB,cAA8B;QAX9B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAAe;QAC5B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,gBAAW,GAAX,WAAW,CAA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&& this.__metadata) || function (k, v) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.LocalPropertyService = void 0;
|
13
|
-
const platform_utility_1 = require("./../../common/libraries/platform.utility");
|
14
13
|
const common_1 = require("@nestjs/common");
|
15
14
|
const platform_constants_1 = require("../../config/platform.constants");
|
15
|
+
const platform_utility_1 = require("./../../common/libraries/platform.utility");
|
16
16
|
const entityConstants = require("../../config/entity.constants");
|
17
17
|
let LocalPropertyService = class LocalPropertyService {
|
18
18
|
constructor() {
|
19
|
-
|
19
|
+
platform_utility_1.PlatformUtility.setEntities(entityConstants);
|
20
20
|
}
|
21
21
|
set(key, value) {
|
22
22
|
platform_constants_1.default[key] = value;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"local.property.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/local.property.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"local.property.service.js","sourceRoot":"","sources":["../../../src/platformUtility/services/local.property.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,wEAAgE;AAChE,gFAA4E;AAC5E,iEAAkE;AAQ3D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAK7B;QAEI,kCAAe,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACjD,CAAC;IAQD,GAAG,CAAC,GAAW,EAAE,KAAU;QACvB,4BAAiB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAC/B,OAAO,KAAK,CAAC;IACjB,CAAC;IAQD,GAAG,CAAC,GAAG;QACH,OAAO,4BAAiB,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IAQD,SAAS,CAAC,IAAY;QAClB,OAAO,kCAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAQD,MAAM,CAAC,IAAY;QACf,OAAO,kCAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAQD,UAAU,CAAC,IAAY;QACnB,OAAO,kCAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;CACJ,CAAA;AA5DY,oBAAoB;IADhC,IAAA,mBAAU,GAAE;;GACA,oBAAoB,CA4DhC;AA5DY,oDAAoB"}
|
@@ -0,0 +1,41 @@
|
|
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.FileUploadDto = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
const document_attributes_dto_1 = require("./document.attributes.dto");
|
16
|
+
class FileUploadDto {
|
17
|
+
}
|
18
|
+
__decorate([
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
20
|
+
(0, class_validator_1.IsNumber)(),
|
21
|
+
__metadata("design:type", Number)
|
22
|
+
], FileUploadDto.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
25
|
+
(0, class_transformer_1.Expose)(),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], FileUploadDto.prototype, "document_url", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
30
|
+
(0, class_transformer_1.Expose)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], FileUploadDto.prototype, "comments", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
35
|
+
(0, class_transformer_1.Expose)(),
|
36
|
+
(0, class_transformer_1.Type)(() => document_attributes_dto_1.DocumentAttributesDto),
|
37
|
+
(0, class_validator_1.ValidateNested)(),
|
38
|
+
__metadata("design:type", document_attributes_dto_1.DocumentAttributesDto)
|
39
|
+
], FileUploadDto.prototype, "attributes", void 0);
|
40
|
+
exports.FileUploadDto = FileUploadDto;
|
41
|
+
//# sourceMappingURL=file.upload.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"file.upload.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/file.upload.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAmF;AACnF,uEAAkE;AAElE,MAAa,aAAa;CAkBzB;AAjBG;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACC;AAEZ;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;mDACY;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACS;AAElB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+CAAqB,CAAC;IACjC,IAAA,gCAAc,GAAE;8BACJ,+CAAqB;iDAAC;AAjBvC,sCAkBC"}
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./document.attributes.dto"), exports);
|
18
|
+
__exportStar(require("./file.upload.dto"), exports);
|
18
19
|
__exportStar(require("./file.upload.spec.dto"), exports);
|
19
20
|
__exportStar(require("./job.record.param.dto"), exports);
|
20
21
|
__exportStar(require("./local.file.s3.upload.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,yDAAuC;AACvC,yDAAuC;AACvC,6DAA2C;AAC3C,sEAAoD;AACpD,6DAA2C;AAC3C,uEAAqD;AACrD,uDAAqC;AACrC,0DAAwC;AACxC,iEAA+C"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,6DAA2C;AAC3C,sEAAoD;AACpD,6DAA2C;AAC3C,uEAAqD;AACrD,uDAAqC;AACrC,0DAAwC;AACxC,iEAA+C"}
|
@@ -122,10 +122,10 @@ import { UserGroupMemberSubscriber } from './subscribers/user.group.member.subsc
|
|
122
122
|
import { UserGroupPermissionSubscriber } from './subscribers/user.group.permission.subscriber';
|
123
123
|
import { UserGroupRoleSubscriber } from './subscribers/user.group.role.subscriber';
|
124
124
|
declare const es6Classes: {
|
125
|
-
commands: (typeof DynamoScannerCommand | typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof
|
126
|
-
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof MenuController | typeof PreferenceController | typeof
|
125
|
+
commands: (typeof DbScannerCommand | typeof DynamoScannerCommand | typeof EventQueueCommand | typeof JobsScannerCommand | typeof ModelScannerCommand | typeof ReportScannerCommand | typeof ServiceScannerCommand | typeof SyncAllCommand)[];
|
126
|
+
controllers: (typeof BaseController | typeof DataController | typeof FormController | typeof MenuController | typeof PreferenceController | typeof UploadController | typeof UserPreferenceController | typeof ReportController)[];
|
127
127
|
dtos: (typeof DocumentAttributesDto | typeof ModelFormPreferenceCreationDto | typeof S3UploadOptionsDto | typeof LocalFileS3UploadDto | typeof S3ObjectInfoDto | typeof FileUploadSpecDto | typeof UserPreferenceCreationDto | typeof JobRecordParamDto | typeof ModelAllowedColumnDto)[];
|
128
|
-
entities: (typeof LookupTypeEntity | typeof UserGroupRoleEntity | typeof UserGroupEntity | typeof UserGroupMemberEntity | typeof BusinessRuleRoleEntity | typeof BusinessRuleEntity | typeof
|
128
|
+
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 DynamoTableEntity | typeof EventDetailEntity | typeof EventQueueEntity | typeof ReportColumnEntity | typeof ReportEntity | typeof ReportRelationshipEntity | typeof ReportRoleEntity | typeof ServiceEntity | typeof SecurityRuleEntity | typeof MailLogEntity | typeof MenuRoleEntity | typeof MenuEntity | typeof ModuleEntity | typeof ModuleMenuEntity | typeof PageDefinitionEntity | typeof ParentMenuEntity | typeof OpenPropertyEntity | typeof ReportFilterEntity | typeof ScheduledEventEntity | typeof SmsTemplateEntity | typeof SmsMessageEntity | typeof UserGroupPermissionEntity | typeof UserPreferenceEntity | typeof WhatsappTemplateEntity)[];
|
129
129
|
jobs: (typeof ModelScannerJob | typeof ReportColumnSyncJob | typeof ScheduledEventJob | typeof CleanScheduledEventJob | typeof ColumnMapperJob | typeof RefreshPropertyCacheJob | typeof PropertyJob | typeof RelationshipMapperJob | typeof ScheduledEventsJob | typeof UserGroupMemberJob | typeof UserGroupPermissionJob | typeof UserGroupRoleJob)[];
|
130
130
|
libraries: (typeof SyncDynamoTables | typeof ModelSync | typeof SecurityRuleEvaluator | typeof ColumnManager | typeof BusinessRuleFilterValidator | typeof BusinessRuleQueryEvaluator)[];
|
131
131
|
modifiers: (typeof MenuListModifier | typeof ModuleListModifier)[];
|
@@ -1,7 +1,12 @@
|
|
1
|
+
import { SourceColumnDto } from '../../platformUtility/dtos/source.column.dto';
|
2
|
+
import { FileUploadDto } from '../dtos/file.upload.dto';
|
3
|
+
import { DocumentEntity } from '../entities/document.entity';
|
1
4
|
export declare class DocumentService {
|
2
5
|
getDocuments(query: {
|
3
6
|
source_type: string;
|
4
7
|
source_id: number;
|
5
8
|
type_id?: number;
|
6
9
|
}): Promise<any[]>;
|
10
|
+
setDocument(source: SourceColumnDto, file: FileUploadDto): Promise<DocumentEntity>;
|
11
|
+
setDocuments(source: SourceColumnDto, files: FileUploadDto[]): Promise<DocumentEntity[]>;
|
7
12
|
}
|
@@ -8,6 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
9
|
exports.DocumentService = void 0;
|
10
10
|
const common_1 = require("@nestjs/common");
|
11
|
+
const common_2 = require("../../common");
|
11
12
|
const document_entity_1 = require("../entities/document.entity");
|
12
13
|
let DocumentService = class DocumentService {
|
13
14
|
async getDocuments(query) {
|
@@ -15,6 +16,27 @@ let DocumentService = class DocumentService {
|
|
15
16
|
where: query,
|
16
17
|
});
|
17
18
|
}
|
19
|
+
async setDocument(source, file) {
|
20
|
+
let document;
|
21
|
+
if (file.id)
|
22
|
+
document = await document_entity_1.DocumentEntity.first(file.id);
|
23
|
+
document = document_entity_1.DocumentEntity.create({ source_type: source.source_type, source_id: source.source_id });
|
24
|
+
if (!(document.source_type === source.source_type && document.source_id === source.source_id))
|
25
|
+
throw new common_2.AccessException('you donot have access to this document');
|
26
|
+
if (!file.id)
|
27
|
+
document.document_url = file.document_url;
|
28
|
+
document.attributes = Object.assign(Object.assign(Object.assign({}, document.attributes), { comments: file.comments }), file.attributes);
|
29
|
+
return document.save();
|
30
|
+
}
|
31
|
+
async setDocuments(source, files) {
|
32
|
+
const promises = [];
|
33
|
+
files.forEach((file) => {
|
34
|
+
promises.push(this.setDocument(source, file));
|
35
|
+
});
|
36
|
+
return Promise.all(promises).then((res) => {
|
37
|
+
return res;
|
38
|
+
});
|
39
|
+
}
|
18
40
|
};
|
19
41
|
DocumentService = __decorate([
|
20
42
|
(0, common_1.Injectable)()
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"document.service.js","sourceRoot":"","sources":["../../../src/system/services/document.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,iEAA6D;AAQtD,IAAM,eAAe,GAArB,MAAM,eAAe;IAQxB,KAAK,CAAC,YAAY,CAAC,KAAmE;QAClF,OAAO,gCAAc,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,KAAK;SACf,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;
|
1
|
+
{"version":3,"file":"document.service.js","sourceRoot":"","sources":["../../../src/system/services/document.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,yCAA+C;AAG/C,iEAA6D;AAQtD,IAAM,eAAe,GAArB,MAAM,eAAe;IAQxB,KAAK,CAAC,YAAY,CAAC,KAAmE;QAClF,OAAO,gCAAc,CAAC,IAAI,CAAC;YACvB,KAAK,EAAE,KAAK;SACf,CAAC,CAAC;IACP,CAAC;IASD,KAAK,CAAC,WAAW,CAAC,MAAuB,EAAE,IAAmB;QAC1D,IAAI,QAAwB,CAAC;QAE7B,IAAI,IAAI,CAAC,EAAE;YAAE,QAAQ,GAAG,MAAM,gCAAc,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC5D,QAAQ,GAAG,gCAAc,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAEnG,IAAI,CAAC,CAAC,QAAQ,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS,CAAC;YACzF,MAAM,IAAI,wBAAe,CAAC,wCAAwC,CAAC,CAAC;QAExE,IAAI,CAAC,IAAI,CAAC,EAAE;YAAE,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QAExD,QAAQ,CAAC,UAAU,iDAAQ,QAAQ,CAAC,UAAU,KAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,UAAU,CAAE,CAAC;QAE9F,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IASD,KAAK,CAAC,YAAY,CAAC,MAAuB,EAAE,KAAsB;QAC9D,MAAM,QAAQ,GAAG,EAAE,CAAC;QAEpB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACtC,OAAO,GAAG,CAAC;QACf,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAvDY,eAAe;IAD3B,IAAA,mBAAU,GAAE;GACA,eAAe,CAuD3B;AAvDY,0CAAe"}
|
@@ -10,7 +10,6 @@ import { ScheduledEventsJob } from '../jobs/scheduled.events.job';
|
|
10
10
|
import { UserGroupMemberJob } from '../jobs/user.group.member.job';
|
11
11
|
import { UserGroupPermissionJob } from '../jobs/user.group.permission.job';
|
12
12
|
import { UserGroupRoleJob } from '../jobs/user.group.role.job';
|
13
|
-
import { LocalPropertyService } from '../../platformUtility/services/local.property.service';
|
14
13
|
export declare class Es6JobsService {
|
15
14
|
private readonly cleanScheduledEventJob;
|
16
15
|
private readonly columnMapperJob;
|
@@ -24,9 +23,8 @@ export declare class Es6JobsService {
|
|
24
23
|
private readonly userGroupMemberJob;
|
25
24
|
private readonly userGroupPermissionJob;
|
26
25
|
private readonly userGroupRoleJob;
|
27
|
-
private readonly localPropertyService;
|
28
26
|
private jobs;
|
29
|
-
constructor(cleanScheduledEventJob: CleanScheduledEventJob, columnMapperJob: ColumnMapperJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, scheduledEventsJob: ScheduledEventsJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob
|
27
|
+
constructor(cleanScheduledEventJob: CleanScheduledEventJob, columnMapperJob: ColumnMapperJob, modelScannerJob: ModelScannerJob, propertyJob: PropertyJob, refreshPropertyCacheJob: RefreshPropertyCacheJob, relationshipMapperJob: RelationshipMapperJob, reportColumnSyncJob: ReportColumnSyncJob, scheduledEventJob: ScheduledEventJob, scheduledEventsJob: ScheduledEventsJob, userGroupMemberJob: UserGroupMemberJob, userGroupPermissionJob: UserGroupPermissionJob, userGroupRoleJob: UserGroupRoleJob);
|
30
28
|
alignJobs(): void;
|
31
29
|
setJobs(): void;
|
32
30
|
}
|
@@ -23,9 +23,9 @@ const scheduled_events_job_1 = require("../jobs/scheduled.events.job");
|
|
23
23
|
const user_group_member_job_1 = require("../jobs/user.group.member.job");
|
24
24
|
const user_group_permission_job_1 = require("../jobs/user.group.permission.job");
|
25
25
|
const user_group_role_job_1 = require("../jobs/user.group.role.job");
|
26
|
-
const
|
26
|
+
const platform_utility_1 = require("../../common/libraries/platform.utility");
|
27
27
|
let Es6JobsService = class Es6JobsService {
|
28
|
-
constructor(cleanScheduledEventJob, columnMapperJob, modelScannerJob, propertyJob, refreshPropertyCacheJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, scheduledEventsJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob
|
28
|
+
constructor(cleanScheduledEventJob, columnMapperJob, modelScannerJob, propertyJob, refreshPropertyCacheJob, relationshipMapperJob, reportColumnSyncJob, scheduledEventJob, scheduledEventsJob, userGroupMemberJob, userGroupPermissionJob, userGroupRoleJob) {
|
29
29
|
this.cleanScheduledEventJob = cleanScheduledEventJob;
|
30
30
|
this.columnMapperJob = columnMapperJob;
|
31
31
|
this.modelScannerJob = modelScannerJob;
|
@@ -38,7 +38,6 @@ let Es6JobsService = class Es6JobsService {
|
|
38
38
|
this.userGroupMemberJob = userGroupMemberJob;
|
39
39
|
this.userGroupPermissionJob = userGroupPermissionJob;
|
40
40
|
this.userGroupRoleJob = userGroupRoleJob;
|
41
|
-
this.localPropertyService = localPropertyService;
|
42
41
|
this.jobs = {};
|
43
42
|
this.alignJobs();
|
44
43
|
this.setJobs();
|
@@ -60,8 +59,7 @@ let Es6JobsService = class Es6JobsService {
|
|
60
59
|
};
|
61
60
|
}
|
62
61
|
setJobs() {
|
63
|
-
|
64
|
-
this.localPropertyService.set('jobs', Object.assign(Object.assign({}, existingJobs), this.jobs));
|
62
|
+
platform_utility_1.PlatformUtility.setJobs(this.jobs);
|
65
63
|
}
|
66
64
|
};
|
67
65
|
Es6JobsService = __decorate([
|
@@ -77,8 +75,7 @@ Es6JobsService = __decorate([
|
|
77
75
|
scheduled_events_job_1.ScheduledEventsJob,
|
78
76
|
user_group_member_job_1.UserGroupMemberJob,
|
79
77
|
user_group_permission_job_1.UserGroupPermissionJob,
|
80
|
-
user_group_role_job_1.UserGroupRoleJob
|
81
|
-
local_property_service_1.LocalPropertyService])
|
78
|
+
user_group_role_job_1.UserGroupRoleJob])
|
82
79
|
], Es6JobsService);
|
83
80
|
exports.Es6JobsService = Es6JobsService;
|
84
81
|
//# sourceMappingURL=es6.jobs.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/system/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iFAA2E;AAC3E,iEAA4D;AAC5D,iEAA4D;AAC5D,uDAAmD;AACnD,mFAA6E;AAC7E,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uEAAkE;AAClE,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,
|
1
|
+
{"version":3,"file":"es6.jobs.service.js","sourceRoot":"","sources":["../../../src/system/services/es6.jobs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iFAA2E;AAC3E,iEAA4D;AAC5D,iEAA4D;AAC5D,uDAAmD;AACnD,mFAA6E;AAC7E,6EAAwE;AACxE,2EAAqE;AACrE,qEAAgE;AAChE,uEAAkE;AAClE,yEAAmE;AACnE,iFAA2E;AAC3E,qEAA+D;AAC/D,8EAA0E;AAQnE,IAAM,cAAc,GAApB,MAAM,cAAc;IAGvB,YACqB,sBAA8C,EAC9C,eAAgC,EAChC,eAAgC,EAChC,WAAwB,EACxB,uBAAgD,EAChD,qBAA4C,EAC5C,mBAAwC,EACxC,iBAAoC,EACpC,kBAAsC,EACtC,kBAAsC,EACtC,sBAA8C,EAC9C,gBAAkC;QAXlC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,oBAAe,GAAf,eAAe,CAAiB;QAChC,oBAAe,GAAf,eAAe,CAAiB;QAChC,gBAAW,GAAX,WAAW,CAAa;QACxB,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,uBAAk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
+
"version": "1.1.63",
|
4
4
|
"description": "NestJS generic packages to support development",
|
5
5
|
"author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -60,6 +60,7 @@
|
|
60
60
|
"@nestjs/typeorm": "^9.0.0",
|
61
61
|
"@nestjs/websockets": "^9.0.7",
|
62
62
|
"@sentry/node": "^7.8.1",
|
63
|
+
"@socket.io/redis-adapter": "^8.1.0",
|
63
64
|
"axios": "^0.27.2",
|
64
65
|
"bcryptjs": "^2.4.3",
|
65
66
|
"bull": "^4.8.5",
|