rez_core 6.5.31 → 6.5.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/entity_json/service/entity_json.service.js +3 -3
- package/dist/module/meta/service/entity-table.service.d.ts +3 -1
- package/dist/module/meta/service/entity-table.service.js +7 -3
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/entity_json/service/entity_json.service.ts +3 -3
- package/src/module/meta/service/entity-table.service.ts +6 -19
|
@@ -98,21 +98,21 @@ let EntityJSONService = class EntityJSONService {
|
|
|
98
98
|
id: a.id,
|
|
99
99
|
name: a.name,
|
|
100
100
|
data_type: a.data_type,
|
|
101
|
-
|
|
101
|
+
attribute_key: a.flat_json_key,
|
|
102
102
|
source: 'main',
|
|
103
103
|
})));
|
|
104
104
|
filterAttributes.push(...relatedAttributes.map((a) => ({
|
|
105
105
|
id: a.id,
|
|
106
106
|
name: a.name,
|
|
107
107
|
data_type: a.data_type,
|
|
108
|
-
|
|
108
|
+
attribute_key: a.flat_json_key,
|
|
109
109
|
source: 'related',
|
|
110
110
|
})));
|
|
111
111
|
filterAttributes.push(...linkedAttributes.map((l) => ({
|
|
112
112
|
id: l.id,
|
|
113
113
|
name: l.name,
|
|
114
114
|
data_type: l.data_type,
|
|
115
|
-
|
|
115
|
+
attribute_key: l.target_attribute_key,
|
|
116
116
|
source: 'linked',
|
|
117
117
|
})));
|
|
118
118
|
return filterAttributes;
|
|
@@ -2,12 +2,14 @@ import { EntityTableRepository } from '../repository/entity-table.repository';
|
|
|
2
2
|
import { EntityTableColumnRepository } from '../repository/entity-table-column.repository';
|
|
3
3
|
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
4
4
|
import { SavedFilterRepositoryService } from 'src/module/filter/repository/saved-filter.repository';
|
|
5
|
+
import { AttributeMasterService } from './attribute-master.service';
|
|
5
6
|
export declare class EntityTableService {
|
|
6
7
|
private entityTableRepository;
|
|
7
8
|
private readonly entityTableColumnRepository;
|
|
8
9
|
private readonly listMasterService;
|
|
9
10
|
private readonly savedFilterRepoService;
|
|
10
|
-
|
|
11
|
+
private readonly attributeMasterService;
|
|
12
|
+
constructor(entityTableRepository: EntityTableRepository, entityTableColumnRepository: EntityTableColumnRepository, listMasterService: ListMasterService, savedFilterRepoService: SavedFilterRepositoryService, attributeMasterService: AttributeMasterService);
|
|
11
13
|
getEntityData(mappedEntityType: string | null, loggedInUser: any): Promise<import("../entity/entity-table.entity").EntityTable>;
|
|
12
14
|
findByEntityTypeAndListType(entityType: string, listType: string): Promise<import("../entity/entity-table.entity").EntityTable | null>;
|
|
13
15
|
findByEntityTypeAndListTypeAndDisplayType(entityType: string, listType: string, displayType: string, enterprise_id: number): Promise<import("../entity/entity-table.entity").EntityTable | null>;
|
|
@@ -19,12 +19,14 @@ const entity_table_column_repository_1 = require("../repository/entity-table-col
|
|
|
19
19
|
const global_constant_1 = require("../../../constant/global.constant");
|
|
20
20
|
const list_master_service_1 = require("../../listmaster/service/list-master.service");
|
|
21
21
|
const saved_filter_repository_1 = require("../../filter/repository/saved-filter.repository");
|
|
22
|
+
const attribute_master_service_1 = require("./attribute-master.service");
|
|
22
23
|
let EntityTableService = class EntityTableService {
|
|
23
|
-
constructor(entityTableRepository, entityTableColumnRepository, listMasterService, savedFilterRepoService) {
|
|
24
|
+
constructor(entityTableRepository, entityTableColumnRepository, listMasterService, savedFilterRepoService, attributeMasterService) {
|
|
24
25
|
this.entityTableRepository = entityTableRepository;
|
|
25
26
|
this.entityTableColumnRepository = entityTableColumnRepository;
|
|
26
27
|
this.listMasterService = listMasterService;
|
|
27
28
|
this.savedFilterRepoService = savedFilterRepoService;
|
|
29
|
+
this.attributeMasterService = attributeMasterService;
|
|
28
30
|
}
|
|
29
31
|
async getEntityData(mappedEntityType, loggedInUser) {
|
|
30
32
|
if (mappedEntityType) {
|
|
@@ -48,7 +50,8 @@ let EntityTableService = class EntityTableService {
|
|
|
48
50
|
return await this.getTableMetaData(entityType, listType, global_constant_1.DISPLAY_LIST, loggedInUser);
|
|
49
51
|
}
|
|
50
52
|
async getTableMetaData(entityType, listType, displayType, loggedInUser) {
|
|
51
|
-
let entityTableDto;
|
|
53
|
+
let entityTableDto = {};
|
|
54
|
+
entityTableDto.column_list = await this.attributeMasterService.getAttributes(entityType, loggedInUser);
|
|
52
55
|
entityTableDto.operation_list = {
|
|
53
56
|
text: await this.listMasterService.getDropdownOptions('OPT', {}, [], loggedInUser),
|
|
54
57
|
number: await this.listMasterService.getDropdownOptions('OPN', {}, [], loggedInUser),
|
|
@@ -79,6 +82,7 @@ exports.EntityTableService = EntityTableService = __decorate([
|
|
|
79
82
|
__metadata("design:paramtypes", [entity_table_repository_1.EntityTableRepository,
|
|
80
83
|
entity_table_column_repository_1.EntityTableColumnRepository,
|
|
81
84
|
list_master_service_1.ListMasterService,
|
|
82
|
-
saved_filter_repository_1.SavedFilterRepositoryService
|
|
85
|
+
saved_filter_repository_1.SavedFilterRepositoryService,
|
|
86
|
+
attribute_master_service_1.AttributeMasterService])
|
|
83
87
|
], EntityTableService);
|
|
84
88
|
//# sourceMappingURL=entity-table.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,mFAA8E;AAC9E,iGAA2F;AAE3F,uEAAiE;AACjE,sFAAsF;AACtF,6FAAoG;
|
|
1
|
+
{"version":3,"file":"entity-table.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/entity-table.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAgE;AAChE,mFAA8E;AAC9E,iGAA2F;AAE3F,uEAAiE;AACjE,sFAAsF;AACtF,6FAAoG;AACpG,yEAAoE;AAG7D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;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