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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "3.1.107",
3
+ "version": "3.1.110",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -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 && entity_type && entity_id) {
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
 
@@ -12,8 +12,4 @@ export class MapperRepository {
12
12
  async findById(id: number) {
13
13
  return await this.mapperRepository.findById(id);
14
14
  }
15
-
16
- async deleteById(id: number) {
17
- return await this.mapperRepository.deleteById(id);
18
- }
19
15
  }
@@ -63,8 +63,7 @@ export class MapperService extends EntityServiceImpl {
63
63
 
64
64
  await this.fieldMapperRepository.deleteByMapperId(entityId);
65
65
 
66
- await this.mapperRepository.deleteById(entityId);
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
- [id, entityType, targetEntityId, targetEntityType, relationType],
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,