rez_core 1.0.30 → 1.0.32
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/module/auth/guards/role.guard.js +3 -3
- package/dist/module/auth/strategies/google.strategy.d.ts +0 -1
- package/dist/module/auth/strategies/google.strategy.js +11 -4
- package/dist/module/auth/strategies/google.strategy.js.map +1 -1
- package/dist/module/enterprise/controller/organization.controller.d.ts +7 -0
- package/dist/module/enterprise/controller/organization.controller.js +40 -0
- package/dist/module/enterprise/controller/organization.controller.js.map +1 -0
- package/dist/module/enterprise/enterprise.module.js +2 -0
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/meta/controller/entity.controller.js +3 -3
- package/dist/module/meta/controller/entity.controller.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.d.ts +3 -3
- package/dist/module/meta/entity/entity-master.entity.js +3 -4
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +1 -1
- package/dist/module/meta/service/entity-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +6 -6
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/nest-cli.json +1 -1
- package/package.json +1 -1
- package/src/module/auth/guards/jwt.guard.ts +22 -22
- package/src/module/auth/guards/role.guard.ts +68 -68
- package/src/module/auth/services/auth.service.ts +29 -29
- package/src/module/auth/services/jwt.service.ts +11 -11
- package/src/module/auth/strategies/google.strategy.ts +14 -9
- package/src/module/auth/strategies/local.strategy.ts +13 -13
- package/src/module/dev/dev.module.ts +12 -12
- package/src/module/dev/service/dev.service.ts +7 -7
- package/src/module/enterprise/controller/organization.controller.ts +16 -0
- package/src/module/enterprise/enterprise.module.ts +2 -0
- package/src/module/enterprise/entity/enterprise.entity.ts +37 -37
- package/src/module/enterprise/entity/organization.entity.ts +80 -80
- package/src/module/master/controller/master.controller.ts +22 -22
- package/src/module/meta/controller/entity.controller.ts +3 -3
- package/src/module/meta/dto/entity-list-data.dto.ts +6 -6
- package/src/module/meta/entity/attribute-master.entity.ts +67 -67
- package/src/module/meta/entity/entity-master.entity.ts +3 -4
- package/src/module/meta/entity/preference.entity.ts +65 -65
- package/src/module/meta/repository/attribute-master.repository.ts +28 -28
- package/src/module/meta/repository/preference.repository.ts +20 -20
- package/src/module/meta/service/entity-master.service.ts +1 -1
- package/src/module/meta/service/entity-service-impl.service.ts +6 -6
- package/src/module/module/controller/menu.controller.ts +15 -15
- package/src/module/module/entity/module-access.entity.ts +22 -22
- package/src/module/module/entity/module-action.entity.ts +19 -19
- package/src/module/user/controller/user.controller.ts +28 -28
- package/src/module/user/dto/update-user.dto.ts +4 -4
- package/src/module/user/entity/user-role-mapping.entity.ts +21 -21
- package/src/module/user/entity/user-session.entity.ts +61 -61
- package/src/module/user/entity/user.entity.ts +35 -35
- package/src/module/user/repository/role.repository.ts +16 -16
- package/src/module/user/repository/userSession.repository.ts +33 -33
- package/src/resources/dev.properties.yaml +2 -2
- package/src/utils/service/encryptUtil.service.ts +97 -97
- package/src/utils/service/excelUtil.service.ts +15 -15
- package/src/utils/service/reflection-helper.service.ts +53 -53
- package/.idea/250218_nodejs_core.iml +0 -12
- package/.idea/codeStyles/Project.xml +0 -59
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/dataSources.xml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/vcs.xml +0 -6
- package/dist/resources/dev.properties.yaml +0 -15
- package/dist/resources/uat.properties.yaml +0 -15
|
@@ -34,9 +34,9 @@ let RolesGuard = class RolesGuard {
|
|
|
34
34
|
}
|
|
35
35
|
const requiredModule = this.reflector.get('moduleCode', context.getHandler());
|
|
36
36
|
const requiredActions = this.reflector.get('actions', context.getHandler());
|
|
37
|
-
const roleAccess = await this.entityManager.query(`SELECT *
|
|
38
|
-
FROM cr_module_access
|
|
39
|
-
WHERE role_id = ${user['role_id']}
|
|
37
|
+
const roleAccess = await this.entityManager.query(`SELECT *
|
|
38
|
+
FROM cr_module_access
|
|
39
|
+
WHERE role_id = ${user['role_id']}
|
|
40
40
|
AND module_code = '${requiredModule}'`);
|
|
41
41
|
if (!roleAccess || roleAccess.length === 0) {
|
|
42
42
|
throw new common_1.ForbiddenException('Access denied: No permissions found for this module');
|
|
@@ -2,7 +2,6 @@ import { ConfigService } from '@nestjs/config';
|
|
|
2
2
|
import { VerifyCallback } from 'passport-google-oauth20';
|
|
3
3
|
declare const GoogleStrategy_base: new (...args: any) => any;
|
|
4
4
|
export declare class GoogleStrategy extends GoogleStrategy_base {
|
|
5
|
-
private configService;
|
|
6
5
|
constructor(configService: ConfigService);
|
|
7
6
|
validate(accessToken: string, refreshToken: string, profile: any, done: VerifyCallback): Promise<any>;
|
|
8
7
|
}
|
|
@@ -16,13 +16,20 @@ const passport_1 = require("@nestjs/passport");
|
|
|
16
16
|
const passport_google_oauth20_1 = require("passport-google-oauth20");
|
|
17
17
|
let GoogleStrategy = class GoogleStrategy extends (0, passport_1.PassportStrategy)(passport_google_oauth20_1.Strategy, 'google') {
|
|
18
18
|
constructor(configService) {
|
|
19
|
+
const clientID = configService.get('CLIENT_ID');
|
|
20
|
+
const clientSecret = configService.get('CLIENT_SECRET');
|
|
21
|
+
const callbackURL = configService.get('CALLBACK_URL');
|
|
22
|
+
console.log('Google OAuth config', {
|
|
23
|
+
clientID,
|
|
24
|
+
clientSecret,
|
|
25
|
+
callbackURL,
|
|
26
|
+
});
|
|
19
27
|
super({
|
|
20
|
-
clientID
|
|
21
|
-
clientSecret
|
|
22
|
-
callbackURL
|
|
28
|
+
clientID,
|
|
29
|
+
clientSecret,
|
|
30
|
+
callbackURL,
|
|
23
31
|
scope: ['email', 'profile'],
|
|
24
32
|
});
|
|
25
|
-
this.configService = configService;
|
|
26
33
|
}
|
|
27
34
|
async validate(accessToken, refreshToken, profile, done) {
|
|
28
35
|
const { emails, name } = profile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.strategy.js","sourceRoot":"","sources":["../../../../src/module/auth/strategies/google.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,+CAAoD;AACpD,qEAAmE;AAG5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,2BAAgB,EAAC,kCAAQ,EAAE,QAAQ,CAAC;IACtE,
|
|
1
|
+
{"version":3,"file":"google.strategy.js","sourceRoot":"","sources":["../../../../src/module/auth/strategies/google.strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAC/C,+CAAoD;AACpD,qEAAmE;AAG5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,IAAA,2BAAgB,EAAC,kCAAQ,EAAE,QAAQ,CAAC;IACtE,YAAY,aAA4B;QACtC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAS,WAAW,CAAC,CAAC;QACxD,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAS,eAAe,CAAC,CAAC;QAChE,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAS,cAAc,CAAC,CAAC;QAE9D,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YACjC,QAAQ;YACR,YAAY;YACZ,WAAW;SACZ,CAAC,CAAC;QAEH,KAAK,CAAC;YACJ,QAAQ;YACR,YAAY;YACZ,WAAW;YACX,KAAK,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,WAAmB,EACnB,YAAoB,EACpB,OAAY,EACZ,IAAoB;QAEpB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;QACjC,OAAO,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AA9BY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAEgB,sBAAa;GAD7B,cAAc,CA8B1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OrganizationService } from '../service/organization.service';
|
|
2
|
+
import { Request } from 'express';
|
|
3
|
+
export declare class OrganizationController {
|
|
4
|
+
private readonly orgService;
|
|
5
|
+
constructor(orgService: OrganizationService);
|
|
6
|
+
getOrganizationDropdown(req: Request): Promise<import("../entity/organization.entity").OrganizationData[]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OrganizationController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const organization_service_1 = require("../service/organization.service");
|
|
18
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
19
|
+
let OrganizationController = class OrganizationController {
|
|
20
|
+
constructor(orgService) {
|
|
21
|
+
this.orgService = orgService;
|
|
22
|
+
}
|
|
23
|
+
async getOrganizationDropdown(req) {
|
|
24
|
+
return this.orgService.findAll();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.OrganizationController = OrganizationController;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
30
|
+
(0, common_1.Get)('dropdown'),
|
|
31
|
+
__param(0, (0, common_1.Req)()),
|
|
32
|
+
__metadata("design:type", Function),
|
|
33
|
+
__metadata("design:paramtypes", [Object]),
|
|
34
|
+
__metadata("design:returntype", Promise)
|
|
35
|
+
], OrganizationController.prototype, "getOrganizationDropdown", null);
|
|
36
|
+
exports.OrganizationController = OrganizationController = __decorate([
|
|
37
|
+
(0, common_1.Controller)('organization'),
|
|
38
|
+
__metadata("design:paramtypes", [organization_service_1.OrganizationService])
|
|
39
|
+
], OrganizationController);
|
|
40
|
+
//# sourceMappingURL=organization.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.controller.js","sourceRoot":"","sources":["../../../../src/module/enterprise/controller/organization.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiE;AACjE,0EAAsE;AAEtE,2DAAgE;AAGzD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAAG,CAAC;IAI1D,AAAN,KAAK,CAAC,uBAAuB,CAAQ,GAAY;QAE/C,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;IACnC,CAAC;CACF,CAAA;AATY,wDAAsB;AAK3B;IAFL,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACvB,IAAA,YAAG,EAAC,UAAU,CAAC;IACe,WAAA,IAAA,YAAG,GAAE,CAAA;;;;qEAGnC;iCARU,sBAAsB;IADlC,IAAA,mBAAU,EAAC,cAAc,CAAC;qCAEgB,0CAAmB;GADjD,sBAAsB,CASlC"}
|
|
@@ -11,12 +11,14 @@ const common_1 = require("@nestjs/common");
|
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
12
|
const organization_service_1 = require("./service/organization.service");
|
|
13
13
|
const organization_entity_1 = require("./entity/organization.entity");
|
|
14
|
+
const organization_controller_1 = require("./controller/organization.controller");
|
|
14
15
|
let EnterpriseModule = class EnterpriseModule {
|
|
15
16
|
};
|
|
16
17
|
exports.EnterpriseModule = EnterpriseModule;
|
|
17
18
|
exports.EnterpriseModule = EnterpriseModule = __decorate([
|
|
18
19
|
(0, common_1.Module)({
|
|
19
20
|
imports: [typeorm_1.TypeOrmModule.forFeature([organization_entity_1.OrganizationData])],
|
|
21
|
+
controllers: [organization_controller_1.OrganizationController],
|
|
20
22
|
providers: [organization_service_1.OrganizationService],
|
|
21
23
|
exports: [organization_service_1.OrganizationService],
|
|
22
24
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterprise.module.js","sourceRoot":"","sources":["../../../src/module/enterprise/enterprise.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,yEAAqE;AACrE,sEAAgE;
|
|
1
|
+
{"version":3,"file":"enterprise.module.js","sourceRoot":"","sources":["../../../src/module/enterprise/enterprise.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,yEAAqE;AACrE,sEAAgE;AAChE,kFAA8E;AAQvE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAN5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,sCAAgB,CAAC,CAAC,CAAC;QACvD,WAAW,EAAC,CAAC,gDAAsB,CAAC;QACpC,SAAS,EAAE,CAAC,0CAAmB,CAAC;QAChC,OAAO,EAAE,CAAC,0CAAmB,CAAC;KAC/B,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -32,7 +32,7 @@ let EntityController = class EntityController {
|
|
|
32
32
|
throw new common_1.BadRequestException('Query parameter "entity_type" is required');
|
|
33
33
|
}
|
|
34
34
|
const entityMaster = await this.entityMasterService.getEntityData(entityType);
|
|
35
|
-
const entityService = await this.reflectionHelper.getBean(entityMaster.
|
|
35
|
+
const entityService = await this.reflectionHelper.getBean(entityMaster.entity_service);
|
|
36
36
|
if (entityService) {
|
|
37
37
|
return await entityService.getEntityData(entityType, id);
|
|
38
38
|
}
|
|
@@ -42,7 +42,7 @@ let EntityController = class EntityController {
|
|
|
42
42
|
throw new common_1.BadRequestException('Query parameter "entity_type" is required');
|
|
43
43
|
}
|
|
44
44
|
const entityMaster = await this.entityMasterService.getEntityData(entityType);
|
|
45
|
-
const entityService = await this.reflectionHelper.getBean(entityMaster.
|
|
45
|
+
const entityService = await this.reflectionHelper.getBean(entityMaster.entity_service);
|
|
46
46
|
if (entityService) {
|
|
47
47
|
return res
|
|
48
48
|
.status(common_1.HttpStatus.OK)
|
|
@@ -54,7 +54,7 @@ let EntityController = class EntityController {
|
|
|
54
54
|
throw new common_1.BadRequestException('Query parameter "entity_type" is required');
|
|
55
55
|
}
|
|
56
56
|
const entityMaster = await this.entityMasterService.getEntityData(entityType);
|
|
57
|
-
const entityService = await this.reflectionHelper.getBean(entityMaster.
|
|
57
|
+
const entityService = await this.reflectionHelper.getBean(entityMaster.entity_service);
|
|
58
58
|
if (entityService) {
|
|
59
59
|
let existingEntity = await entityService.getEntityData(entityType, id);
|
|
60
60
|
if (!existingEntity) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/entity.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,wFAA2E;AAC3E,gGAAoF;AAEpF,4EAAuE;AACvE,qEAA0D;AAC1D,2DAA2D;AAC3D,yBAAyB;AACzB,6BAA6B;AAItB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACU,aAAgC,EAChC,gBAAkC,EAClC,mBAAwC;QAFxC,kBAAa,GAAb,aAAa,CAAmB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAC/C,CAAC;IAIE,AAAN,KAAK,CAAC,OAAO,CACE,EAAU,EACD,UAAmB;QAEzC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,4BAAmB,CAC3B,2CAA2C,CAC5C,CAAC;QACJ,CAAC;QACD,MAAM,YAAY,GAChB,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAE3D,MAAM,aAAa,GACjB,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CACjC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"entity.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/entity.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,wFAA2E;AAC3E,gGAAoF;AAEpF,4EAAuE;AACvE,qEAA0D;AAC1D,2DAA2D;AAC3D,yBAAyB;AACzB,6BAA6B;AAItB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACU,aAAgC,EAChC,gBAAkC,EAClC,mBAAwC;QAFxC,kBAAa,GAAb,aAAa,CAAmB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAC/C,CAAC;IAIE,AAAN,KAAK,CAAC,OAAO,CACE,EAAU,EACD,UAAmB;QAEzC,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,4BAAmB,CAC3B,2CAA2C,CAC5C,CAAC;QACJ,CAAC;QACD,MAAM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AAC,sCAAsC,CAAC;IAE1C,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,WAAW,CAAC,CAAA;IAClB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;6DAef;AAKK;IAHL,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACvB,IAAA,aAAI,EAAC,6BAA6B,CAAC;IACnC,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,kBAAkB,CAAC,CAAA;IACzB,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,YAAG,GAAE,CAAA;;;;qDA+BP;2BA3JU,gBAAgB;IAF5B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACvB,IAAA,mBAAU,EAAC,QAAQ,CAAC;qCAGM,+CAAiB;QACd,4CAAgB;QACb,2CAAmB;GAJvC,gBAAgB,CA4J5B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BaseEntity } from './base-entity.entity';
|
|
2
2
|
export declare class EntityMaster extends BaseEntity {
|
|
3
3
|
constructor();
|
|
4
|
-
|
|
4
|
+
mapped_entity_type: string;
|
|
5
5
|
appCode: string;
|
|
6
6
|
category: string;
|
|
7
7
|
module: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
entity_data_class: string;
|
|
9
|
+
entity_service: string;
|
|
10
10
|
dbTableName: string;
|
|
11
11
|
description: string;
|
|
12
12
|
storage_type: string;
|
|
@@ -27,9 +27,8 @@ __decorate([
|
|
|
27
27
|
length: 50,
|
|
28
28
|
nullable: false,
|
|
29
29
|
}),
|
|
30
|
-
(0, typeorm_1.Column)({ name: 'mapped_entity_type', nullable: true }),
|
|
31
30
|
__metadata("design:type", String)
|
|
32
|
-
], EntityMaster.prototype, "
|
|
31
|
+
], EntityMaster.prototype, "mapped_entity_type", void 0);
|
|
33
32
|
__decorate([
|
|
34
33
|
(0, typeorm_1.Column)({ name: 'appcode', type: 'varchar', length: 50, nullable: true }),
|
|
35
34
|
__metadata("design:type", String)
|
|
@@ -50,7 +49,7 @@ __decorate([
|
|
|
50
49
|
nullable: true,
|
|
51
50
|
}),
|
|
52
51
|
__metadata("design:type", String)
|
|
53
|
-
], EntityMaster.prototype, "
|
|
52
|
+
], EntityMaster.prototype, "entity_data_class", void 0);
|
|
54
53
|
__decorate([
|
|
55
54
|
(0, typeorm_1.Column)({
|
|
56
55
|
name: 'entity_service',
|
|
@@ -59,7 +58,7 @@ __decorate([
|
|
|
59
58
|
nullable: true,
|
|
60
59
|
}),
|
|
61
60
|
__metadata("design:type", String)
|
|
62
|
-
], EntityMaster.prototype, "
|
|
61
|
+
], EntityMaster.prototype, "entity_service", void 0);
|
|
63
62
|
__decorate([
|
|
64
63
|
(0, typeorm_1.Column)({
|
|
65
64
|
name: 'db_table_name',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/entity-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAkD;AAClD,uEAA4E;AAC5E,qCAAyC;AAGlC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+BAAU;IAC1C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,yCAAuB,CAAC;IAC7C,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-master.entity.js","source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B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACkB;AAQpB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACkB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;kDACxC;uBAxDV,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;GACxB,YAAY,CAyDxB"}
|
|
@@ -23,7 +23,7 @@ let EntityMasterService = class EntityMasterService {
|
|
|
23
23
|
}
|
|
24
24
|
async getEntityData(mappedEntityType) {
|
|
25
25
|
const entityMaster = await this.entityMasterRepository.findOne({
|
|
26
|
-
where: { mappedEntityType },
|
|
26
|
+
where: { mapped_entity_type: mappedEntityType },
|
|
27
27
|
});
|
|
28
28
|
if (!entityMaster) {
|
|
29
29
|
throw new Error(`Entity with mappedEntityType "${mappedEntityType}" not found.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AACrC,6CAAmD;AACnD,yEAA8D;AAGvD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEU,sBAAgD;QAAhD,2BAAsB,GAAtB,sBAAsB,CAA0B;IACvD,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,gBAAwB;QAC1C,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC;YAC7D,KAAK,EAAE,EAAE,gBAAgB,EAAE;
|
|
1
|
+
{"version":3,"file":"entity-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AACrC,6CAAmD;AACnD,yEAA8D;AAGvD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEU,sBAAgD;QAAhD,2BAAsB,GAAtB,sBAAsB,CAA0B;IACvD,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,gBAAwB;QAC1C,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC;YAC7D,KAAK,EAAE,EAAE,kBAAkB,EAAE,gBAAgB,EAAE;SAChD,CAAC,CAAC;QAEH,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CACb,iCAAiC,gBAAgB,cAAc,CAChE,CAAC;QACJ,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAA;AAnBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,mCAAY,CAAC,CAAA;qCACC,oBAAU;GAHjC,mBAAmB,CAmB/B"}
|
|
@@ -29,8 +29,8 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
29
29
|
}
|
|
30
30
|
const entityMaster = await this.entityMasterService.getEntityData(entityData.entity_type);
|
|
31
31
|
const repo = manager
|
|
32
|
-
? manager.getRepository(entityMaster.
|
|
33
|
-
: this.reflectionHelper.getRepoService(entityMaster.
|
|
32
|
+
? manager.getRepository(entityMaster.entity_data_class)
|
|
33
|
+
: this.reflectionHelper.getRepoService(entityMaster.entity_data_class);
|
|
34
34
|
if (!repo) {
|
|
35
35
|
throw new Error(`Repository service not found for entityType: ${entityData.entity_type}`);
|
|
36
36
|
}
|
|
@@ -49,7 +49,7 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
49
49
|
deleteEntity(entityType, entityId, loggedInUserData) { }
|
|
50
50
|
async findByCode(entityType, code) {
|
|
51
51
|
const entityData = await this.entityMasterService.getEntityData(entityType);
|
|
52
|
-
const repoService = this.reflectionHelper.getRepoService(entityData.
|
|
52
|
+
const repoService = this.reflectionHelper.getRepoService(entityData.entity_data_class);
|
|
53
53
|
if (!repoService) {
|
|
54
54
|
throw new Error(`Repository service not found for entityType: ${entityType}`);
|
|
55
55
|
}
|
|
@@ -61,7 +61,7 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
61
61
|
}
|
|
62
62
|
async getEntityData(entityType, id) {
|
|
63
63
|
const entityData = await this.entityMasterService.getEntityData(entityType);
|
|
64
|
-
const repoService = this.reflectionHelper.getRepoService(entityData.
|
|
64
|
+
const repoService = this.reflectionHelper.getRepoService(entityData.entity_data_class);
|
|
65
65
|
if (!repoService) {
|
|
66
66
|
throw new Error(`Repository service not found for entityType: ${entityType}`);
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
69
69
|
}
|
|
70
70
|
async getEntityList(entityType) {
|
|
71
71
|
const entityData = await this.entityMasterService.getEntityData(entityType);
|
|
72
|
-
const repoService = this.reflectionHelper.getRepoService(entityData.
|
|
72
|
+
const repoService = this.reflectionHelper.getRepoService(entityData.entity_data_class);
|
|
73
73
|
if (!repoService) {
|
|
74
74
|
throw new Error(`Repository service not found for entityType: ${entityType}`);
|
|
75
75
|
}
|
|
@@ -78,7 +78,7 @@ let EntityServiceImpl = class EntityServiceImpl {
|
|
|
78
78
|
}
|
|
79
79
|
async updateEntity(entityData, loggedInUserData) {
|
|
80
80
|
const entityMaster = await this.entityMasterService.getEntityData(entityData.entity_type);
|
|
81
|
-
const repoService = this.reflectionHelper.getRepoService(entityMaster.
|
|
81
|
+
const repoService = this.reflectionHelper.getRepoService(entityMaster.entity_data_class);
|
|
82
82
|
if (!repoService) {
|
|
83
83
|
throw new Error(`Repository service not found for entityType: ${entityData.entity_type}`);
|
|
84
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-service-impl.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-service-impl.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAAyE;AAEzE,mEAA8D;AAC9D,gGAAoF;AAEpF,oFAA4E;AAE5E,+DAA0D;AAE1D,sEAA8D;AAC9D,yBAAyB;AACzB,6BAA6B;AAC7B,sFAA0E;AAE1E,iEAA4D;AAC5D,+EAAyE;AACzE,uEAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAS5B,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAAuB;QAEvB,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAAmB,CAAC,uBAAuB,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,CACvB,CAAC;QAEF,MAAM,IAAI,GAAG,OAAO;YAClB,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"entity-service-impl.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-service-impl.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAAyE;AAEzE,mEAA8D;AAC9D,gGAAoF;AAEpF,oFAA4E;AAE5E,+DAA0D;AAE1D,sEAA8D;AAC9D,yBAAyB;AACzB,6BAA6B;AAC7B,sFAA0E;AAE1E,iEAA4D;AAC5D,+EAAyE;AACzE,uEAA4E;AAGrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAS5B,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAA6B,EAC7B,OAAuB;QAEvB,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAAmB,CAAC,uBAAuB,CAAC,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