rez_core 3.1.35 → 3.1.37
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 +2 -5
- package/dist/core.module.js.map +1 -1
- package/dist/module/filter/repository/saved-filter.repository.js +1 -1
- package/dist/module/mapper/controller/field-mapper.controller.d.ts +1 -2
- package/dist/module/mapper/controller/field-mapper.controller.js +4 -17
- package/dist/module/mapper/controller/field-mapper.controller.js.map +1 -1
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.d.ts +3 -3
- package/dist/module/mapper/entity/field-mapper.entity.js +5 -5
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
- package/dist/module/mapper/repository/field-mapper.repository.js +1 -1
- package/dist/module/mapper/repository/field-mapper.repository.js.map +1 -1
- package/dist/module/mapper/service/field-mapper.service.d.ts +1 -1
- package/dist/module/mapper/service/field-mapper.service.js +3 -3
- package/dist/module/mapper/service/field-mapper.service.js.map +1 -1
- package/dist/module/mapper/service/mapper.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/core.module.ts +2 -5
- package/src/module/filter/repository/saved-filter.repository.ts +1 -1
- package/src/module/mapper/controller/field-mapper.controller.ts +4 -10
- package/src/module/mapper/dto/field-mapper.dto.ts +1 -1
- package/src/module/mapper/entity/field-mapper.entity.ts +5 -5
- package/src/module/mapper/repository/field-mapper.repository.ts +1 -1
- package/src/module/mapper/service/field-mapper.service.ts +4 -4
- package/src/module/mapper/service/mapper.service.ts +1 -1
package/dist/core.module.js
CHANGED
|
@@ -24,7 +24,6 @@ const lead_module_1 = require("./module/lead/lead.module");
|
|
|
24
24
|
const layout_preference_module_1 = require("./module/layout_preference/layout_preference.module");
|
|
25
25
|
const workflow_module_1 = require("./module/workflow/workflow.module");
|
|
26
26
|
const workflow_automation_module_1 = require("./module/workflow-automation/workflow-automation.module");
|
|
27
|
-
const mapper_module_1 = require("./module/mapper/mapper.module");
|
|
28
27
|
let CoreModule = CoreModule_1 = class CoreModule {
|
|
29
28
|
static forRootAsync(dbModule, isSso) {
|
|
30
29
|
if (!dbModule) {
|
|
@@ -42,8 +41,7 @@ let CoreModule = CoreModule_1 = class CoreModule {
|
|
|
42
41
|
lead_module_1.LeadModule,
|
|
43
42
|
layout_preference_module_1.LayoutPreferenceModule,
|
|
44
43
|
workflow_module_1.WorkflowModule,
|
|
45
|
-
workflow_automation_module_1.WorkflowAutomationModule
|
|
46
|
-
mapper_module_1.MapperModule
|
|
44
|
+
workflow_automation_module_1.WorkflowAutomationModule
|
|
47
45
|
];
|
|
48
46
|
const exportsArray = [
|
|
49
47
|
config_1.ConfigModule,
|
|
@@ -57,8 +55,7 @@ let CoreModule = CoreModule_1 = class CoreModule {
|
|
|
57
55
|
lead_module_1.LeadModule,
|
|
58
56
|
layout_preference_module_1.LayoutPreferenceModule,
|
|
59
57
|
workflow_module_1.WorkflowModule,
|
|
60
|
-
workflow_automation_module_1.WorkflowAutomationModule
|
|
61
|
-
mapper_module_1.MapperModule
|
|
58
|
+
workflow_automation_module_1.WorkflowAutomationModule
|
|
62
59
|
];
|
|
63
60
|
if (isSso) {
|
|
64
61
|
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;AAC3D,iEAA6D;AAC7D,mFAA+E;AAC/E,iEAA6D;AAC7D,6EAAyE;AACzE,iEAA6D;AAC7D,2DAAuD;AACvD,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wGAAmG;
|
|
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;AAC3D,iEAA6D;AAC7D,mFAA+E;AAC/E,iEAA6D;AAC7D,6EAAyE;AACzE,iEAA6D;AAC7D,2DAAuD;AACvD,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wGAAmG;AAI5F,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB,MAAM,CAAC,YAAY,CAAC,QAAuB,EAAE,KAAc;QACzD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;QAED,MAAM,YAAY,GAAG;YACnB,qBAAY,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACxC,QAAQ;YACR,4BAAY;YACZ,0BAAW;YACX,wCAAkB;YAClB,oCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,qDAAwB;SACzB,CAAC;QAEF,MAAM,YAAY,GAAG;YACnB,qBAAY;YACZ,QAAQ;YACR,4BAAY;YACZ,wBAAU;YACV,0BAAW;YACX,wCAAkB;YAClB,oCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,qDAAwB;SACzB,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;AAzDY,gCAAU;qBAAV,UAAU;IAFtB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAyDtB"}
|
|
@@ -38,7 +38,7 @@ let SavedFilterRepositoryService = class SavedFilterRepositoryService {
|
|
|
38
38
|
return !!existing;
|
|
39
39
|
}
|
|
40
40
|
async getDetailsByCode(code) {
|
|
41
|
-
console.log(
|
|
41
|
+
console.log('IN GET DETAILS BY CODE', code);
|
|
42
42
|
let data = await this.savedFilterDetailRepo.find({
|
|
43
43
|
where: { mapped_filter_code: code },
|
|
44
44
|
});
|
|
@@ -2,6 +2,5 @@ import { FieldMapperService } from '../service/field-mapper.service';
|
|
|
2
2
|
export declare class FieldMapperController {
|
|
3
3
|
private readonly fieldMapperService;
|
|
4
4
|
constructor(fieldMapperService: FieldMapperService);
|
|
5
|
-
resolve(req: any, integration_component: string,
|
|
6
|
-
createBulk(req: any, dtos: string): Promise<(Partial<import("../entity/field-mapper.entity").FieldMapper> & import("../entity/field-mapper.entity").FieldMapper)[]>;
|
|
5
|
+
resolve(req: any, integration_component: string, parent_type: string, parent_id: number): Promise<Record<string, any>>;
|
|
7
6
|
}
|
|
@@ -20,13 +20,9 @@ let FieldMapperController = class FieldMapperController {
|
|
|
20
20
|
constructor(fieldMapperService) {
|
|
21
21
|
this.fieldMapperService = fieldMapperService;
|
|
22
22
|
}
|
|
23
|
-
async resolve(req, integration_component,
|
|
23
|
+
async resolve(req, integration_component, parent_type, parent_id) {
|
|
24
24
|
const loggedInUser = req.user.userData;
|
|
25
|
-
return this.fieldMapperService.resolveData(integration_component,
|
|
26
|
-
}
|
|
27
|
-
async createBulk(req, dtos) {
|
|
28
|
-
const loggedInUser = req.user.userData;
|
|
29
|
-
return this.fieldMapperService.createFieldMappers(dtos);
|
|
25
|
+
return this.fieldMapperService.resolveData(integration_component, parent_type, parent_id, loggedInUser);
|
|
30
26
|
}
|
|
31
27
|
};
|
|
32
28
|
exports.FieldMapperController = FieldMapperController;
|
|
@@ -35,21 +31,12 @@ __decorate([
|
|
|
35
31
|
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
36
32
|
__param(0, (0, common_1.Req)()),
|
|
37
33
|
__param(1, (0, common_1.Query)('integration_component')),
|
|
38
|
-
__param(2, (0, common_1.Query)('
|
|
39
|
-
__param(3, (0, common_1.Query)('
|
|
34
|
+
__param(2, (0, common_1.Query)('parent_type')),
|
|
35
|
+
__param(3, (0, common_1.Query)('parent_id')),
|
|
40
36
|
__metadata("design:type", Function),
|
|
41
37
|
__metadata("design:paramtypes", [Object, String, String, Number]),
|
|
42
38
|
__metadata("design:returntype", Promise)
|
|
43
39
|
], FieldMapperController.prototype, "resolve", null);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, common_1.Post)('bulk'),
|
|
46
|
-
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
47
|
-
__param(0, (0, common_1.Req)()),
|
|
48
|
-
__param(1, (0, common_1.Body)()),
|
|
49
|
-
__metadata("design:type", Function),
|
|
50
|
-
__metadata("design:paramtypes", [Object, String]),
|
|
51
|
-
__metadata("design:returntype", Promise)
|
|
52
|
-
], FieldMapperController.prototype, "createBulk", null);
|
|
53
40
|
exports.FieldMapperController = FieldMapperController = __decorate([
|
|
54
41
|
(0, common_1.Controller)('field-mapper'),
|
|
55
42
|
__param(0, (0, common_1.Inject)('FieldMapperService')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-mapper.controller.js","sourceRoot":"","sources":["../../../../src/module/mapper/controller/field-mapper.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"field-mapper.controller.js","sourceRoot":"","sources":["../../../../src/module/mapper/controller/field-mapper.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiF;AACjF,0EAAqE;AACrE,2DAA2D;AAGpD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAA2D,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IACjG,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CAAQ,GAAQ,EAAkC,qBAA6B,EACxD,WAAmB,EACrB,SAAiB;QACjD,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,qBAAqB,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;IAC1G,CAAC;CAIF,CAAA;AAfY,sDAAqB;AAM1B;IAFL,IAAA,aAAI,EAAC,SAAS,CAAC;IACf,IAAA,kBAAS,EAAC,wBAAY,CAAC;IACT,WAAA,IAAA,YAAG,GAAE,CAAA;IAAY,WAAA,IAAA,cAAK,EAAC,uBAAuB,CAAC,CAAA;IAC/C,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,WAAW,CAAC,CAAA;;;;oDAGhC;gCAXU,qBAAqB;IADjC,IAAA,mBAAU,EAAC,cAAc,CAAC;IAEZ,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCAAsC,yCAAkB;GADtF,qBAAqB,CAejC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
2
2
|
export declare class FieldMapper extends BaseEntity {
|
|
3
3
|
constructor();
|
|
4
|
-
|
|
4
|
+
integration_component: string;
|
|
5
5
|
action: string;
|
|
6
6
|
source_attribute: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
destination_attribute: string;
|
|
8
|
+
destination_entity_type: string;
|
|
9
9
|
mapped_entity_type: string;
|
|
10
10
|
filter_code: string;
|
|
11
11
|
is_lov_present: number;
|
|
@@ -20,9 +20,9 @@ let FieldMapper = class FieldMapper extends base_entity_entity_1.BaseEntity {
|
|
|
20
20
|
};
|
|
21
21
|
exports.FieldMapper = FieldMapper;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ name: '
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'integration_component', type: 'varchar', length: 30 }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
], FieldMapper.prototype, "
|
|
25
|
+
], FieldMapper.prototype, "integration_component", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.Column)({ name: 'action', type: 'varchar', length: 30 }),
|
|
28
28
|
__metadata("design:type", String)
|
|
@@ -34,11 +34,11 @@ __decorate([
|
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typeorm_1.Column)({ name: 'destination_attribute', type: 'varchar', length: 30 }),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
|
-
], FieldMapper.prototype, "
|
|
37
|
+
], FieldMapper.prototype, "destination_attribute", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, typeorm_1.Column)({ name: 'destination_entity_type', type: 'varchar', length: 30 }),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
|
-
], FieldMapper.prototype, "
|
|
41
|
+
], FieldMapper.prototype, "destination_entity_type", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, typeorm_1.Column)({ name: 'mapped_entity_type', type: 'varchar', length: 30, nullable: true }),
|
|
44
44
|
__metadata("design:type", String)
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], FieldMapper.prototype, "filter_code", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ name: 'is_lov_present', type: 'tinyint'
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'is_lov_present', type: 'tinyint' }),
|
|
52
52
|
__metadata("design:type", Number)
|
|
53
53
|
], FieldMapper.prototype, "is_lov_present", void 0);
|
|
54
54
|
exports.FieldMapper = FieldMapper = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-mapper.entity.js","sourceRoot":"","sources":["../../../../src/module/mapper/entity/field-mapper.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6EAAkE;AAG3D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+BAAU;IAEzC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;CA0BF,CAAA;AA/BY,kCAAW;AAQtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"field-mapper.entity.js","sourceRoot":"","sources":["../../../../src/module/mapper/entity/field-mapper.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6EAAkE;AAG3D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+BAAU;IAEzC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;CA0BF,CAAA;AA/BY,kCAAW;AAQtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;0DACzC;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2CACzC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;qDACzC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;0DACzC;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACzC;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACzD;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC7E;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDAC7B;sBA7BZ,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;GACvB,WAAW,CA+BvB"}
|
|
@@ -23,7 +23,7 @@ let FieldMapperRepository = class FieldMapperRepository {
|
|
|
23
23
|
}
|
|
24
24
|
async findByIntegrationComponentAndDestinationEntityType(integrationComponent, destinationEntityType) {
|
|
25
25
|
return await this.fieldMapperRepository.find({
|
|
26
|
-
where: {
|
|
26
|
+
where: { integration_component: integrationComponent, destination_entity_type: destinationEntityType },
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
async save(dto) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-mapper.repository.js","sourceRoot":"","sources":["../../../../src/module/mapper/repository/field-mapper.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,uEAA4D;AAC5D,qCAAqC;AAG9B,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAEmB,qBAA8C;QAA9C,0BAAqB,GAArB,qBAAqB,CAAyB;IAEjE,CAAC;IAED,KAAK,CAAC,kDAAkD,CAAC,oBAA4B,EAAE,qBAA6B;QAClH,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC;YAC3C,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"field-mapper.repository.js","sourceRoot":"","sources":["../../../../src/module/mapper/repository/field-mapper.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,uEAA4D;AAC5D,qCAAqC;AAG9B,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAEmB,qBAA8C;QAA9C,0BAAqB,GAArB,qBAAqB,CAAyB;IAEjE,CAAC;IAED,KAAK,CAAC,kDAAkD,CAAC,oBAA4B,EAAE,qBAA6B;QAClH,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC;YAC3C,KAAK,EAAE,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE;SACvG,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAyB;QAClC,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAA4B;QACzC,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AApBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,iCAAW,CAAC,CAAA;qCACU,oBAAU;GAHzC,qBAAqB,CAoBjC"}
|
|
@@ -15,6 +15,6 @@ export declare class FieldMapperService extends EntityServiceImpl {
|
|
|
15
15
|
constructor(fieldMapperRepository: FieldMapperRepository, savedFilterService: SavedFilterService, fieldLovsRepository: FieldLovsRepository, datasource: DataSource, filterService: FilterService);
|
|
16
16
|
createEntity(dto: FieldMapperDto, loggedInUser: UserData): Promise<any>;
|
|
17
17
|
updateEntity(dto: FieldMapperDto, loggedInUser: UserData): Promise<any>;
|
|
18
|
-
createFieldMappers(dtos:
|
|
18
|
+
createFieldMappers(dtos: FieldMapperDto[]): Promise<(Partial<import("../entity/field-mapper.entity").FieldMapper> & import("../entity/field-mapper.entity").FieldMapper)[]>;
|
|
19
19
|
resolveData(integration_component: string, parent_type: string, parent_id: number, userData: UserData): Promise<Record<string, any>>;
|
|
20
20
|
}
|
|
@@ -53,13 +53,13 @@ let FieldMapperService = class FieldMapperService extends entity_service_impl_se
|
|
|
53
53
|
for (const field of fieldMappers) {
|
|
54
54
|
const entityType = field.mapped_entity_type
|
|
55
55
|
? field.mapped_entity_type
|
|
56
|
-
: field.
|
|
56
|
+
: field.destination_entity_type;
|
|
57
57
|
const filterCode = field.filter_code || 'default';
|
|
58
58
|
if (!inMemory[entityType]) {
|
|
59
59
|
inMemory[entityType] = {};
|
|
60
60
|
}
|
|
61
61
|
if (!inMemory[entityType][filterCode] &&
|
|
62
|
-
field.mapped_entity_type == field.
|
|
62
|
+
field.mapped_entity_type == field.destination_entity_type) {
|
|
63
63
|
inMemory[entityType][filterCode] = await super.getResolvedEntityData(entityType, parent_id, userData);
|
|
64
64
|
}
|
|
65
65
|
else if (field.mapped_entity_type &&
|
|
@@ -106,7 +106,7 @@ let FieldMapperService = class FieldMapperService extends entity_service_impl_se
|
|
|
106
106
|
}
|
|
107
107
|
const entityData = inMemory[entityType][filterCode];
|
|
108
108
|
if (entityData) {
|
|
109
|
-
let value = entityData[field.
|
|
109
|
+
let value = entityData[field.destination_attribute];
|
|
110
110
|
if (field.is_lov_present) {
|
|
111
111
|
if (field.action === 'LOOKUP') {
|
|
112
112
|
const fieldLovMapper = await this.fieldLovsRepository.findByMapperFieldIdAndDestinationAttributeValue(field.id, value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-mapper.service.js","sourceRoot":"","sources":["../../../../src/module/mapper/service/field-mapper.service.ts"],"names":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AqB,CAAC,CAAC;gBAEpD,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;oBACzB,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;wBAC9B,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,mBAAmB,CAAC,+CAA+C,CAC5E,KAAK,CAAC,EAAE,EACR,KAAK,CACN,CAAC;wBACJ,IAAI,cAAc,EAAE,CAAC;4BACnB,KAAK,GAAG,cAAc,CAAC,sBAAsB,CAAC;wBAChD,CAAC;oBACH,CAAC;yBAAM,CAAC;wBACN,MAAM,cAAc,GAClB,MAAM,IAAI,CAAC,mBAAmB,CAAC,0CAA0C,CACvE,KAAK,CAAC,EAAE,EACR,KAAK,CACN,CAAC;wBACJ,IAAI,cAAc,EAAE,CAAC;4BACnB,KAAK,GAAG,cAAc,CAAC,2BAA2B,CAAC;wBACrD,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;YACzC,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAhKY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCADW,+CAAqB;QAExB,yCAAkB;QACjB,2CAAmB;QAC5B,oBAAU;QACP,8BAAa;GAPpC,kBAAkB,CAgK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.service.js","sourceRoot":"","sources":["../../../../src/module/mapper/service/mapper.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AACxF,qCAAqC;AAI9B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+CAAiB;IAEhD,YAA6B,UAAsB;QAC/C,KAAK,EAAE,CAAC;QADiB,eAAU,GAAV,UAAU,CAAY;IAEnD,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,gBAAwB;QAChD,IAAI,CAAC,gBAAgB;YAAE,OAAO,EAAE,CAAC;QAEjC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzC;;wCAE8B,EAC9B,CAAC,gBAAgB,CAAC,CACnB,CAAC;QAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACzB,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,KAAK,EAAE,CAAC,CAAC,EAAE;YACX,IAAI,EAAE,CAAC,CAAC,IAAI;SACb,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"mapper.service.js","sourceRoot":"","sources":["../../../../src/module/mapper/service/mapper.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AACxF,qCAAqC;AAI9B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+CAAiB;IAEhD,YAA6B,UAAsB;QAC/C,KAAK,EAAE,CAAC;QADiB,eAAU,GAAV,UAAU,CAAY;IAEnD,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,gBAAwB;QAChD,IAAI,CAAC,gBAAgB;YAAE,OAAO,EAAE,CAAC;QAEjC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzC;;wCAE8B,EAC9B,CAAC,gBAAgB,CAAC,CACnB,CAAC;QAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACzB,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,KAAK,EAAE,CAAC,CAAC,EAAE;YACX,IAAI,EAAE,CAAC,CAAC,IAAI;SACb,CAAC,CAAC,CAAC;IACN,CAAC;CAEN,CAAA;AAxBY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAGgC,oBAAU;GAF1C,aAAa,CAwBzB"}
|