rez_core 4.0.199 → 4.0.202
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/core.module.js +3 -0
- package/dist/core.module.js.map +1 -1
- package/dist/module/entity_json/controller/entity_json.controller.d.ts +11 -1
- package/dist/module/entity_json/controller/entity_json.controller.js +14 -0
- package/dist/module/entity_json/controller/entity_json.controller.js.map +1 -1
- package/dist/module/entity_json/entity/entityJson.entity.d.ts +10 -0
- package/dist/module/entity_json/entity/entityJson.entity.js +55 -0
- package/dist/module/entity_json/entity/entityJson.entity.js.map +1 -0
- package/dist/module/entity_json/entity_json.module.js +2 -1
- package/dist/module/entity_json/entity_json.module.js.map +1 -1
- package/dist/module/entity_json/service/entity_json.service.d.ts +11 -3
- package/dist/module/entity_json/service/entity_json.service.js +92 -49
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/meta/controller/attribute-master.controller.d.ts +2 -3
- package/dist/module/meta/controller/attribute-master.controller.js +2 -12
- package/dist/module/meta/controller/attribute-master.controller.js.map +1 -1
- package/dist/module/meta/entity/attribute-master.entity.d.ts +1 -0
- package/dist/module/meta/entity/attribute-master.entity.js +4 -0
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
- package/dist/table.config.d.ts +2 -1
- package/dist/table.config.js +4 -6
- package/dist/table.config.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/core.module.ts +3 -0
- package/src/module/entity_json/controller/entity_json.controller.ts +14 -14
- package/src/module/entity_json/entity/entityJson.entity.ts +39 -0
- package/src/module/entity_json/entity_json.module.ts +2 -1
- package/src/module/entity_json/service/entity_json.service.ts +151 -99
- package/src/module/meta/controller/attribute-master.controller.ts +11 -13
- package/src/module/meta/entity/attribute-master.entity.ts +3 -0
- package/src/resources/dev.properties.yaml +1 -1
- package/src/table.config.ts +4 -6
- package/.vscode/extensions.json +0 -5
package/dist/core.module.js
CHANGED
|
@@ -26,6 +26,7 @@ const workflow_module_1 = require("./module/workflow/workflow.module");
|
|
|
26
26
|
const workflow_automation_module_1 = require("./module/workflow-automation/workflow-automation.module");
|
|
27
27
|
const mapper_module_1 = require("./module/mapper/mapper.module");
|
|
28
28
|
const workflow_schedule_module_1 = require("./module/workflow-schedule/workflow-schedule.module");
|
|
29
|
+
const entity_json_module_1 = require("./module/entity_json/entity_json.module");
|
|
29
30
|
let CoreModule = CoreModule_1 = class CoreModule {
|
|
30
31
|
static forRootAsync(dbModule, isSso, isWorkflow) {
|
|
31
32
|
if (!dbModule) {
|
|
@@ -46,6 +47,7 @@ let CoreModule = CoreModule_1 = class CoreModule {
|
|
|
46
47
|
workflow_automation_module_1.WorkflowAutomationModule,
|
|
47
48
|
workflow_schedule_module_1.WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
|
|
48
49
|
mapper_module_1.MapperModule,
|
|
50
|
+
entity_json_module_1.EntityJSONModule
|
|
49
51
|
];
|
|
50
52
|
const exportsArray = [
|
|
51
53
|
config_1.ConfigModule,
|
|
@@ -62,6 +64,7 @@ let CoreModule = CoreModule_1 = class CoreModule {
|
|
|
62
64
|
workflow_module_1.WorkflowModule,
|
|
63
65
|
workflow_automation_module_1.WorkflowAutomationModule,
|
|
64
66
|
workflow_schedule_module_1.WorkflowScheduleModule.forRoot({ is_workflow: isWorkflow }),
|
|
67
|
+
entity_json_module_1.EntityJSONModule
|
|
65
68
|
];
|
|
66
69
|
if (isSso) {
|
|
67
70
|
importsArray.push(user_module_1.UserModule, module_module_1.ModuleModule, layout_module_1.LayoutModule, enterprise_module_1.EnterpriseModule);
|
package/dist/core.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../src/core.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,2CAA8C;AAE9C,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC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BAAU;YACV,iDAAsB;YACtB,4BAAY;YACZ,gCAAc;YACd,qDAAwB;YACxB,iDAAsB,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;YAC3D,qCAAgB;SACjB,CAAC;QAEF,IAAI,KAAK,EAAE,CAAC;YACV,YAAY,CAAC,IAAI,CACf,wBAAU,EACV,4BAAY,EACZ,4BAAY,EACZ,oCAAgB,CACjB,CAAC;YACF,YAAY,CAAC,IAAI,CACf,wBAAU,EACV,4BAAY,EACZ,4BAAY,EACZ,oCAAgB,CACjB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,YAAY;YACrB,OAAO,EAAE,YAAY;SACtB,CAAC;IACJ,CAAC;CACF,CAAA;AAnEY,gCAAU;qBAAV,UAAU;IAFtB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAmEtB"}
|
|
@@ -4,5 +4,15 @@ export declare class EntityJSONController {
|
|
|
4
4
|
constructor(entityJSONService: EntityJSONService);
|
|
5
5
|
getEntityJson(entityType: string, req: Request & {
|
|
6
6
|
user: any;
|
|
7
|
-
}, mode?: 'flat_json' | 'dropdown'): Promise<any[] | Record<string, null
|
|
7
|
+
}, mode?: 'flat_json' | 'dropdown'): Promise<any[] | Record<string, null> | {
|
|
8
|
+
flat_json: Record<string, null>;
|
|
9
|
+
attributes: {
|
|
10
|
+
mainAttributes: import("../../meta/entity/attribute-master.entity").AttributeMaster[];
|
|
11
|
+
relatedAttributes: import("../../meta/entity/attribute-master.entity").AttributeMaster[];
|
|
12
|
+
linkedAttributes: any[];
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
updateEntityJson(entityId: string, entityType: string, req: Request & {
|
|
16
|
+
user: any;
|
|
17
|
+
}): Promise<Record<string, null> | null>;
|
|
8
18
|
}
|
|
@@ -24,6 +24,10 @@ let EntityJSONController = class EntityJSONController {
|
|
|
24
24
|
const loggedInUser = req.user?.userData;
|
|
25
25
|
return this.entityJSONService.getAttributeForFlatJSON(entityType, loggedInUser, mode);
|
|
26
26
|
}
|
|
27
|
+
async updateEntityJson(entityId, entityType, req) {
|
|
28
|
+
const loggedInUser = req.user?.userData;
|
|
29
|
+
return this.entityJSONService.updateEntityJSON(entityType, Number(entityId), loggedInUser);
|
|
30
|
+
}
|
|
27
31
|
};
|
|
28
32
|
exports.EntityJSONController = EntityJSONController;
|
|
29
33
|
__decorate([
|
|
@@ -36,6 +40,16 @@ __decorate([
|
|
|
36
40
|
__metadata("design:paramtypes", [String, Object, String]),
|
|
37
41
|
__metadata("design:returntype", Promise)
|
|
38
42
|
], EntityJSONController.prototype, "getEntityJson", null);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, common_1.Post)('/update-json/:entityId'),
|
|
45
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
46
|
+
__param(0, (0, common_1.Param)('entityId')),
|
|
47
|
+
__param(1, (0, common_1.Query)('entityType')),
|
|
48
|
+
__param(2, (0, common_1.Req)()),
|
|
49
|
+
__metadata("design:type", Function),
|
|
50
|
+
__metadata("design:paramtypes", [String, String, Object]),
|
|
51
|
+
__metadata("design:returntype", Promise)
|
|
52
|
+
], EntityJSONController.prototype, "updateEntityJson", null);
|
|
39
53
|
exports.EntityJSONController = EntityJSONController = __decorate([
|
|
40
54
|
(0, common_1.Controller)('entity-json'),
|
|
41
55
|
__metadata("design:paramtypes", [entity_json_service_1.EntityJSONService])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_json.controller.js","sourceRoot":"","sources":["../../../../src/module/entity_json/controller/entity_json.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,wEAAmE;AACnE,2DAAgE;AAGzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,aAAa,CACI,UAAkB,EAChC,GAA4B,EACpB,IAA+B;QAE9C,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CACnD,UAAU,EACV,YAAY,EACZ,IAAI,CACL,CAAC;IACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"entity_json.controller.js","sourceRoot":"","sources":["../../../../src/module/entity_json/controller/entity_json.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,wEAAmE;AACnE,2DAAgE;AAGzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,aAAa,CACI,UAAkB,EAChC,GAA4B,EACpB,IAA+B;QAE9C,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CACnD,UAAU,EACV,YAAY,EACZ,IAAI,CACL,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,gBAAgB,CACD,QAAgB,EACd,UAAkB,EAChC,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC;QAExC,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAC5C,UAAU,EACV,MAAM,CAAC,QAAQ,CAAC,EAChB,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAjCY,oDAAoB;AAKzB;IAFL,IAAA,YAAG,EAAC,cAAc,CAAC;IACnB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;yDAQf;AAIK;IAFL,IAAA,aAAI,EAAC,wBAAwB,CAAC;IAC9B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;IACjB,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;4DASP;+BAhCU,oBAAoB;IADhC,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAEwB,uCAAiB;GADtD,oBAAoB,CAiChC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.EntityJson = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let EntityJson = class EntityJson {
|
|
15
|
+
};
|
|
16
|
+
exports.EntityJson = EntityJson;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], EntityJson.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Index)(),
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], EntityJson.prototype, "entity_type", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Index)(),
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], EntityJson.prototype, "entity_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: false }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], EntityJson.prototype, "json_data", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], EntityJson.prototype, "created_by", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], EntityJson.prototype, "updated_by", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp', nullable: true }),
|
|
45
|
+
__metadata("design:type", Date)
|
|
46
|
+
], EntityJson.prototype, "created_at", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', nullable: true }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], EntityJson.prototype, "updated_at", void 0);
|
|
51
|
+
exports.EntityJson = EntityJson = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)('frm_entity_json'),
|
|
53
|
+
(0, typeorm_1.Unique)(['entity_type', 'entity_id'])
|
|
54
|
+
], EntityJson);
|
|
55
|
+
//# sourceMappingURL=entityJson.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityJson.entity.js","sourceRoot":"","sources":["../../../../src/module/entity_json/entity/entityJson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AAIV,IAAM,UAAU,GAAhB,MAAM,UAAU;CA0BtB,CAAA;AA1BY,gCAAU;AAErB;IADC,IAAA,gCAAsB,GAAE;;sCACd;AAIX;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;+CACrB;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6CACN;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6CACX;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAGnB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC5C,IAAI;8CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC5C,IAAI;8CAAC;qBAzBN,UAAU;IAFtB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;IACzB,IAAA,gBAAM,EAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;GACxB,UAAU,CA0BtB"}
|
|
@@ -14,12 +14,13 @@ const entity_json_service_1 = require("./service/entity_json.service");
|
|
|
14
14
|
const entity_json_controller_1 = require("./controller/entity_json.controller");
|
|
15
15
|
const filter_module_1 = require("../filter/filter.module");
|
|
16
16
|
const utils_module_1 = require("../../utils/utils.module");
|
|
17
|
+
const entityJson_entity_1 = require("./entity/entityJson.entity");
|
|
17
18
|
let EntityJSONModule = class EntityJSONModule {
|
|
18
19
|
};
|
|
19
20
|
exports.EntityJSONModule = EntityJSONModule;
|
|
20
21
|
exports.EntityJSONModule = EntityJSONModule = __decorate([
|
|
21
22
|
(0, common_1.Module)({
|
|
22
|
-
imports: [entity_module_1.EntityModule, typeorm_1.TypeOrmModule.forFeature([]), filter_module_1.FilterModule, utils_module_1.UtilsModule],
|
|
23
|
+
imports: [entity_module_1.EntityModule, typeorm_1.TypeOrmModule.forFeature([entityJson_entity_1.EntityJson]), filter_module_1.FilterModule, utils_module_1.UtilsModule],
|
|
23
24
|
controllers: [entity_json_controller_1.EntityJSONController],
|
|
24
25
|
providers: [entity_json_service_1.EntityJSONService],
|
|
25
26
|
exports: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_json.module.js","sourceRoot":"","sources":["../../../src/module/entity_json/entity_json.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAAqD;AACrD,6CAAgD;AAChD,uEAAkE;AAClE,gFAA2E;AAC3E,2DAAuD;AACvD,2DAAqD;
|
|
1
|
+
{"version":3,"file":"entity_json.module.js","sourceRoot":"","sources":["../../../src/module/entity_json/entity_json.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yDAAqD;AACrD,6CAAgD;AAChD,uEAAkE;AAClE,gFAA2E;AAC3E,2DAAuD;AACvD,2DAAqD;AACrD,kEAAwD;AAQjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAN5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,4BAAY,EAAE,uBAAa,CAAC,UAAU,CAAC,CAAC,8BAAU,CAAC,CAAC,EAAC,4BAAY,EAAC,0BAAW,CAAC;QACxF,WAAW,EAAE,CAAC,6CAAoB,CAAC;QACnC,SAAS,EAAE,CAAC,uCAAiB,CAAC;QAC9B,OAAO,EAAE,EAAE;KACZ,CAAC;GACW,gBAAgB,CAAG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterService } from 'src/module/filter/service/filter.service';
|
|
2
|
+
import { AttributeMaster } from 'src/module/meta/entity/attribute-master.entity';
|
|
2
3
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
3
4
|
import { LoggingService } from 'src/utils/service/loggingUtil.service';
|
|
4
5
|
import { DataSource } from 'typeorm';
|
|
@@ -7,8 +8,15 @@ export declare class EntityJSONService extends EntityServiceImpl {
|
|
|
7
8
|
private readonly filterService;
|
|
8
9
|
private readonly loggerService;
|
|
9
10
|
constructor(dataSource: DataSource, filterService: FilterService, loggerService: LoggingService);
|
|
10
|
-
getAttributeForFlatJSON(entityType: string, loggedInUser: any, flag?: 'flat_json' | 'dropdown'): Promise<any[] | Record<string, null
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
getAttributeForFlatJSON(entityType: string, loggedInUser: any, flag?: 'flat_json' | 'dropdown' | 'all'): Promise<any[] | Record<string, null> | {
|
|
12
|
+
flat_json: Record<string, null>;
|
|
13
|
+
attributes: {
|
|
14
|
+
mainAttributes: AttributeMaster[];
|
|
15
|
+
relatedAttributes: AttributeMaster[];
|
|
16
|
+
linkedAttributes: any[];
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
updateEntityJSON(entityType: string, entityId: number, loggedInUser: any): Promise<Record<string, null> | null>;
|
|
20
|
+
private mergeEntityDataIntoFlatJson;
|
|
13
21
|
private applyLinkedFilterUsingSavedFilter;
|
|
14
22
|
}
|
|
@@ -30,7 +30,7 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
30
30
|
const mainAttributes = await this.dataSource
|
|
31
31
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
32
32
|
.createQueryBuilder('attr')
|
|
33
|
-
.select(['attr.id', 'attr.name', 'attr.attribute_key'])
|
|
33
|
+
.select(['attr.id', 'attr.name', 'attr.flat_json_key', 'attr.attribute_key'])
|
|
34
34
|
.where('attr.mapped_entity_type = :entityType', { entityType })
|
|
35
35
|
.andWhere('attr.organization_id = :orgId', { orgId })
|
|
36
36
|
.getMany();
|
|
@@ -41,16 +41,26 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
41
41
|
.select(['rel.target_entity_type'])
|
|
42
42
|
.where('rel.source_entity_type = :entityType', { entityType })
|
|
43
43
|
.andWhere('rel.organization_id = :orgId', { orgId })
|
|
44
|
-
.andWhere('rel.relation_type = :relationType', {
|
|
44
|
+
.andWhere('rel.relation_type = :relationType', {
|
|
45
|
+
relationType: 'ONE_TO_ONE',
|
|
46
|
+
})
|
|
45
47
|
.getRawMany();
|
|
46
|
-
const relatedTypesList = relatedEntityTypes.map(x => x.rel_target_entity_type);
|
|
48
|
+
const relatedTypesList = relatedEntityTypes.map((x) => x.rel_target_entity_type);
|
|
47
49
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Found ${relatedTypesList.length} ONE-TO-ONE related entity types`);
|
|
48
50
|
const relatedAttributes = relatedTypesList.length
|
|
49
51
|
? await this.dataSource
|
|
50
52
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
51
53
|
.createQueryBuilder('attr')
|
|
52
|
-
.select([
|
|
53
|
-
|
|
54
|
+
.select([
|
|
55
|
+
'attr.id',
|
|
56
|
+
'attr.name',
|
|
57
|
+
'attr.flat_json_key',
|
|
58
|
+
'attr.mapped_entity_type',
|
|
59
|
+
'attr.attribute_key',
|
|
60
|
+
])
|
|
61
|
+
.where('attr.mapped_entity_type IN (:...types)', {
|
|
62
|
+
types: relatedTypesList,
|
|
63
|
+
})
|
|
54
64
|
.andWhere('attr.organization_id = :orgId', { orgId })
|
|
55
65
|
.getMany()
|
|
56
66
|
: [];
|
|
@@ -68,75 +78,106 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
68
78
|
.where('attr.organization_id = :orgId', { orgId })
|
|
69
79
|
.getRawMany();
|
|
70
80
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Loaded ${linkedAttributes.length} linked attributes`);
|
|
71
|
-
if (flag === 'flat_json') {
|
|
81
|
+
if (flag === 'flat_json' || flag === 'all') {
|
|
72
82
|
const result = {};
|
|
73
|
-
mainAttributes.forEach(attr => {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
mainAttributes.forEach((attr) => {
|
|
84
|
+
if (attr.flat_json_key)
|
|
85
|
+
result[attr.flat_json_key] = null;
|
|
86
|
+
});
|
|
87
|
+
relatedAttributes.forEach((attr) => {
|
|
88
|
+
if (attr.flat_json_key)
|
|
89
|
+
result[attr.flat_json_key] = null;
|
|
90
|
+
});
|
|
91
|
+
linkedAttributes.forEach((link) => {
|
|
92
|
+
if (link.applicable_attribute_key)
|
|
93
|
+
result[link.applicable_attribute_key] = null;
|
|
94
|
+
});
|
|
95
|
+
if (flag === 'all')
|
|
96
|
+
return { flat_json: result, attributes: { mainAttributes, relatedAttributes, linkedAttributes } };
|
|
79
97
|
return result;
|
|
80
98
|
}
|
|
81
99
|
const dropdown = [];
|
|
82
|
-
dropdown.push(...mainAttributes.map(a => ({ label: a.name, value: a.
|
|
83
|
-
dropdown.push(...relatedAttributes.map(a => ({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
100
|
+
dropdown.push(...mainAttributes.map((a) => ({ label: a.name, value: a.flat_json_key })));
|
|
101
|
+
dropdown.push(...relatedAttributes.map((a) => ({
|
|
102
|
+
label: a.name,
|
|
103
|
+
value: a.flat_json_key,
|
|
104
|
+
})));
|
|
105
|
+
if (linkedAttributes.length > 0) {
|
|
106
|
+
dropdown.push({
|
|
107
|
+
...linkedAttributes.map((a) => ({
|
|
108
|
+
label: a.name,
|
|
109
|
+
value: a.attribute_key,
|
|
110
|
+
})),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
87
113
|
return dropdown;
|
|
88
114
|
}
|
|
89
115
|
async updateEntityJSON(entityType, entityId, loggedInUser) {
|
|
90
116
|
await this.loggerService.log('info', 'EntityJSONService', 'updateEntityJSON', `Building flat JSON for entity: ${entityType}#${entityId}`);
|
|
91
|
-
const
|
|
117
|
+
const response = await this.getAttributeForFlatJSON(entityType, loggedInUser, 'all');
|
|
118
|
+
if (!response ||
|
|
119
|
+
!('flat_json' in response) ||
|
|
120
|
+
!('attributes' in response) ||
|
|
121
|
+
!response.attributes) {
|
|
122
|
+
await this.loggerService.log('error', 'EntityJSONService', 'updateEntityJSON', `getAttributeForFlatJSON() did not return expected structure`);
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
const { flat_json: flatJson, attributes } = response;
|
|
92
126
|
if (!flatJson) {
|
|
93
127
|
await this.loggerService.log('error', 'EntityJSONService', 'updateEntityJSON', `Flat JSON template not found for entity: ${entityType}`);
|
|
94
|
-
|
|
128
|
+
return null;
|
|
95
129
|
}
|
|
130
|
+
const safeAttributes = {
|
|
131
|
+
mainAttributes: attributes.mainAttributes || [],
|
|
132
|
+
relatedAttributes: attributes.relatedAttributes || [],
|
|
133
|
+
linkedAttributes: attributes.linkedAttributes || [],
|
|
134
|
+
};
|
|
135
|
+
const attrMap = {};
|
|
136
|
+
const allAttrs = [
|
|
137
|
+
...safeAttributes.mainAttributes,
|
|
138
|
+
...safeAttributes.relatedAttributes,
|
|
139
|
+
...safeAttributes.linkedAttributes,
|
|
140
|
+
];
|
|
141
|
+
allAttrs.forEach(attr => {
|
|
142
|
+
if (attr.attribute_key) {
|
|
143
|
+
attrMap[attr.attribute_key] = attr.flat_json_key || attr.attribute_key;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
96
146
|
const mainData = await this.getResolvedEntityData(entityType, entityId, loggedInUser);
|
|
97
|
-
this.
|
|
98
|
-
await this.loggerService.log('debug', 'EntityJSONService', 'updateEntityJSON', 'Merged main entity data into flat JSON');
|
|
147
|
+
this.mergeEntityDataIntoFlatJson(flatJson, mainData, attrMap);
|
|
99
148
|
const relations = await this.dataSource
|
|
100
149
|
.getRepository('frm_entity_relation_data')
|
|
101
150
|
.createQueryBuilder('erd')
|
|
102
|
-
.select([
|
|
151
|
+
.select([
|
|
152
|
+
'erd.target_entity_id AS target_entity_id',
|
|
153
|
+
'erd.target_entity_type AS target_entity_type',
|
|
154
|
+
])
|
|
103
155
|
.where('erd.source_entity_type = :entityType', { entityType })
|
|
104
156
|
.andWhere('erd.source_entity_id = :entityId', { entityId })
|
|
105
157
|
.andWhere('erd.relation_type = :rt', { rt: 'ONE_TO_ONE' })
|
|
106
158
|
.getRawMany();
|
|
107
|
-
await this.loggerService.log('debug', 'EntityJSONService', 'updateEntityJSON', `Found ${relations.length} ONE-TO-ONE relations`);
|
|
108
159
|
for (const rel of relations) {
|
|
109
|
-
const
|
|
110
|
-
this.
|
|
111
|
-
await this.loggerService.log('debug', 'EntityJSONService', 'updateEntityJSON', `Merged related entity ${rel.target_entity_type}#${rel.target_entity_id}`);
|
|
112
|
-
}
|
|
113
|
-
const linkedAttrs = await this.dataSource
|
|
114
|
-
.getRepository('frm_linked_attributes_table')
|
|
115
|
-
.createQueryBuilder('la')
|
|
116
|
-
.where('la.entity_type = :entityType', { entityType })
|
|
117
|
-
.getMany();
|
|
118
|
-
await this.loggerService.log('debug', 'EntityJSONService', 'updateEntityJSON', `Found ${linkedAttrs.length} linked attributes`);
|
|
119
|
-
for (const la of linkedAttrs) {
|
|
120
|
-
const mappingValue = flatJson[la.mapping_attribute];
|
|
121
|
-
const result = await this.applyLinkedFilterUsingSavedFilter(la.child_entity_type, la.saved_filter_code, la.filter_attribute, mappingValue, la.target_attribute, loggedInUser);
|
|
122
|
-
flatJson[la.target_attribute] = result;
|
|
123
|
-
await this.loggerService.log('debug', 'EntityJSONService', 'updateEntityJSON', `Linked attribute ${la.target_attribute} set from child entity ${la.child_entity_type}`);
|
|
160
|
+
const relatedData = await this.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser);
|
|
161
|
+
this.mergeEntityDataIntoFlatJson(flatJson, relatedData, attrMap);
|
|
124
162
|
}
|
|
125
163
|
await this.dataSource.query(`INSERT INTO frm_entity_json (entity_type, entity_id, json_data, created_by)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
await this.loggerService.log('info', 'EntityJSONService', 'updateEntityJSON', `Flat JSON saved for entity: ${entityType}#${entityId}`);
|
|
164
|
+
VALUES (?, ?, ?, ?)
|
|
165
|
+
ON DUPLICATE KEY UPDATE json_data = VALUES(json_data), updated_by = VALUES(created_by)`, [entityType, entityId, JSON.stringify(flatJson), loggedInUser.id]);
|
|
129
166
|
return flatJson;
|
|
130
167
|
}
|
|
131
|
-
|
|
132
|
-
for (const
|
|
133
|
-
|
|
134
|
-
|
|
168
|
+
mergeEntityDataIntoFlatJson(flatJson, entityData, attrMap) {
|
|
169
|
+
for (const record of entityData) {
|
|
170
|
+
for (const key of Object.keys(record)) {
|
|
171
|
+
const flatKey = attrMap[key] || key;
|
|
172
|
+
if (flatJson.hasOwnProperty(flatKey)) {
|
|
173
|
+
flatJson[flatKey] = record[key];
|
|
174
|
+
}
|
|
135
175
|
}
|
|
136
176
|
}
|
|
137
177
|
}
|
|
138
178
|
async applyLinkedFilterUsingSavedFilter(childEntityType, savedFilterCode, childFilterAttribute, mappingValue, targetAttribute, loggedInUser) {
|
|
139
|
-
if (!savedFilterCode &&
|
|
179
|
+
if (!savedFilterCode &&
|
|
180
|
+
(mappingValue === null || mappingValue === undefined))
|
|
140
181
|
return null;
|
|
141
182
|
const dto = {
|
|
142
183
|
entity_type: childEntityType,
|
|
@@ -145,18 +186,20 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
145
186
|
page: 1,
|
|
146
187
|
size: 1,
|
|
147
188
|
};
|
|
148
|
-
if (mappingValue !== null &&
|
|
189
|
+
if (mappingValue !== null &&
|
|
190
|
+
mappingValue !== undefined &&
|
|
191
|
+
mappingValue !== '') {
|
|
149
192
|
dto.quickFilter = [
|
|
150
193
|
{
|
|
151
194
|
filter_attribute: childFilterAttribute,
|
|
152
195
|
filter_operator: 'equal',
|
|
153
196
|
filter_value: mappingValue,
|
|
154
|
-
}
|
|
197
|
+
},
|
|
155
198
|
];
|
|
156
199
|
}
|
|
157
200
|
const result = await this.filterService.applyFilter(dto);
|
|
158
201
|
const rows = result?.data?.entity_list || [];
|
|
159
|
-
return rows.length ? rows[0][targetAttribute] ?? null : null;
|
|
202
|
+
return rows.length ? (rows[0][targetAttribute] ?? null) : null;
|
|
160
203
|
}
|
|
161
204
|
};
|
|
162
205
|
exports.EntityJSONService = EntityJSONService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_json.service.js","sourceRoot":"","sources":["../../../../src/module/entity_json/service/entity_json.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,wEAAyE;AACzE,uFAAiF;AACjF,qFAA+E;AAC/E,gGAAwF;AACxF,oFAAuE;AACvE,qCAAqC;AAG9B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YACmB,UAAsB,EACtB,aAA4B,EAC5B,aAA6B;QAE9C,KAAK,EAAE,CAAC;QAJS,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAgB;IAGhD,CAAC;IAED,KAAK,CAAC,uBAAuB,CAC3B,UAAkB,EAClB,YAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"entity_json.service.js","sourceRoot":"","sources":["../../../../src/module/entity_json/service/entity_json.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,wEAAyE;AACzE,uFAAiF;AACjF,qFAA+E;AAC/E,gGAAwF;AACxF,oFAAuE;AACvE,qCAAqC;AAG9B,IAAM,iB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CAAC;YACP,IAAI,EAAE,CAAC;SACR,CAAC;QAEF,IACE,YAAY,KAAK,IAAI;YACrB,YAAY,KAAK,SAAS;YAC1B,YAAY,KAAK,EAAE,EACnB,CAAC;YACD,GAAG,CAAC,WAAW,GAAG;gBAChB;oBACE,gBAAgB,EAAE,oBAAoB;oBACtC,eAAe,EAAE,OAAO;oBACxB,YAAY,EAAE,YAAY;iBAC3B;aACF,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACzD,MAAM,IAAI,GAAG,MAAM,EAAE,IAAI,EAAE,WAAW,IAAI,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,CAAC;CACF,CAAA;AAnTY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;QACP,8BAAa;QACb,oCAAc;GAJrC,iBAAiB,CAmT7B"}
|
|
@@ -7,11 +7,10 @@ export declare class AttributeMasterController {
|
|
|
7
7
|
constructor(attributeMasterService: AttributeMasterService, entityUpdateService: EntityUpdateService);
|
|
8
8
|
createAttribute(attributeData: any, req: Request & {
|
|
9
9
|
user: any;
|
|
10
|
-
}): Promise<
|
|
11
|
-
entityAttributeUpdate(payload: {}): Promise<any>;
|
|
10
|
+
}): Promise<boolean>;
|
|
12
11
|
updateAttribute(attributeData: any, id: number, req: Request & {
|
|
13
12
|
user: any;
|
|
14
|
-
}): Promise<
|
|
13
|
+
}): Promise<boolean>;
|
|
15
14
|
getAttributeById(id: number, req: Request & {
|
|
16
15
|
user: any;
|
|
17
16
|
}): Promise<import("../entity/attribute-master.entity").AttributeMaster | null>;
|
|
@@ -24,14 +24,11 @@ let AttributeMasterController = class AttributeMasterController {
|
|
|
24
24
|
}
|
|
25
25
|
async createAttribute(attributeData, req) {
|
|
26
26
|
const loggedInUser = req.user.userData;
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
async entityAttributeUpdate(payload) {
|
|
30
|
-
return this.entityUpdateService.execute(payload);
|
|
27
|
+
return true;
|
|
31
28
|
}
|
|
32
29
|
async updateAttribute(attributeData, id, req) {
|
|
33
30
|
const loggedInUser = req.user.userData;
|
|
34
|
-
return
|
|
31
|
+
return true;
|
|
35
32
|
}
|
|
36
33
|
async getAttributeById(id, req) {
|
|
37
34
|
return await this.attributeMasterService.getAttributeById(id);
|
|
@@ -54,13 +51,6 @@ __decorate([
|
|
|
54
51
|
__metadata("design:paramtypes", [Object, Object]),
|
|
55
52
|
__metadata("design:returntype", Promise)
|
|
56
53
|
], AttributeMasterController.prototype, "createAttribute", null);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, common_1.Post)('/updateAttributeValue'),
|
|
59
|
-
__param(0, (0, common_1.Body)()),
|
|
60
|
-
__metadata("design:type", Function),
|
|
61
|
-
__metadata("design:paramtypes", [Object]),
|
|
62
|
-
__metadata("design:returntype", Promise)
|
|
63
|
-
], AttributeMasterController.prototype, "entityAttributeUpdate", null);
|
|
64
54
|
__decorate([
|
|
65
55
|
(0, common_1.Post)('update/:id'),
|
|
66
56
|
__param(0, (0, common_1.Body)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/attribute-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,kFAA6E;AAC7E,2DAA2D;AAC3D,gGAAiF;AAI1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YACmB,sBAA8C,EAC9C,mBAAwC;QADxC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAGE,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACnB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"attribute-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/attribute-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,kFAA6E;AAC7E,2DAA2D;AAC3D,gGAAiF;AAI1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YACmB,sBAA8C,EAC9C,mBAAwC;QADxC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,wBAAmB,GAAnB,mBAAmB,CAAqB;IACxD,CAAC;IAGE,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACnB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAKvC,OAAO,IAAI,CAAA;IACb,CAAC;IAKK,AAAN,KAAK,CAAC,eAAe,CACX,aAAkB,EACb,EAAU,EAChB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAMvC,OAAO,IAAI,CAAA;IACb,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACP,EAAU,EAChB,GAA4B;QAEnC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;IAGK,AAAN,KAAK,CAAC,oBAAoB,CACF,WAAkB,EAC7B,GAA4B;QAGnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAE3C,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,WAAW,EAAC,YAAY,CAAC,CAAA;IAC9F,CAAC;IAIK,AAAN,KAAK,CAAC,yBAAyB,CACR,UAAkB,EAChC,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,yBAAyB,CAChE,UAAU,EACV,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAnEY,8DAAyB;AAO9B;IADL,IAAA,aAAI,EAAC,SAAS,CAAC;IAEb,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gEAQP;AAKK;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IAEhB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;;;;gEASP;AAGK;IADL,IAAA,YAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iEAGP;AAGK;IADL,IAAA,YAAG,EAAC,2CAA2C,CAAC;IAE9C,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IAChB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;qEAMX;AAIK;IADL,IAAA,YAAG,EAAC,6BAA6B,CAAC;IAEhC,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;0EAOP;oCAlEU,yBAAyB;IAFrC,IAAA,mBAAU,EAAC,kBAAkB,CAAC;IAC9B,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAGqB,iDAAsB;QACzB,qDAAmB;GAHhD,yBAAyB,CAmErC"}
|
|
@@ -116,6 +116,10 @@ __decorate([
|
|
|
116
116
|
(0, typeorm_1.Column)({ name: 'is_hidden', nullable: true }),
|
|
117
117
|
__metadata("design:type", Boolean)
|
|
118
118
|
], AttributeMaster.prototype, "is_hidden", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ name: 'flat_json_key', nullable: true }),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], AttributeMaster.prototype, "flat_json_key", void 0);
|
|
119
123
|
exports.AttributeMaster = AttributeMaster = __decorate([
|
|
120
124
|
(0, typeorm_1.Entity)({ name: 'frm_entity_attribute' }),
|
|
121
125
|
(0, typeorm_1.Index)('idx_attribute_master_key_org_entity', ['attribute_key', 'organization_id', 'mapped_entity_type']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/attribute-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAkD;AAClD,qCAAgD;AAKzC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAU;
|
|
1
|
+
{"version":3,"file":"attribute-master.entity.js","sourceRoot":"","sources":["../../../../src/module/meta/entity/attribute-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAkD;AAClD,qCAAgD;AAKzC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAU;CAqF9C,CAAA;AArFY,0CAAe;AAE1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAC7C;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC5B;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;qDACzD;AAQrB;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;KACX,CAAC;;yDACuB;AAQzB;IANC,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AAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC3B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DAC5B;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC5B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC3B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC3B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC5B;0BApFX,eAAe;IAH3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;IACxC,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,CAAC;IACxG,IAAA,eAAK,EAAC,iCAAiC,EAAE,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC;GACvE,eAAe,CAqF3B"}
|
package/dist/table.config.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DashboardPageData } from "./module/dashboard/entity/dashboard_page_data
|
|
|
2
2
|
import { EnterpriseData } from "./module/enterprise/entity/enterprise.entity";
|
|
3
3
|
import { OrganizationAppMapping } from "./module/enterprise/entity/organization-app-mapping.entity";
|
|
4
4
|
import { OrganizationData } from "./module/enterprise/entity/organization.entity";
|
|
5
|
+
import { EntityJson } from "./module/entity_json/entity/entityJson.entity";
|
|
5
6
|
import { SavedFilterDetail } from "./module/filter/entity/saved-filter-detail.entity";
|
|
6
7
|
import { SavedFilterMaster } from "./module/filter/entity/saved-filter-master.entity";
|
|
7
8
|
import { IntegrationConfig } from "./module/integration/entity/integration-config.entity";
|
|
@@ -35,6 +36,6 @@ import { UserData } from "./module/user/entity/user.entity";
|
|
|
35
36
|
import { TemplateAttach } from "./module/workflow/entity/template-attach-mapper.entity";
|
|
36
37
|
import { WorkFlowData } from "./module/workflow/entity/workflow-data.entity";
|
|
37
38
|
import { WorkflowLevelMappingEntity } from "./module/workflow/entity/workflow-level-mapping.entity";
|
|
38
|
-
export declare const frameworkTables: (typeof ListMasterItems | typeof ListMasterData | typeof EntityRelation | typeof SavedFilterMaster | typeof SavedFilterDetail | typeof EntityTable | typeof EntityTableColumn | typeof MediaData | typeof PreferenceMaster | typeof IntegrationConfig | typeof UserIntegration | typeof IntegrationEntityMapper | typeof FieldMapper | typeof FieldLovMapper | typeof IntegrationSource | typeof Mapper | typeof NotificationData | typeof LayoutPreference | typeof DashboardPageData)[];
|
|
39
|
+
export declare const frameworkTables: (typeof ListMasterItems | typeof ListMasterData | typeof EntityRelation | typeof SavedFilterMaster | typeof SavedFilterDetail | typeof EntityTable | typeof EntityTableColumn | typeof MediaData | typeof PreferenceMaster | typeof IntegrationConfig | typeof UserIntegration | typeof IntegrationEntityMapper | typeof FieldMapper | typeof FieldLovMapper | typeof IntegrationSource | typeof Mapper | typeof NotificationData | typeof LayoutPreference | typeof DashboardPageData | typeof EntityJson)[];
|
|
39
40
|
export declare const workflowTables: (typeof TemplateAttach | typeof WorkflowLevelMappingEntity | typeof WorkFlowData)[];
|
|
40
41
|
export declare const SSOTables: (typeof UserData | typeof Role | typeof ModuleAccess | typeof OrganizationData | typeof UserRoleMapping | typeof AppMaster | typeof UserSession | typeof OrganizationAppMapping | typeof ModuleData | typeof ModuleAction | typeof MenuData | typeof Otp | typeof HeaderSection | typeof HeaderItems | typeof EnterpriseData)[];
|