vcomply-workflow-engine 2.9.49 → 2.9.51
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/bundles/vcomply-workflow-engine.umd.js +24 -24
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +25 -25
- package/fesm2015/vcomply-workflow-engine.js +24 -24
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -4861,7 +4861,7 @@
|
|
|
4861
4861
|
break;
|
|
4862
4862
|
case 'program':
|
|
4863
4863
|
this.responsibilityForm.linkedProgram = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.linkedProgram;
|
|
4864
|
-
if (this.selectedProgram && !(((_c = this.selectedProgram) === null || _c === void 0 ? void 0 : _c.programType) === 0 && ((_e = (_d = this.selectedProgram) === null || _d === void 0 ? void 0 : _d.name) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'uncategorized' || !((_f = this.orgDetails) === null || _f === void 0 ? void 0 : _f.hasProgramFullPermission))) {
|
|
4864
|
+
if ((this.selectedProgram && !(((_c = this.selectedProgram) === null || _c === void 0 ? void 0 : _c.programType) === 0 && ((_e = (_d = this.selectedProgram) === null || _d === void 0 ? void 0 : _d.name) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'uncategorized' || !((_f = this.orgDetails) === null || _f === void 0 ? void 0 : _f.hasProgramFullPermission))) && !this.feature.isFeatureEnabled('ff_deprecate_primary_program_flag')) {
|
|
4865
4865
|
this.responsibilityForm.category = (selectedItems.categories) ? selectedItems.categories : [];
|
|
4866
4866
|
var categoryId = (_g = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _g === void 0 ? void 0 : _g.toString();
|
|
4867
4867
|
if ((_h = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.categories) === null || _h === void 0 ? void 0 : _h.length) {
|
|
@@ -5570,7 +5570,7 @@
|
|
|
5570
5570
|
};
|
|
5571
5571
|
WorkflowComplianceComponent.prototype.entrustResponsibility = function (entrustForm) {
|
|
5572
5572
|
var _this = this;
|
|
5573
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21;
|
|
5573
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23;
|
|
5574
5574
|
this.loader = true;
|
|
5575
5575
|
this.uiKitService.isLoader = true;
|
|
5576
5576
|
var startDate = moment__namespace(parseInt(entrustForm.startDate) * 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
@@ -5627,11 +5627,11 @@
|
|
|
5627
5627
|
var payload = {
|
|
5628
5628
|
app_association: [],
|
|
5629
5629
|
assigned_to: this.returnIds(this.assigneeUserList, 'employee_id').toString(),
|
|
5630
|
-
program_cat_ids: (moreOptions === null || moreOptions === void 0 ? void 0 : moreOptions.PROGRAM) ? (((_k = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.program) === null || _k === void 0 ? void 0 : _k.length) ? [entrustForm.program[0].category_id] : []) : [],
|
|
5630
|
+
program_cat_ids: (moreOptions === null || moreOptions === void 0 ? void 0 : moreOptions.PROGRAM) ? (((_k = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.program) === null || _k === void 0 ? void 0 : _k.length) ? [(_l = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.program[0]) === null || _l === void 0 ? void 0 : _l.category_id] : []) : [],
|
|
5631
5631
|
linked_program_ids: linkedProgramIds,
|
|
5632
5632
|
linked_category_ids: this.getUniqueIds(__spreadArray(__spreadArray([], __read(categoryIdsExceptDefault)), __read(linkedCategoryIds))),
|
|
5633
5633
|
// category_id: (this.responsibilityForm?.program_selected_ids?.length > 0) ? this.responsibilityForm?.category_id : '',
|
|
5634
|
-
category_id: (((
|
|
5634
|
+
category_id: (((_o = (_m = this.responsibilityForm) === null || _m === void 0 ? void 0 : _m.program_selected_ids) === null || _o === void 0 ? void 0 : _o.length) > 0) ? (_r = this.getUniqueIds(__spreadArray(__spreadArray(__spreadArray([], __read((_p = this.responsibilityForm) === null || _p === void 0 ? void 0 : _p.category)), __read(linkedCategoryIds)), [(_q = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.program[0]) === null || _q === void 0 ? void 0 : _q.category_id]))) === null || _r === void 0 ? void 0 : _r.toString() : '',
|
|
5635
5635
|
cc_email: (moreOptions.OVERSEER) ? this.returnIds(this.overseerUserList, 'employee_id').toString() : '',
|
|
5636
5636
|
checkpoint_description: (moreOptions.CHECKPOINTS) ? entrustForm.checkpointInstruction : '',
|
|
5637
5637
|
checkpoint_details: (moreOptions.CHECKPOINTS) ? JSON.stringify(this.responsibilityForm.checkpoints) : '',
|
|
@@ -5640,7 +5640,7 @@
|
|
|
5640
5640
|
comment: '',
|
|
5641
5641
|
continuous_failed_days: checkContinuousFailedValue(entrustForm.frequency) ? entrustForm.continuous_failed_days : 0,
|
|
5642
5642
|
cost_of_compliance: '',
|
|
5643
|
-
created_by: ((
|
|
5643
|
+
created_by: ((_s = entrustForm.assignors.list) === null || _s === void 0 ? void 0 : _s.length) < 1 ? 0 : this.memberId,
|
|
5644
5644
|
creation_window: 0,
|
|
5645
5645
|
custom_tags: JSON.stringify(entrustForm.customTags),
|
|
5646
5646
|
entity_tree: (moreOptions.RC) ? ((this.isResponsibilityRcLinkEnabled && this.responsibilityCenterType == 1) ? [] : rcDetails) : [],
|
|
@@ -5649,7 +5649,7 @@
|
|
|
5649
5649
|
failed_time_utc: entrustForm.failed_time_utc,
|
|
5650
5650
|
failure_cc_email: (moreOptions.OVERSEER) ? this.returnIds(this.overseerUserNotifyList, 'employee_id').toString() : '',
|
|
5651
5651
|
frequency_details: entrustForm.frequency,
|
|
5652
|
-
frequency_time: (
|
|
5652
|
+
frequency_time: (_t = entrustForm.timeIn24Hr) !== null && _t !== void 0 ? _t : "23:59:00",
|
|
5653
5653
|
grc_object_id: 0,
|
|
5654
5654
|
grc_relationship: '',
|
|
5655
5655
|
if_testplan_failed: 0,
|
|
@@ -5657,10 +5657,10 @@
|
|
|
5657
5657
|
isGroupAssignTo: (entrustForm.assignees.whoCanComplete == 'ANY_ONE') ? 1 : 0,
|
|
5658
5658
|
is_key_compliance: entrustForm.responsibility.keyResponsibility ? 1 : 0,
|
|
5659
5659
|
library_report_id: 0,
|
|
5660
|
-
lifecycle_details: (
|
|
5660
|
+
lifecycle_details: (_u = entrustForm.lifecycleDetails) !== null && _u !== void 0 ? _u : '0000-00-00~~0',
|
|
5661
5661
|
link_for_details: (moreOptions.FORMATE_EVIDENCE) ? entrustForm.formatAndEvidence.formatLinks : [],
|
|
5662
5662
|
linkages: { compliance: [] },
|
|
5663
|
-
member_id: ((
|
|
5663
|
+
member_id: ((_v = this.returnIds(entrustForm.assignors.list, 'member_id')) === null || _v === void 0 ? void 0 : _v.length) > 0 ? this.returnIds(entrustForm.assignors.list, 'member_id')[0] : this.memberId,
|
|
5664
5664
|
objective: (moreOptions.OBJECTIVE) ? objective : '',
|
|
5665
5665
|
on_completion_of: entrustForm.reportId ? [entrustForm.reportId] : [],
|
|
5666
5666
|
on_completion_of_type: 1,
|
|
@@ -5684,18 +5684,18 @@
|
|
|
5684
5684
|
},
|
|
5685
5685
|
} : {},
|
|
5686
5686
|
userGroupIds: {
|
|
5687
|
-
assigneeAllGroupIds: entrustForm.assignees.whoCanComplete !== 'ANY_ONE' ? this.returnIds((
|
|
5688
|
-
assigneeAnyoneGroupIds: entrustForm.assignees.whoCanComplete === 'ANY_ONE' ? this.returnIds((
|
|
5689
|
-
ccEmailGroupIds: (
|
|
5690
|
-
failureCCEmailGroupIds: (
|
|
5691
|
-
reviewerGroupIds: (
|
|
5687
|
+
assigneeAllGroupIds: entrustForm.assignees.whoCanComplete !== 'ANY_ONE' ? this.returnIds((_w = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assigneeGroups) === null || _w === void 0 ? void 0 : _w.list, 'group_id') : [],
|
|
5688
|
+
assigneeAnyoneGroupIds: entrustForm.assignees.whoCanComplete === 'ANY_ONE' ? this.returnIds((_x = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assigneeGroups) === null || _x === void 0 ? void 0 : _x.list, 'group_id') : [],
|
|
5689
|
+
ccEmailGroupIds: (_0 = this.returnIds((_z = (_y = this.responsibilityForm) === null || _y === void 0 ? void 0 : _y.overseersGroups) === null || _z === void 0 ? void 0 : _z.list, 'group_id')) !== null && _0 !== void 0 ? _0 : [],
|
|
5690
|
+
failureCCEmailGroupIds: (_3 = this.returnIds((_2 = (_1 = this.responsibilityForm) === null || _1 === void 0 ? void 0 : _1.overseersGroups) === null || _2 === void 0 ? void 0 : _2.notifyList, 'group_id')) !== null && _3 !== void 0 ? _3 : [],
|
|
5691
|
+
reviewerGroupIds: (_6 = this.returnIds((_5 = (_4 = this.responsibilityForm) === null || _4 === void 0 ? void 0 : _4.groupReviewers) === null || _5 === void 0 ? void 0 : _5.list, 'group_id')) !== null && _6 !== void 0 ? _6 : []
|
|
5692
5692
|
},
|
|
5693
5693
|
existingUserIds: {
|
|
5694
|
-
assigneeAllIds: entrustForm.assignees.whoCanComplete !== 'ANY_ONE' ? this.returnIds((
|
|
5695
|
-
assigneeAnyoneIds: entrustForm.assignees.whoCanComplete === 'ANY_ONE' ? this.returnIds((
|
|
5696
|
-
ccEmailEmpIds: (
|
|
5697
|
-
failureCCEmailEmpIds: (
|
|
5698
|
-
reviewerIds: (
|
|
5694
|
+
assigneeAllIds: entrustForm.assignees.whoCanComplete !== 'ANY_ONE' ? this.returnIds((_7 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assignees) === null || _7 === void 0 ? void 0 : _7.list, 'my_member_id') : [],
|
|
5695
|
+
assigneeAnyoneIds: entrustForm.assignees.whoCanComplete === 'ANY_ONE' ? this.returnIds((_8 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assignees) === null || _8 === void 0 ? void 0 : _8.list, 'my_member_id') : [],
|
|
5696
|
+
ccEmailEmpIds: (_10 = this.returnIds((_9 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.overseers) === null || _9 === void 0 ? void 0 : _9.list, 'employee_id')) !== null && _10 !== void 0 ? _10 : [],
|
|
5697
|
+
failureCCEmailEmpIds: (_12 = this.returnIds((_11 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.overseers) === null || _11 === void 0 ? void 0 : _11.notifyList, 'employee_id')) !== null && _12 !== void 0 ? _12 : [],
|
|
5698
|
+
reviewerIds: (_15 = this.returnIds((_14 = (_13 = this.responsibilityForm) === null || _13 === void 0 ? void 0 : _13.reviewers) === null || _14 === void 0 ? void 0 : _14.list, 'member_id')) !== null && _15 !== void 0 ? _15 : []
|
|
5699
5699
|
},
|
|
5700
5700
|
reviewer_checkpoints: [{ checkpoints: [], instruction: '' }],
|
|
5701
5701
|
reviewer_id: 0,
|
|
@@ -5705,10 +5705,10 @@
|
|
|
5705
5705
|
sample_size: 0,
|
|
5706
5706
|
start_date_utc: startDate,
|
|
5707
5707
|
statutory_day: 0,
|
|
5708
|
-
test_required_flag: (moreOptions.ASSURANCE) ? (((
|
|
5708
|
+
test_required_flag: (moreOptions.ASSURANCE) ? (((_16 = entrustForm.assuranceList) === null || _16 === void 0 ? void 0 : _16.length) > 0 ? 1 : 0) : 0,
|
|
5709
5709
|
testplan_category_id: (moreOptions.ASSURANCE) ? this.returnIds(entrustForm.assuranceList, 'category_id') : [],
|
|
5710
5710
|
testplan_category_manager: '',
|
|
5711
|
-
audit_category_details: moreOptions.REQUIRES_AUDIT && ((
|
|
5711
|
+
audit_category_details: moreOptions.REQUIRES_AUDIT && ((_18 = (_17 = this.responsibilityForm) === null || _17 === void 0 ? void 0 : _17.audit_category_details) === null || _18 === void 0 ? void 0 : _18.category_id) ? {
|
|
5712
5712
|
category_id: this.responsibilityForm.audit_category_details.category_id,
|
|
5713
5713
|
sample: this.selectedSample === 0 ? this.sampleValue : 0,
|
|
5714
5714
|
percentage: this.selectedSample === 1 ? this.samplePercentage : 0,
|
|
@@ -5722,11 +5722,11 @@
|
|
|
5722
5722
|
frequency_time: ''
|
|
5723
5723
|
},
|
|
5724
5724
|
assessment: {
|
|
5725
|
-
category_id: moreOptions.ASSESSMENT ? (
|
|
5726
|
-
assessment_id: moreOptions.ASSESSMENT ? (
|
|
5725
|
+
category_id: moreOptions.ASSESSMENT ? (_19 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assessment) === null || _19 === void 0 ? void 0 : _19.category_id : '',
|
|
5726
|
+
assessment_id: moreOptions.ASSESSMENT ? (_20 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assessment) === null || _20 === void 0 ? void 0 : _20.assessment_id : ''
|
|
5727
5727
|
},
|
|
5728
|
-
assessment_checkpoint: moreOptions.CHECKPOINTS_NEW ? (((
|
|
5729
|
-
questionnaire_type: moreOptions.CHECKPOINTS_NEW ? (((
|
|
5728
|
+
assessment_checkpoint: moreOptions.CHECKPOINTS_NEW ? (((_21 = Object.keys(entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.new_checkpoints)) === null || _21 === void 0 ? void 0 : _21.length) > 0 ? entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.new_checkpoints : {}) : {},
|
|
5729
|
+
questionnaire_type: moreOptions.CHECKPOINTS_NEW ? (((_22 = Object.keys(entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.new_checkpoints)) === null || _22 === void 0 ? void 0 : _22.length) > 0 ? 'assessment_checkpoint' : (moreOptions.ASSESSMENT && ((_23 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assessment) === null || _23 === void 0 ? void 0 : _23.category_id) ? 'assessment' : (JSON.stringify(this.responsibilityForm.checkpoints) != '' && moreOptions.CHECKPOINTS ? 'checkpoint' : ''))) : ''
|
|
5730
5730
|
};
|
|
5731
5731
|
if (this.isResponsibilityRcLinkEnabled) {
|
|
5732
5732
|
payload['responsibilityCenterType'] = (this.isResponsibilityRcLinkEnabled && moreOptions.RC) ? this.responsibilityCenterType : 0;
|