rez_core 3.1.107 → 3.1.110
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/integration/service/integration.service.js +3 -2
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/mapper/repository/mapper.repository.d.ts +0 -1
- package/dist/module/mapper/repository/mapper.repository.js +0 -3
- package/dist/module/mapper/repository/mapper.repository.js.map +1 -1
- package/dist/module/mapper/service/mapper.service.js +1 -1
- package/dist/module/mapper/service/mapper.service.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +9 -2
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +2 -1
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/integration/service/integration.service.ts +6 -2
- package/src/module/mapper/repository/mapper.repository.ts +0 -4
- package/src/module/mapper/service/mapper.service.ts +1 -2
- package/src/module/meta/service/entity-dynamic.service.ts +10 -3
- package/src/module/workflow/service/task.service.ts +2 -1
package/package.json
CHANGED
|
@@ -842,7 +842,6 @@ export class IntegrationService {
|
|
|
842
842
|
message,
|
|
843
843
|
type,
|
|
844
844
|
priority = 'medium',
|
|
845
|
-
subject,
|
|
846
845
|
html,
|
|
847
846
|
cc,
|
|
848
847
|
bcc,
|
|
@@ -854,6 +853,8 @@ export class IntegrationService {
|
|
|
854
853
|
entity_type,
|
|
855
854
|
} = messageDto;
|
|
856
855
|
|
|
856
|
+
let subject = messageDto.subject;
|
|
857
|
+
|
|
857
858
|
// Auto-detect communication type if not specified
|
|
858
859
|
const communicationType = this.detectCommunicationType(to, type);
|
|
859
860
|
|
|
@@ -913,7 +914,7 @@ export class IntegrationService {
|
|
|
913
914
|
let variables;
|
|
914
915
|
let richText;
|
|
915
916
|
let externalTemplateId: string | undefined = undefined;
|
|
916
|
-
if (templateId
|
|
917
|
+
if (templateId) {
|
|
917
918
|
const templateData = await this.processTemplate(
|
|
918
919
|
parseInt(templateId, 10),
|
|
919
920
|
entity_type,
|
|
@@ -922,6 +923,7 @@ export class IntegrationService {
|
|
|
922
923
|
variables = templateData.variables;
|
|
923
924
|
externalTemplateId = templateData.externalTemplateId;
|
|
924
925
|
richText = templateData.rich_text;
|
|
926
|
+
// subject = templateData.subject;
|
|
925
927
|
}
|
|
926
928
|
|
|
927
929
|
// Merge config with enhanced parameters
|
|
@@ -1011,6 +1013,7 @@ export class IntegrationService {
|
|
|
1011
1013
|
variables = templateData.variables;
|
|
1012
1014
|
externalTemplateId = templateData.externalTemplateId;
|
|
1013
1015
|
richText = templateData.rich_text;
|
|
1016
|
+
// subject = templateData.subject;
|
|
1014
1017
|
}
|
|
1015
1018
|
|
|
1016
1019
|
// Merge config with enhanced parameters
|
|
@@ -1293,6 +1296,7 @@ export class IntegrationService {
|
|
|
1293
1296
|
|
|
1294
1297
|
return {
|
|
1295
1298
|
rich_text: richText,
|
|
1299
|
+
// subject: commTemplate.subject,
|
|
1296
1300
|
};
|
|
1297
1301
|
}
|
|
1298
1302
|
|
|
@@ -63,8 +63,7 @@ export class MapperService extends EntityServiceImpl {
|
|
|
63
63
|
|
|
64
64
|
await this.fieldMapperRepository.deleteByMapperId(entityId);
|
|
65
65
|
|
|
66
|
-
await
|
|
67
|
-
|
|
66
|
+
await super.deleteEntity(entityType, entityId, loggedInUser);
|
|
68
67
|
return {
|
|
69
68
|
success: true,
|
|
70
69
|
message: `Mapper deleted successfully.`,
|
|
@@ -370,9 +370,16 @@ export class EntityDynamicService {
|
|
|
370
370
|
// Insert relation
|
|
371
371
|
await this.dataSource.query(
|
|
372
372
|
`INSERT INTO cr_entity_relation_data
|
|
373
|
-
(source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type)
|
|
374
|
-
VALUES (?, ?, ?, ?,
|
|
375
|
-
[
|
|
373
|
+
(organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type)
|
|
374
|
+
VALUES (?, ?, ?, ?, ?,?)`,
|
|
375
|
+
[
|
|
376
|
+
organizationId,
|
|
377
|
+
id,
|
|
378
|
+
entityType,
|
|
379
|
+
targetEntityId,
|
|
380
|
+
targetEntityType,
|
|
381
|
+
relationType,
|
|
382
|
+
],
|
|
376
383
|
);
|
|
377
384
|
|
|
378
385
|
if (relationType === 'ONE_TO_MANY') {
|
|
@@ -109,8 +109,9 @@ export class TaskService extends EntityServiceImpl {
|
|
|
109
109
|
|
|
110
110
|
if (relationData) {
|
|
111
111
|
await this.dataSource.query(
|
|
112
|
-
`INSERT INTO cr_entity_relation_data (source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES (?, ?, ?, ?, ?)`,
|
|
112
|
+
`INSERT INTO cr_entity_relation_data (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES (?, ?, ?, ?, ?)`,
|
|
113
113
|
[
|
|
114
|
+
loggedInUser.organization_id,
|
|
114
115
|
createdEntity.mapped_entity_id,
|
|
115
116
|
createdEntity.mapped_entity_type,
|
|
116
117
|
createdEntity.id,
|