rez_core 4.0.242 → 4.0.244
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/entityJson.repository.d.ts +7 -0
- package/dist/module/entity_json/service/entityJson.repository.js +34 -0
- package/dist/module/entity_json/service/entityJson.repository.js.map +1 -0
- package/dist/module/entity_json/service/entity_json.service.d.ts +3 -1
- package/dist/module/entity_json/service/entity_json.service.js +35 -68
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/entity_json/service/entityJson.repository.ts +16 -0
- package/src/module/entity_json/service/entity_json.service.ts +83 -186
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Repository } from "typeorm";
|
|
2
|
+
import { EntityJson } from "../entity/entityJson.entity";
|
|
3
|
+
export declare class EntityJSONRepository {
|
|
4
|
+
private readonly entityJSONRepository;
|
|
5
|
+
constructor(entityJSONRepository: Repository<EntityJson>);
|
|
6
|
+
create(flatJson: Partial<EntityJson>): Promise<Partial<EntityJson> & EntityJson>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.EntityJSONRepository = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const typeorm_2 = require("typeorm");
|
|
19
|
+
const entityJson_entity_1 = require("../entity/entityJson.entity");
|
|
20
|
+
let EntityJSONRepository = class EntityJSONRepository {
|
|
21
|
+
constructor(entityJSONRepository) {
|
|
22
|
+
this.entityJSONRepository = entityJSONRepository;
|
|
23
|
+
}
|
|
24
|
+
async create(flatJson) {
|
|
25
|
+
return this.entityJSONRepository.save(flatJson);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.EntityJSONRepository = EntityJSONRepository;
|
|
29
|
+
exports.EntityJSONRepository = EntityJSONRepository = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, typeorm_1.InjectRepository)(entityJson_entity_1.EntityJson)),
|
|
32
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
33
|
+
], EntityJSONRepository);
|
|
34
|
+
//# sourceMappingURL=entityJson.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityJson.repository.js","sourceRoot":"","sources":["../../../../src/module/entity_json/service/entityJson.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,mEAAyD;AAKlD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACiD,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC1F,CAAC;IACN,KAAK,CAAC,MAAM,CAAC,QAA6B;QACxC,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;CACA,CAAA;AAPY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,8BAAU,CAAC,CAAA;qCAAwC,oBAAU;GAFtE,oBAAoB,CAOhC"}
|
|
@@ -3,11 +3,13 @@ import { AttributeMaster } from 'src/module/meta/entity/attribute-master.entity'
|
|
|
3
3
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
4
4
|
import { LoggingService } from 'src/utils/service/loggingUtil.service';
|
|
5
5
|
import { DataSource } from 'typeorm';
|
|
6
|
+
import { EntityJSONRepository } from './entityJson.repository';
|
|
6
7
|
export declare class EntityJSONService extends EntityServiceImpl {
|
|
7
8
|
private readonly dataSource;
|
|
8
9
|
private readonly filterService;
|
|
9
10
|
private readonly loggerService;
|
|
10
|
-
|
|
11
|
+
private readonly EntityJSONRepository;
|
|
12
|
+
constructor(dataSource: DataSource, filterService: FilterService, loggerService: LoggingService, EntityJSONRepository: EntityJSONRepository);
|
|
11
13
|
getAttributeForFlatJSON(entityType: string, loggedInUser: any, flag?: 'flat_json' | 'dropdown' | 'all'): Promise<any[] | Record<string, null> | {
|
|
12
14
|
flat_json: Record<string, null>;
|
|
13
15
|
attributes: {
|
|
@@ -18,12 +18,14 @@ const entity_relation_entity_1 = require("../../meta/entity/entity-relation.enti
|
|
|
18
18
|
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
19
19
|
const loggingUtil_service_1 = require("../../../utils/service/loggingUtil.service");
|
|
20
20
|
const typeorm_1 = require("typeorm");
|
|
21
|
+
const entityJson_repository_1 = require("./entityJson.repository");
|
|
21
22
|
let EntityJSONService = class EntityJSONService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
22
|
-
constructor(dataSource, filterService, loggerService) {
|
|
23
|
+
constructor(dataSource, filterService, loggerService, EntityJSONRepository) {
|
|
23
24
|
super();
|
|
24
25
|
this.dataSource = dataSource;
|
|
25
26
|
this.filterService = filterService;
|
|
26
27
|
this.loggerService = loggerService;
|
|
28
|
+
this.EntityJSONRepository = EntityJSONRepository;
|
|
27
29
|
}
|
|
28
30
|
async getAttributeForFlatJSON(entityType, loggedInUser, flag) {
|
|
29
31
|
const orgId = loggedInUser.organization_id;
|
|
@@ -42,26 +44,16 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
42
44
|
.select(['rel.target_entity_type'])
|
|
43
45
|
.where('rel.source_entity_type = :entityType', { entityType })
|
|
44
46
|
.andWhere('rel.organization_id = :orgId', { orgId })
|
|
45
|
-
.andWhere('rel.relation_type = :relationType', {
|
|
46
|
-
relationType: 'ONE_TO_ONE',
|
|
47
|
-
})
|
|
47
|
+
.andWhere('rel.relation_type = :relationType', { relationType: 'ONE_TO_ONE' })
|
|
48
48
|
.getRawMany();
|
|
49
|
-
const relatedTypesList = relatedEntityTypes.map(
|
|
49
|
+
const relatedTypesList = relatedEntityTypes.map(x => x.rel_target_entity_type);
|
|
50
50
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Found ${relatedTypesList.length} ONE-TO-ONE related entity types`);
|
|
51
51
|
const relatedAttributes = relatedTypesList.length
|
|
52
52
|
? await this.dataSource
|
|
53
53
|
.getRepository(attribute_master_entity_1.AttributeMaster)
|
|
54
54
|
.createQueryBuilder('attr')
|
|
55
|
-
.select([
|
|
56
|
-
'attr.
|
|
57
|
-
'attr.name',
|
|
58
|
-
'attr.flat_json_key',
|
|
59
|
-
'attr.mapped_entity_type',
|
|
60
|
-
'attr.attribute_key',
|
|
61
|
-
])
|
|
62
|
-
.where('attr.mapped_entity_type IN (:...types)', {
|
|
63
|
-
types: relatedTypesList,
|
|
64
|
-
})
|
|
55
|
+
.select(['attr.id', 'attr.name', 'attr.flat_json_key', 'attr.mapped_entity_type', 'attr.attribute_key'])
|
|
56
|
+
.where('attr.mapped_entity_type IN (:...types)', { types: relatedTypesList })
|
|
65
57
|
.andWhere('attr.organization_id = :orgId', { orgId })
|
|
66
58
|
.getMany()
|
|
67
59
|
: [];
|
|
@@ -76,46 +68,29 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
76
68
|
'fla.attribute_key AS target_attribute_key',
|
|
77
69
|
'fla.saved_filter_code AS saved_filter_code',
|
|
78
70
|
'attr.name AS name',
|
|
79
|
-
'attr.id AS id'
|
|
71
|
+
'attr.id AS id',
|
|
80
72
|
])
|
|
81
73
|
.where('attr.organization_id = :orgId', { orgId })
|
|
82
74
|
.getRawMany();
|
|
83
75
|
await this.loggerService.log('debug', 'EntityJSONService', 'getAttributeForFlatJSON', `Loaded ${linkedAttributes.length} linked attributes`);
|
|
84
76
|
if (flag === 'flat_json' || flag === 'all') {
|
|
85
77
|
const result = {};
|
|
86
|
-
mainAttributes.forEach(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
result[attr.flat_json_key] = null;
|
|
93
|
-
});
|
|
94
|
-
linkedAttributes.forEach((link) => {
|
|
95
|
-
if (link.target_attribute_key)
|
|
96
|
-
result[link.target_attribute_key] = null;
|
|
97
|
-
});
|
|
78
|
+
mainAttributes.forEach(attr => { if (attr.flat_json_key)
|
|
79
|
+
result[attr.flat_json_key] = null; });
|
|
80
|
+
relatedAttributes.forEach(attr => { if (attr.flat_json_key)
|
|
81
|
+
result[attr.flat_json_key] = null; });
|
|
82
|
+
linkedAttributes.forEach(link => { if (link.target_attribute_key)
|
|
83
|
+
result[link.target_attribute_key] = null; });
|
|
98
84
|
if (flag === 'all') {
|
|
99
|
-
return {
|
|
100
|
-
flat_json: result,
|
|
101
|
-
attributes: { mainAttributes, relatedAttributes, linkedAttributes }
|
|
102
|
-
};
|
|
85
|
+
return { flat_json: result, attributes: { mainAttributes, relatedAttributes, linkedAttributes } };
|
|
103
86
|
}
|
|
104
87
|
return result;
|
|
105
88
|
}
|
|
106
89
|
const dropdown = [];
|
|
107
|
-
dropdown.push(...mainAttributes.map(
|
|
108
|
-
dropdown.push(...relatedAttributes.map(
|
|
109
|
-
label: a.name,
|
|
110
|
-
value: a.flat_json_key,
|
|
111
|
-
})));
|
|
90
|
+
dropdown.push(...mainAttributes.map(a => ({ label: a.name, value: a.flat_json_key })));
|
|
91
|
+
dropdown.push(...relatedAttributes.map(a => ({ label: a.name, value: a.flat_json_key })));
|
|
112
92
|
if (linkedAttributes.length > 0) {
|
|
113
|
-
dropdown.push({
|
|
114
|
-
...linkedAttributes.map((a) => ({
|
|
115
|
-
label: a.name,
|
|
116
|
-
value: a.attribute_key,
|
|
117
|
-
})),
|
|
118
|
-
});
|
|
93
|
+
dropdown.push(...linkedAttributes.map(a => ({ label: a.name, value: a.attribute_key })));
|
|
119
94
|
}
|
|
120
95
|
return dropdown;
|
|
121
96
|
}
|
|
@@ -136,10 +111,8 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
136
111
|
};
|
|
137
112
|
const attrMap = {};
|
|
138
113
|
const allAttrs = [...safeAttributes.mainAttributes, ...safeAttributes.relatedAttributes];
|
|
139
|
-
allAttrs.forEach(attr => {
|
|
140
|
-
|
|
141
|
-
attrMap[attr.attribute_key] = attr.flat_json_key || attr.attribute_key;
|
|
142
|
-
});
|
|
114
|
+
allAttrs.forEach(attr => { if (attr.attribute_key)
|
|
115
|
+
attrMap[attr.attribute_key] = attr.flat_json_key || attr.attribute_key; });
|
|
143
116
|
const mainData = await this.getResolvedEntityData(entityType, entityId, loggedInUser);
|
|
144
117
|
this.mergeEntityDataIntoFlatJson(flatJson, mainData, attrMap);
|
|
145
118
|
const relations = await this.dataSource
|
|
@@ -163,13 +136,17 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
163
136
|
const mappingValue = mainData?.[sourceKey] ?? null;
|
|
164
137
|
const value = await this.applyLinkedFilterUsingSavedFilter(childEntityType, linkAttr.saved_filter_code, sourceKey, mappingValue, targetKey, loggedInUser, entityId);
|
|
165
138
|
if (value !== null && value !== undefined) {
|
|
166
|
-
|
|
167
|
-
flatJson[flatKey] = value;
|
|
139
|
+
flatJson[targetKey] = value;
|
|
168
140
|
}
|
|
169
141
|
}
|
|
170
|
-
await this.
|
|
171
|
-
|
|
172
|
-
|
|
142
|
+
await this.loggerService.log('info', 'EntityJSONService', 'updateEntityJSON', `Saving flat JSON for entity: ${entityType}#${entityId}`);
|
|
143
|
+
let JsonData = {
|
|
144
|
+
entity_type: entityType,
|
|
145
|
+
entity_id: entityId,
|
|
146
|
+
json_data: flatJson,
|
|
147
|
+
created_by: loggedInUser.id,
|
|
148
|
+
};
|
|
149
|
+
await this.EntityJSONRepository.create(JsonData);
|
|
173
150
|
return flatJson;
|
|
174
151
|
}
|
|
175
152
|
mergeEntityDataIntoFlatJson(flatJson, entityData, attrMap) {
|
|
@@ -186,8 +163,7 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
186
163
|
}
|
|
187
164
|
}
|
|
188
165
|
async applyLinkedFilterUsingSavedFilter(childEntityType, savedFilterCode, childFilterAttribute, mappingValue, targetAttribute, loggedInUser, entity_id) {
|
|
189
|
-
if (!savedFilterCode &&
|
|
190
|
-
(mappingValue === null || mappingValue === undefined))
|
|
166
|
+
if (!savedFilterCode && (mappingValue === null || mappingValue === undefined))
|
|
191
167
|
return null;
|
|
192
168
|
const dto = {
|
|
193
169
|
entity_type: childEntityType,
|
|
@@ -196,23 +172,13 @@ let EntityJSONService = class EntityJSONService extends entity_service_impl_serv
|
|
|
196
172
|
page: 1,
|
|
197
173
|
size: 1,
|
|
198
174
|
};
|
|
199
|
-
if (mappingValue !== null &&
|
|
200
|
-
mappingValue !== undefined &&
|
|
201
|
-
mappingValue !== '') {
|
|
175
|
+
if (mappingValue !== null && mappingValue !== undefined && mappingValue !== '') {
|
|
202
176
|
dto.quickFilter = [
|
|
203
|
-
{
|
|
204
|
-
filter_attribute: childFilterAttribute,
|
|
205
|
-
filter_operator: 'equal',
|
|
206
|
-
filter_value: mappingValue,
|
|
207
|
-
},
|
|
177
|
+
{ filter_attribute: childFilterAttribute, filter_operator: 'equal', filter_value: mappingValue },
|
|
208
178
|
];
|
|
209
179
|
}
|
|
210
180
|
dto.quickFilter = [
|
|
211
|
-
{
|
|
212
|
-
filter_attribute: 'parent_id',
|
|
213
|
-
filter_operator: 'equal',
|
|
214
|
-
filter_value: [entity_id],
|
|
215
|
-
},
|
|
181
|
+
{ filter_attribute: 'parent_id', filter_operator: 'equal', filter_value: [entity_id] },
|
|
216
182
|
];
|
|
217
183
|
const result = await this.filterService.applyFilter(dto);
|
|
218
184
|
const rows = result?.data?.entity_list || [];
|
|
@@ -224,6 +190,7 @@ exports.EntityJSONService = EntityJSONService = __decorate([
|
|
|
224
190
|
(0, common_1.Injectable)(),
|
|
225
191
|
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
226
192
|
filter_service_1.FilterService,
|
|
227
|
-
loggingUtil_service_1.LoggingService
|
|
193
|
+
loggingUtil_service_1.LoggingService,
|
|
194
|
+
entityJson_repository_1.EntityJSONRepository])
|
|
228
195
|
], EntityJSONService);
|
|
229
196
|
//# sourceMappingURL=entity_json.service.js.map
|
|
@@ -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,oGAA+F;AAC/F,uFAAiF;AACjF,qFAA+E;AAC/E,gGAAwF;AACxF,oFAAuE;AACvE,qCAAqC;
|
|
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,oGAA+F;AAC/F,uFAAiF;AACjF,qFAA+E;AAC/E,gGAAwF;AACxF,oFAAuE;AACvE,qCAAqC;AACrC,mEAA+D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