rez_core 4.0.52 → 4.0.53
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.d.ts +2 -1
- package/dist/module/integration/service/integration.service.js +5 -5
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.d.ts +1 -1
- package/dist/module/integration/service/wrapper.service.js +5 -4
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.js +2 -2
- package/dist/module/meta/service/resolver.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 -0
- package/src/module/integration/service/wrapper.service.ts +9 -1
- package/src/module/meta/service/resolver.service.ts +2 -2
package/package.json
CHANGED
|
@@ -57,6 +57,7 @@ export interface GenericMessageDto {
|
|
|
57
57
|
entity_type?: string;
|
|
58
58
|
entity_id?: number;
|
|
59
59
|
organization_id?: number;
|
|
60
|
+
mapped_entities?: any;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
export interface IntegrationConfigWithConfig extends IntegrationConfig {
|
|
@@ -890,6 +891,7 @@ export class IntegrationService {
|
|
|
890
891
|
entity_id,
|
|
891
892
|
entity_type,
|
|
892
893
|
organization_id,
|
|
894
|
+
mapped_entities,
|
|
893
895
|
} = messageDto;
|
|
894
896
|
|
|
895
897
|
let subject = messageDto.subject;
|
|
@@ -967,6 +969,7 @@ export class IntegrationService {
|
|
|
967
969
|
entity_type,
|
|
968
970
|
entity_id,
|
|
969
971
|
loggedInUser,
|
|
972
|
+
mapped_entities,
|
|
970
973
|
);
|
|
971
974
|
variables = templateData.variables;
|
|
972
975
|
externalTemplateId = templateData.externalTemplateId;
|
|
@@ -1060,6 +1063,7 @@ export class IntegrationService {
|
|
|
1060
1063
|
entity_type,
|
|
1061
1064
|
entity_id,
|
|
1062
1065
|
loggedInUser,
|
|
1066
|
+
mapped_entities,
|
|
1063
1067
|
);
|
|
1064
1068
|
variables = templateData.variables;
|
|
1065
1069
|
externalTemplateId = templateData.externalTemplateId;
|
|
@@ -1310,6 +1314,7 @@ export class IntegrationService {
|
|
|
1310
1314
|
entity_type: any,
|
|
1311
1315
|
entity_id: any,
|
|
1312
1316
|
loggedInUser?: any,
|
|
1317
|
+
mappedEntities?: Record<string, any>,
|
|
1313
1318
|
): Promise<{
|
|
1314
1319
|
variables?: Record<string, any>;
|
|
1315
1320
|
externalTemplateId?: string;
|
|
@@ -1337,6 +1342,7 @@ export class IntegrationService {
|
|
|
1337
1342
|
entity_id,
|
|
1338
1343
|
loggedInUser,
|
|
1339
1344
|
{} as any,
|
|
1345
|
+
mappedEntities,
|
|
1340
1346
|
);
|
|
1341
1347
|
}
|
|
1342
1348
|
|
|
@@ -288,7 +288,11 @@ export class WrapperService {
|
|
|
288
288
|
* Wrapper for scheduling meeting
|
|
289
289
|
*/
|
|
290
290
|
|
|
291
|
-
async scheduleMeetingWrapper(
|
|
291
|
+
async scheduleMeetingWrapper(
|
|
292
|
+
payload: any,
|
|
293
|
+
loggedInUser: any,
|
|
294
|
+
mapped_entities?: any,
|
|
295
|
+
) {
|
|
292
296
|
try {
|
|
293
297
|
this.logger.log(
|
|
294
298
|
`scheduleMeetingWrapper called by user=${loggedInUser?.id || 'unknown'} Payload=${JSON.stringify(payload)}`,
|
|
@@ -336,6 +340,7 @@ export class WrapperService {
|
|
|
336
340
|
payload.level_type,
|
|
337
341
|
payload.app_code,
|
|
338
342
|
loggedInUser.organization_id,
|
|
343
|
+
mapped_entities,
|
|
339
344
|
),
|
|
340
345
|
};
|
|
341
346
|
}
|
|
@@ -371,6 +376,7 @@ export class WrapperService {
|
|
|
371
376
|
'ORG',
|
|
372
377
|
'DEFAULT',
|
|
373
378
|
loggedInUser.organization_id,
|
|
379
|
+
mapped_entities,
|
|
374
380
|
),
|
|
375
381
|
};
|
|
376
382
|
}
|
|
@@ -404,6 +410,7 @@ export class WrapperService {
|
|
|
404
410
|
levelType: string,
|
|
405
411
|
appCode: string,
|
|
406
412
|
organizationId: number,
|
|
413
|
+
mapped_entities?: any,
|
|
407
414
|
) {
|
|
408
415
|
this.logger.log(`Generating ICS file. Payload: ${JSON.stringify(payload)}`);
|
|
409
416
|
|
|
@@ -476,6 +483,7 @@ export class WrapperService {
|
|
|
476
483
|
entity_id: payload.entity_id,
|
|
477
484
|
entity_type: payload.entity_type,
|
|
478
485
|
organization_id: organizationId,
|
|
486
|
+
mapped_entities,
|
|
479
487
|
};
|
|
480
488
|
|
|
481
489
|
this.logger.debug(
|
|
@@ -102,8 +102,8 @@ export class ResolverService {
|
|
|
102
102
|
|
|
103
103
|
// --------UPLOAD / IMAGE --------
|
|
104
104
|
else if (
|
|
105
|
-
attr.element_type === 'upload' ||
|
|
106
|
-
|
|
105
|
+
(attr.element_type === 'upload' || attr.element_type === 'image') &&
|
|
106
|
+
typeof resolvedEntityData[field] !== 'object'
|
|
107
107
|
) {
|
|
108
108
|
const mediaService = await this.getMediaDataService();
|
|
109
109
|
const uploadData = await mediaService.getMediaDownloadUrl(
|