rez_core 2.2.263 → 2.3.2
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/enterprise/repository/school.repository.js +0 -1
- package/dist/module/enterprise/repository/school.repository.js.map +1 -1
- package/dist/module/filter/repository/saved-filter.repository.js +0 -1
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
- package/dist/module/integration/controller/integration.controller.d.ts +9 -0
- package/dist/module/integration/controller/integration.controller.js +34 -0
- package/dist/module/integration/controller/integration.controller.js.map +1 -1
- package/dist/module/integration/factories/whatsapp.factory.d.ts +5 -1
- package/dist/module/integration/factories/whatsapp.factory.js +14 -2
- package/dist/module/integration/factories/whatsapp.factory.js.map +1 -1
- package/dist/module/integration/integration.module.js +4 -0
- package/dist/module/integration/integration.module.js.map +1 -1
- package/dist/module/integration/service/integration.service.d.ts +1 -0
- package/dist/module/integration/service/integration.service.js +14 -0
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.d.ts +19 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js +257 -0
- package/dist/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.js.map +1 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.d.ts +22 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js +295 -0
- package/dist/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.js.map +1 -0
- package/dist/module/layout_preference/service/layout_preference.service.js +0 -2
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +0 -1
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/master/service/master.service.js +0 -2
- package/dist/module/master/service/master.service.js.map +1 -1
- package/dist/module/meta/repository/entity-table.repository.js +0 -1
- package/dist/module/meta/repository/entity-table.repository.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +0 -1
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +0 -2
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.js +0 -2
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/field-group.service.js +0 -1
- package/dist/module/meta/service/field-group.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.js +0 -6
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/controller/notification.controller.d.ts +1 -0
- package/dist/module/notification/controller/notification.controller.js +1 -1
- package/dist/module/notification/controller/notification.controller.js.map +1 -1
- package/dist/module/notification/service/email.service.js +0 -1
- package/dist/module/notification/service/email.service.js.map +1 -1
- package/dist/module/notification/service/notification.service.d.ts +1 -1
- package/dist/module/notification/service/notification.service.js +11 -2
- package/dist/module/notification/service/notification.service.js.map +1 -1
- package/dist/module/user/service/login.service.js +0 -1
- package/dist/module/user/service/login.service.js.map +1 -1
- package/dist/module/workflow/repository/stage.repository.js +0 -1
- package/dist/module/workflow/repository/stage.repository.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +0 -1
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.js +0 -1
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +0 -5
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +0 -1
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +0 -2
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +0 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/docs/modules/integration.md +55 -1
- package/package.json +1 -1
- package/src/module/enterprise/repository/school.repository.ts +0 -1
- package/src/module/filter/repository/saved-filter.repository.ts +0 -1
- package/src/module/integration/controller/integration.controller.ts +37 -0
- package/src/module/integration/factories/whatsapp.factory.ts +10 -0
- package/src/module/integration/integration.module.ts +4 -0
- package/src/module/integration/service/integration.service.ts +21 -0
- package/src/module/integration/strategies/whatsapp/gupshup-whatsapp.strategy.ts +360 -0
- package/src/module/integration/strategies/whatsapp/tubelight-whatsapp.strategy.ts +419 -0
- package/src/module/layout_preference/service/layout_preference.service.ts +0 -2
- package/src/module/listmaster/service/list-master.service.ts +1 -10
- package/src/module/master/service/master.service.ts +0 -2
- package/src/module/meta/repository/entity-table.repository.ts +0 -1
- package/src/module/meta/service/entity-dynamic.service.ts +1 -5
- package/src/module/meta/service/entity-service-impl.service.ts +0 -4
- package/src/module/meta/service/entity-table.service.ts +0 -2
- package/src/module/meta/service/field-group.service.ts +0 -1
- package/src/module/module/service/module-access.service.ts +0 -13
- package/src/module/notification/controller/notification.controller.ts +8 -1
- package/src/module/notification/service/email.service.ts +0 -1
- package/src/module/notification/service/notification.service.ts +19 -4
- package/src/module/user/service/login.service.ts +0 -1
- package/src/module/workflow/repository/stage.repository.ts +1 -2
- package/src/module/workflow/service/action.service.ts +0 -1
- package/src/module/workflow/service/comm-template.service.ts +0 -1
- package/src/module/workflow/service/populate-workflow.service.ts +2 -12
- package/src/module/workflow/service/task.service.ts +0 -1
- package/src/module/workflow/service/workflow-meta.service.ts +1 -4
- package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +0 -1
- package/src/resources/dev.properties.yaml +1 -1
- package/.vscode/extensions.json +0 -5
|
@@ -253,9 +253,7 @@ export class PopulateWorkflowService extends EntityServiceImpl {
|
|
|
253
253
|
actions = [];
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
|
|
257
|
-
`Found ${actions.length} actions for stage ${id} in workflow ${originalWorkflowId}`,
|
|
258
|
-
);
|
|
256
|
+
|
|
259
257
|
|
|
260
258
|
// === 4. Action mapping — point to stage, stageGroup, workflow correctly
|
|
261
259
|
for (const row of actions as any[]) {
|
|
@@ -275,20 +273,12 @@ export class PopulateWorkflowService extends EntityServiceImpl {
|
|
|
275
273
|
[organization_id],
|
|
276
274
|
);
|
|
277
275
|
|
|
278
|
-
|
|
279
|
-
`Populating action for stage ${newStage.id} in workflow ${newWorkflowId}`,
|
|
280
|
-
);
|
|
281
|
-
|
|
282
|
-
console.log(`Old is_mandatory code: ${oldIsMandatory?.code}`);
|
|
283
|
-
console.log(`New is_mandatory list:`, newIsMandatoryList);
|
|
284
|
-
|
|
276
|
+
|
|
285
277
|
// Step 3: Find the matching new item with the same code
|
|
286
278
|
const matchedNewMandatory = newIsMandatoryList.find(
|
|
287
279
|
(item) => item.code === oldIsMandatory?.code,
|
|
288
280
|
);
|
|
289
281
|
|
|
290
|
-
console.log(`Matched new mandatory item:`, matchedNewMandatory);
|
|
291
|
-
|
|
292
282
|
const formActionCategory = await this.dataSource.query(
|
|
293
283
|
`SELECT id FROM cr_wf_action_category WHERE id = ? and is_form = 1`,
|
|
294
284
|
[row.action_category],
|
|
@@ -304,7 +304,6 @@ export class WorkflowMetaService extends EntityServiceImpl {
|
|
|
304
304
|
actionCategory[0]?.code == 'OWAS' &&
|
|
305
305
|
assignmentType[0]?.value == 'round_robin'
|
|
306
306
|
) {
|
|
307
|
-
console.log('Auto-assigning owner based on round-robin assignment type');
|
|
308
307
|
await this.assignLead(
|
|
309
308
|
loggedInUser,
|
|
310
309
|
mapped_entity_id,
|
|
@@ -537,9 +536,7 @@ export class WorkflowMetaService extends EntityServiceImpl {
|
|
|
537
536
|
|
|
538
537
|
// if it has only one action then move next stage
|
|
539
538
|
if (actions.length == 1) {
|
|
540
|
-
|
|
541
|
-
'Only one action present and it is owner assignment. Moving to next stage.',
|
|
542
|
-
);
|
|
539
|
+
|
|
543
540
|
await this.moveToNextStage(
|
|
544
541
|
mapped_entity_type,
|
|
545
542
|
mapped_entity_id,
|
|
@@ -90,7 +90,6 @@ export class WorkflowAutomationEngineService {
|
|
|
90
90
|
) {
|
|
91
91
|
// Load actions for this rule from DB
|
|
92
92
|
const actions = await this.wfService.getActionsForRule(workflow_automation_id);
|
|
93
|
-
console.log(actions, 'actions found');
|
|
94
93
|
|
|
95
94
|
for (const action of actions) {
|
|
96
95
|
const impl = this.actions.get(String(action.action_decorator)); // action_code = registered name
|