vcomply-workflow-engine 6.1.45 → 6.1.46

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.
@@ -12638,7 +12638,6 @@ class FrequencyService {
12638
12638
  weekDays.push(0);
12639
12639
  }
12640
12640
  }
12641
- console.log(weekDays, 'weekDays', weekDays.join(''));
12642
12641
  return weekDays.join('');
12643
12642
  }
12644
12643
  else if (frequency?.selectedMonth?.length > 0) {
@@ -12670,6 +12669,7 @@ class FrequencyService {
12670
12669
  };
12671
12670
  }
12672
12671
  createFrequencyPattern(frequency) {
12672
+ console.log(frequency, 'frequency');
12673
12673
  let pattern = '';
12674
12674
  let selectedDay = frequency.day;
12675
12675
  switch (frequency.type) {
@@ -12715,7 +12715,7 @@ class FrequencyService {
12715
12715
  pattern = `8~${randomIndex + 1}~${randomIndex}~${frequency.random.occurrence}`;
12716
12716
  break;
12717
12717
  default:
12718
- pattern = `5~${frequency.randomInstances}~0~0`;
12718
+ pattern = `5~${frequency.random.occurrence}~0~0`;
12719
12719
  }
12720
12720
  return pattern;
12721
12721
  }
@@ -32687,7 +32687,8 @@ class WorkflowComplianceComponent {
32687
32687
  selectedItems?.checkpointInstruction;
32688
32688
  break;
32689
32689
  case 'calculatedrisk':
32690
- this.responsibilityForm.riskClass = selectedItems?.riskClass;
32690
+ const riskClass = ['low', 'low_medium', 'medium_high', 'high'];
32691
+ this.responsibilityForm.riskClass = riskClass[selectedItems?.riskClass];
32691
32692
  this.responsibilityForm.riskMatrix = selectedItems?.riskMatrix;
32692
32693
  break;
32693
32694
  case 'formate_evidence':
@@ -32948,7 +32949,7 @@ class WorkflowComplianceComponent {
32948
32949
  this.responsibilityCentersList.find((rc) => rc.rc_id === event.entity_id),
32949
32950
  ]
32950
32951
  : [];
32951
- this.responsibilityForm.riskClass = this.isRiskEnable ? 1 : 2;
32952
+ this.responsibilityForm.riskClass = this.isRiskEnable ? 'low' : 'low_medium';
32952
32953
  this.responsibilityForm.private_library_id = event.report_id;
32953
32954
  this.responsibilityForm.frequency =
32954
32955
  this.responsibilityForm.frequency_details;
@@ -33599,7 +33600,7 @@ class WorkflowComplianceComponent {
33599
33600
  },
33600
33601
  reviewer_checkpoints: [{ checkpoints: [], instruction: '' }],
33601
33602
  reviewer_id: 0,
33602
- risk_class: this.isRiskEnable ? entrustForm.riskClass : 2,
33603
+ risk_class: this.isRiskEnable ? entrustForm.riskClass : 'low_medium',
33603
33604
  risk_ids: '',
33604
33605
  risk_matrix_data: moreOptions?.RISK_CLASSIFICATION
33605
33606
  ? entrustForm.riskMatrix
@@ -33818,7 +33819,7 @@ class WorkflowComplianceComponent {
33818
33819
  },
33819
33820
  assuranceList: [],
33820
33821
  requiresAuditList: [],
33821
- riskClass: 1,
33822
+ riskClass: 'low',
33822
33823
  riskMatrix: '0,0,0,0,0,0',
33823
33824
  program: [],
33824
33825
  program_selected_ids: [],