vcomply-workflow-engine 6.0.75 → 6.0.77

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.
Files changed (96) hide show
  1. package/esm2022/lib/add-multiple-responsibility/add-multiple-responsibility.component.mjs +10 -1
  2. package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +10 -1
  3. package/esm2022/lib/add-multiple-risk/add-multiple-risk.component.mjs +10 -1
  4. package/esm2022/lib/constants/api.constants.mjs +3 -5
  5. package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
  6. package/esm2022/lib/more-option/more-option.component.mjs +183 -17
  7. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +2 -3
  8. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +5 -5
  9. package/esm2022/lib/services/common.service.mjs +1 -40
  10. package/esm2022/lib/services/iframe.service.mjs +1 -14
  11. package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
  12. package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
  13. package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
  14. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
  15. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
  16. package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -3
  17. package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
  18. package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
  19. package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +2 -9
  20. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
  21. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +1 -247
  22. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +3 -1
  23. package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +17 -45
  24. package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +10 -13
  25. package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +35 -62
  26. package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -6
  27. package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +3 -8
  28. package/esm2022/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.mjs +10 -1
  29. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +413 -284
  30. package/esm2022/lib/workflow-engine-container/api-constants.mjs +2 -3
  31. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +53 -32
  32. package/esm2022/lib/workflow-engine.module.mjs +6 -13
  33. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +35 -55
  34. package/esm2022/lib/workflow-program/constants.mjs +3 -3
  35. package/esm2022/lib/workflow-program/workflow-program.component.mjs +338 -122
  36. package/esm2022/lib/workflow-services/policy.service.mjs +4 -8
  37. package/esm2022/lib/workflow-services/programs.service.mjs +113 -26
  38. package/esm2022/lib/workflow-services/responsibility.service.mjs +52 -45
  39. package/fesm2022/vcomply-workflow-engine.mjs +6773 -6940
  40. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  41. package/lib/add-multiple-responsibility/add-multiple-responsibility.component.d.ts +2 -0
  42. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +2 -0
  43. package/lib/add-multiple-risk/add-multiple-risk.component.d.ts +2 -0
  44. package/lib/constants/api.constants.d.ts +2 -4
  45. package/lib/interfaces/responsibilty.interface.d.ts +12 -12
  46. package/lib/services/common.service.d.ts +0 -28
  47. package/lib/services/iframe.service.d.ts +0 -6
  48. package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +0 -1
  49. package/lib/sharedComponents/frequency/frequency.service.d.ts +0 -87
  50. package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -5
  51. package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +1 -3
  52. package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +2 -6
  53. package/lib/workflow/shared/services/grc.service.d.ts +0 -1
  54. package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +2 -3
  55. package/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.d.ts +2 -0
  56. package/lib/workflow-compliance/workflow-compliance.component.d.ts +6 -32
  57. package/lib/workflow-engine-container/api-constants.d.ts +0 -1
  58. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -5
  59. package/lib/workflow-engine.module.d.ts +40 -42
  60. package/lib/workflow-policy/workflow-policy.component.d.ts +0 -9
  61. package/lib/workflow-program/workflow-program.component.d.ts +4 -8
  62. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  63. package/lib/workflow-services/policy.service.d.ts +0 -1
  64. package/lib/workflow-services/programs.service.d.ts +53 -13
  65. package/lib/workflow-services/responsibility.service.d.ts +2 -13
  66. package/package.json +1 -1
  67. package/esm2022/lib/constants/mock.mjs +0 -152
  68. package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
  69. package/esm2022/lib/interfaces/iframe-type.mjs +0 -7
  70. package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
  71. package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -16
  72. package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
  73. package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
  74. package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -23
  75. package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -182
  76. package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -47
  77. package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
  78. package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
  79. package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
  80. package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -19
  81. package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +0 -26
  82. package/lib/constants/mock.d.ts +0 -15
  83. package/lib/interfaces/frequency.interface.d.ts +0 -37
  84. package/lib/interfaces/iframe-type.d.ts +0 -5
  85. package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
  86. package/lib/sharedComponents/program-list/constant.d.ts +0 -9
  87. package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
  88. package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
  89. package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
  90. package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -45
  91. package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -14
  92. package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
  93. package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
  94. package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
  95. package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
  96. package/lib/workflow/shared/workflow-pipes/get-user-details.pipe.d.ts +0 -7
@@ -71,6 +71,8 @@ export declare class AddMultipleResponsibilityComponent implements OnChanges {
71
71
  isPastDate(day: any, month: any): boolean;
72
72
  downloadTemplate(): void;
73
73
  submitResponsibilityBulkUpload(): void;
74
+ submitWorkflow(): void;
75
+ private getOrigin;
74
76
  returnIds(item: any, key: string): number | {
75
77
  name: string;
76
78
  rcId: number;
@@ -94,6 +94,8 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
94
94
  isPastDate(day: any, month: any): boolean;
95
95
  downloadTemplate(): void;
96
96
  submitResponsibilityBulkUpload(): void;
97
+ submitWorkflow(): void;
98
+ private getOrigin;
97
99
  returnIds(item: any, key: string): any;
98
100
  reset(): void;
99
101
  action(event: string): void;
@@ -123,6 +123,8 @@ export declare class AddMultipleRiskComponent implements OnInit, OnChanges {
123
123
  checkValidity(risk: any): boolean;
124
124
  downloadTemplate(): void;
125
125
  submitRiskBulkUpload(completeAssessment: any): void;
126
+ submitWorkflow(): void;
127
+ private getOrigin;
126
128
  returnIds(item: any, key: string): any;
127
129
  reset(): void;
128
130
  action(event: string): void;
@@ -1,7 +1,5 @@
1
1
  export declare const API: {
2
2
  subscriptionList: string;
3
- };
4
- export declare const PROGRAM_LIST_API: {
5
- programList: string;
6
- categoryList: string;
3
+ goToPolicyWorkroom: string;
4
+ editPolicy: string;
7
5
  };
@@ -1,8 +1,8 @@
1
1
  interface Frequency {
2
- type: string;
2
+ type: 'daily';
3
3
  }
4
4
  interface Assignee {
5
- type: 'all' | 'any';
5
+ type: 'all' | 'any_one';
6
6
  userId: number[];
7
7
  userGroupId: number[];
8
8
  }
@@ -11,8 +11,8 @@ interface ResponsibilityCenter {
11
11
  id: number[];
12
12
  }
13
13
  interface ReviewerFrequency {
14
- completeBy: number;
15
- endAfter: number;
14
+ dueDays: number;
15
+ extensionDays: number;
16
16
  }
17
17
  interface Reviewer {
18
18
  type: 'sequential' | 'any_one';
@@ -37,23 +37,23 @@ interface Evidence {
37
37
  }
38
38
  interface Program {
39
39
  id: number[];
40
- tags: {
41
- [key: string]: string;
42
- };
43
40
  }
44
41
  export interface Responsibility {
45
42
  title: string;
46
43
  key: number;
47
- riskClass: 'low' | 'low_medium' | 'medium_high' | 'high';
44
+ riskClass: 'low' | 'low-medium' | 'medium-high' | 'high';
48
45
  notes: string;
49
46
  objective: string;
50
47
  frequency: Frequency;
51
- assignor: number;
48
+ assignorId: number;
52
49
  assignee: Assignee;
53
- responsibilityCenter: ResponsibilityCenter | undefined;
54
- reviewer: Reviewer | undefined;
55
- overseer: Overseer | undefined;
50
+ responsibilityCenter: ResponsibilityCenter;
51
+ reviewer: Reviewer;
52
+ overseer: Overseer;
56
53
  evidence: Evidence;
54
+ tags: {
55
+ [key: string]: string;
56
+ };
57
57
  program: Program;
58
58
  grcObjectId: any[];
59
59
  assessmentId: string;
@@ -9,34 +9,6 @@ export declare class CommonService {
9
9
  };
10
10
  handleDocumentClick(datePickerObject: any): boolean;
11
11
  private closeDatePickerIfOpen;
12
- /**
13
- * Transforms program data to identify added and removed program IDs.
14
- * This method compares the current program selection with previously linked programs
15
- * to determine which programs have been added or removed.
16
- *
17
- * @param input - An object containing program selections, where each key represents a category
18
- * and its value is an array of program objects with an 'id' property.
19
- * @param linkedProgramIds - Array of previously linked program IDs
20
- *
21
- * @returns An object containing:
22
- * - added: Array of program IDs that are newly selected
23
- * - removed: Array of program IDs that were previously linked but are no longer selected
24
- *
25
- * @example
26
- * // If input is { category1: [{id: 1}, {id: 2}], category2: [{id: 3}] }
27
- * // And linkedProgramIds is [1, 4]
28
- * // Returns { added: [2, 3], removed: [4] }
29
- */
30
- transformProgramData(input: Record<string, Array<{
31
- pid: string;
32
- }>>, linkedProgramIds?: string[]): {
33
- added: string[];
34
- removed: string[];
35
- };
36
- transformResponsibilitiesData(currentResponsibilityIds: number[], linkedResponsibilityIds?: number[]): {
37
- added: number[];
38
- removed: number[];
39
- };
40
12
  static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
41
13
  static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
42
14
  }
@@ -1,12 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class IframeService {
3
3
  redirectIfInIframe(targetUrl: string, mode?: boolean): void;
4
- postMessage(message: any): void;
5
- private getOrigin;
6
- getCloseWebviewMessage(event: string, data: any): {
7
- event: string;
8
- data: any;
9
- };
10
4
  static ɵfac: i0.ɵɵFactoryDeclaration<IframeService, never>;
11
5
  static ɵprov: i0.ɵɵInjectableDeclaration<IframeService>;
12
6
  }
@@ -52,7 +52,6 @@ export declare class FrequencyRandomComponent implements OnInit {
52
52
  getQuarterlyFrequency(): {
53
53
  pattern: string;
54
54
  placeholder: string;
55
- monthSequence: number[];
56
55
  };
57
56
  getYearlyFrequency(): {
58
57
  pattern: string;
@@ -1,7 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Configurations } from '../../configurations';
3
3
  import { AuthService } from '../../workflow-services/auth.service';
4
- import { FrequencyObject } from '../../interfaces/frequency.interface';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class FrequencyService {
7
6
  private http;
@@ -48,92 +47,6 @@ export declare class FrequencyService {
48
47
  getResponsibilityList(payload: any): import("rxjs").Observable<any>;
49
48
  getResponsibilitiesCount(payload: any): import("rxjs").Observable<any>;
50
49
  formatDate(): string;
51
- /**
52
- * Converts a frequency configuration object into a standardized FrequencyObject format.
53
- *
54
- * @param frequency - The input frequency configuration object with the following properties:
55
- * - case: The type of frequency ('one_time' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semester' | 'yearly' | 'random' | 'ongoing' | 'on_completion_of' | 'biannually')
56
- * - window: Number of days before the task can be started
57
- * - failedAfter: Number of days after which the task is considered failed
58
- * - continuous_failed_days: Number of days after which the task is auto-deactivated
59
- * - day: The day of occurrence
60
- * - timeIn24Hr: Time in 24-hour format
61
- * - every: Frequency interval
62
- * - selectedDay: Array of selected days for weekly frequency (1-7 representing Monday-Sunday)
63
- * - selectedMonth: Array of selected months (0-11 representing January-December)
64
- * - startFrom: Unix timestamp for the start date
65
- * - lifecycleDetails: String in format "YYYY-MM-DD~~N" where N is the number of occurrences
66
- * - randomTypeSelected: Index for random frequency type (0: weekly, 1: monthly, 2: quarterly, 3: yearly)
67
- * - randomInstances: Number of random occurrences
68
- * - selectedType: Number of reminders for ongoing frequency
69
- * - selectedOngoingType: Index for ongoing frequency type (1: week, 2: month, 3: quarter, 4: semester, 5: year)
70
- *
71
- * @returns A FrequencyObject with the following structure:
72
- * - type: Frequency type
73
- * - startBefore: Days before task can start
74
- * - endAfter: Days after which task fails
75
- * - autoDeactivate: Days after which task is deactivated
76
- * - day: Day of occurrence
77
- * - time: Time in 24-hour format
78
- * - repeatOptions: {
79
- * every: number,
80
- * repeatOn: string (binary representation of selected days/months),
81
- * lifecycle: {
82
- * startFrom: string (YYYY-MM-DD),
83
- * endBy?: string (YYYY-MM-DD),
84
- * endAfter?: number
85
- * }
86
- * }
87
- * - random?: { type: string, occurrence: number }
88
- * - onComplete: {}
89
- * - onGoing: { reminders: number, startOf: 'week' | 'month' | 'quarter' | 'semester' | 'year' }
90
- *
91
- * @example
92
- * ```typescript
93
- * const frequency = {
94
- * case: 'weekly',
95
- * window: 2,
96
- * failedAfter: 1,
97
- * continuous_failed_days: 3,
98
- * day: 1,
99
- * timeIn24Hr: '09:00:00',
100
- * every: 1,
101
- * selectedDay: [1, 3, 5], // Monday, Wednesday, Friday
102
- * startFrom: 1678900000,
103
- * lifecycleDetails: '2024-12-31~~10'
104
- * };
105
- * const result = setFrequencyObject(frequency);
106
- * ```
107
- */
108
- setFrequencyObject(frequency: any): FrequencyObject | null;
109
- repeatOptions(frequency: any): string;
110
- getOngoing(frequency: any): {
111
- reminders: any;
112
- startOf: string;
113
- };
114
- getRandomFrequency(frequency: any): {
115
- type: string;
116
- occurrence: any;
117
- };
118
- createFrequencyPattern(frequency: any): string;
119
- getDay(repeatOptions: string): string;
120
- getMonth(repeatOptions: string): string;
121
- getLifecyclePattern(frequency: any): {
122
- startFrom: number;
123
- pattern: string;
124
- };
125
- /**
126
- * Converts a date string in "YYYY-MM-DD" format to "DD-Month-YYYY~~0".
127
- *
128
- * @param {string} dateString - The input date string in "YYYY-MM-DD" format.
129
- * @returns {string} - The formatted date string in "DD-Month-YYYY~~0" format.
130
- *
131
- * @example
132
- * ```typescript
133
- * formatDateString("2025-03-27"); // Returns "27-March-2025~~0"
134
- * ```
135
- */
136
- formatDateString(dateString: string): string;
137
50
  static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, { optional: true; }]>;
138
51
  static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
139
52
  }
@@ -8,7 +8,6 @@ import { UiKitService } from '../../../workflow-services/ui-kit.service';
8
8
  import { ComplianceCommonService } from '../../../workflow-services/common-workflow-services/compliance-common.service';
9
9
  import { OrganizationCommonService } from '../../../workflow-services/common-workflow-services/organization-common.service';
10
10
  import { IframeService } from '../../../services/iframe.service';
11
- import { CommonService } from '../../../services/common.service';
12
11
  import * as i0 from "@angular/core";
13
12
  export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
14
13
  private grcService;
@@ -18,7 +17,6 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
18
17
  private complianceCommonService;
19
18
  private organizationCommonService;
20
19
  private iframeService;
21
- private CommonService;
22
20
  MODE: 'CREATE' | 'EDIT';
23
21
  ID: string;
24
22
  ALL_TEXT: {
@@ -98,7 +96,6 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
98
96
  selectedProgram: any[];
99
97
  selectedResponsibility: any[];
100
98
  submitLoader: boolean;
101
- linkedResponsibilities: any;
102
99
  populateOption: EventEmitter<any>;
103
100
  pickerChanged: EventEmitter<any>;
104
101
  closeWorkflow: EventEmitter<any>;
@@ -107,7 +104,7 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
107
104
  hideElementsFromMoreOptions: EventEmitter<any>;
108
105
  otherGRCSubscription: Subscription;
109
106
  hideMoreOption: any;
110
- constructor(grcService: GrcService, apiService: ResponsibilityService, authService: AuthService, uiKitService: UiKitService, complianceCommonService: ComplianceCommonService, organizationCommonService: OrganizationCommonService, iframeService: IframeService, CommonService: CommonService);
107
+ constructor(grcService: GrcService, apiService: ResponsibilityService, authService: AuthService, uiKitService: UiKitService, complianceCommonService: ComplianceCommonService, organizationCommonService: OrganizationCommonService, iframeService: IframeService);
111
108
  ngOnDestroy(): void;
112
109
  ngOnInit(): void;
113
110
  getSubscriptionDetails(): void;
@@ -173,7 +170,6 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
173
170
  resetOtherGRCCard(): void;
174
171
  resetDataOnRCChange(): void;
175
172
  resetMoreOptionsOnRCChange(): void;
176
- getAllResponsibilities(): void;
177
173
  static ɵfac: i0.ɵɵFactoryDeclaration<GrcObjectContainerComponent, never>;
178
174
  static ɵcmp: i0.ɵɵComponentDeclaration<GrcObjectContainerComponent, "lib-grc-object-container", never, { "grcType": { "alias": "grcType"; "required": false; }; "MODE": { "alias": "MODE"; "required": false; }; "ID": { "alias": "ID"; "required": false; }; }, { "populateOption": "populateOption"; "pickerChanged": "pickerChanged"; "closeWorkflow": "closeWorkflow"; "disconnectRefresh": "disconnectRefresh"; "resetForm": "resetForm"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; }, never, never, false, never>;
179
175
  }
@@ -1,8 +1,6 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { ResponsibilityService } from '../../../../workflow-services/responsibility.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class GrcCategoryListingComponent implements OnInit {
5
- private responsibilityService;
6
4
  categories: any;
7
5
  tableCard: Array<any>;
8
6
  selectedCategory: any;
@@ -23,7 +21,7 @@ export declare class GrcCategoryListingComponent implements OnInit {
23
21
  set getProgramData(value: any);
24
22
  activeSelectedCategory: EventEmitter<any>;
25
23
  onCategoryPageChange: EventEmitter<any>;
26
- constructor(responsibilityService: ResponsibilityService);
24
+ constructor();
27
25
  ngOnInit(): void;
28
26
  getSelectedCategory(category: any, event: any): void;
29
27
  deleteEvent(category: any): void;
@@ -2,13 +2,9 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { GrcResponsibilityListingComponent } from '../grc-responsibility-listing/grc-responsibility-listing.component';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { GrcService } from '../../services/grc.service';
5
- import { ResponsibilityService } from '../../../../workflow-services/responsibility.service';
6
- import { GetUserDetailsPipe } from '../../workflow-pipes/get-user-details.pipe';
7
5
  import * as i0 from "@angular/core";
8
6
  export declare class ProgramResponsibilityListingComponent implements OnInit {
9
7
  private grcService;
10
- private responsibilityService;
11
- private getUserDetails;
12
8
  programTypes: {
13
9
  title: string;
14
10
  count: number;
@@ -58,7 +54,7 @@ export declare class ProgramResponsibilityListingComponent implements OnInit {
58
54
  MODE: 'CREATE' | 'EDIT';
59
55
  closeList: EventEmitter<any>;
60
56
  responsibilityListingComponent: GrcResponsibilityListingComponent;
61
- constructor(grcService: GrcService, responsibilityService: ResponsibilityService, getUserDetails: GetUserDetailsPipe);
57
+ constructor(grcService: GrcService);
62
58
  ngOnInit(): void;
63
59
  close(): void;
64
60
  save(): void;
@@ -74,7 +70,7 @@ export declare class ProgramResponsibilityListingComponent implements OnInit {
74
70
  activeSelectedSubCategory(event: any): void;
75
71
  getResponsibilitiesList(event?: any): void;
76
72
  getUpdatedDataList(event: any): void;
77
- setDataListStructure(responsibilities: any[], users: any[], responsibilityCenters: any[]): any[];
73
+ setDataListStructure(res: any): any;
78
74
  onSelectedProgramChange(): void;
79
75
  changeSelectedProgramAndResp(event: any): void;
80
76
  getSelectedProgramIds(selectedData: any): void;
@@ -17,7 +17,6 @@ export declare class GrcService {
17
17
  readonly GRC_PAYLOAD: AddGrc;
18
18
  readonly LIST_OBJECT: ListObject;
19
19
  constructor(http: HttpClient, authService: AuthService, config?: Configurations);
20
- getAllResponsibilities(pageNo: number): import("rxjs").Observable<any[]>;
21
20
  getGRCList(event?: any): import("rxjs").Observable<any[]>;
22
21
  getGRCTabsCount(event?: any): import("rxjs").Observable<any[]>;
23
22
  checkValidation(grcPayload: AddGrc, isAttributesSelected: boolean): boolean | 0;
@@ -2,10 +2,9 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./get-selected-value.pipe";
3
3
  import * as i2 from "./is-attributes-valid.pipe";
4
4
  import * as i3 from "./unique-responsibilities.pipe";
5
- import * as i4 from "./get-user-details.pipe";
6
- import * as i5 from "@angular/common";
5
+ import * as i4 from "@angular/common";
7
6
  export declare class WorkflowPipesModule {
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowPipesModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<WorkflowPipesModule, [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe, typeof i4.GetUserDetailsPipe], [typeof i5.CommonModule], [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe, typeof i4.GetUserDetailsPipe]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WorkflowPipesModule, [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe], [typeof i4.CommonModule], [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe]>;
10
9
  static ɵinj: i0.ɵɵInjectorDeclaration<WorkflowPipesModule>;
11
10
  }
@@ -284,6 +284,8 @@ export declare class ImportAnAssessmentComponent {
284
284
  };
285
285
  postAssessment(data: any): void;
286
286
  postAssessmentDetails(id: any, mode: any, assessmentDetails: any): void;
287
+ submitWorkflow(): void;
288
+ private getOrigin;
287
289
  smileyAction(id: any): void;
288
290
  static ɵfac: i0.ɵɵFactoryDeclaration<ImportAnAssessmentComponent, never>;
289
291
  static ɵcmp: i0.ɵɵComponentDeclaration<ImportAnAssessmentComponent, "app-import-an-assessment", never, {}, { "closeWorkflow": "closeWorkflow"; "disconnectRefresh": "disconnectRefresh"; }, never, never, false, never>;
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter, ElementRef, TemplateRef } from '@angular/core';
1
+ import { OnInit, EventEmitter, ElementRef } from '@angular/core';
2
2
  import { EditorConfig } from 'vcomply-editor';
3
3
  import { AuthService } from '../workflow-services/auth.service';
4
4
  import { ResponsibilityService } from '../workflow-services/responsibility.service';
@@ -11,9 +11,6 @@ import { GrcService } from '../workflow/shared/services/grc.service';
11
11
  import { OrganizationUserService } from '../workflow-services/organization-user.service';
12
12
  import { ComplianceCommonService } from '../workflow-services/common-workflow-services/compliance-common.service';
13
13
  import { OrganizationCommonService } from '../workflow-services/common-workflow-services/organization-common.service';
14
- import { FrequencyObject } from '../interfaces/frequency.interface';
15
- import { Responsibility } from '../interfaces/responsibilty.interface';
16
- import { ListItem } from '../sharedComponents/program-list/interfaces/list-item.interface';
17
14
  import { IframeService } from '../services/iframe.service';
18
15
  import * as i0 from "@angular/core";
19
16
  export declare class WorkflowComplianceComponent implements OnInit {
@@ -107,11 +104,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
107
104
  grcSearchString: string;
108
105
  GRC_TYPE_ARRAY: string[];
109
106
  grcDataWithTypes: any;
110
- selectedCategory: any[];
111
- programListUrl: {
112
- programList: string;
113
- categoryList: string;
114
- };
115
107
  set closeOnEsc(escapeCondition: boolean);
116
108
  orgDetails: any;
117
109
  url: string;
@@ -197,7 +189,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
197
189
  allPrograms: any[];
198
190
  riskClassification: {
199
191
  name: string;
200
- value: string;
192
+ value: number;
201
193
  class: string;
202
194
  }[];
203
195
  assignorMode: string;
@@ -222,7 +214,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
222
214
  continuous_failed_days: number;
223
215
  onCompletionReportDetails: {};
224
216
  };
225
- frequencyObject: FrequencyObject | null;
226
217
  frequencyPlaceholder: string;
227
218
  shortMonth: Array<string>;
228
219
  isEditWhat: Boolean;
@@ -253,10 +244,8 @@ export declare class WorkflowComplianceComponent implements OnInit {
253
244
  rawResponsibility: any;
254
245
  otherGRCSubscription: Subscription;
255
246
  allowEditDueDateFeatureFlag: boolean;
256
- allProgamSelected: any[];
257
247
  whatInput: ElementRef;
258
248
  unSubscribeProgram: Subject<void>;
259
- responsibilityDetails: any;
260
249
  constructor(authService: AuthService, responsibilityService: ResponsibilityService, frequencyService: FrequencyService, uiKitService: UiKitService, snackBar: SnackBarService, permission: AuthService, programService: ProgramsService, grcService: GrcService, organizationUserService: OrganizationUserService, complianceCommonService: ComplianceCommonService, organizationCommonService: OrganizationCommonService, iframeService: IframeService);
261
250
  ngOnInit(): void;
262
251
  setFeatureFlags(): void;
@@ -272,6 +261,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
272
261
  getRCList(program_id?: string): void;
273
262
  getUserDetails(): void;
274
263
  getAssurance(): void;
264
+ getAssuranceForRequiresAudit(): void;
275
265
  getOrganizationDetails(): void;
276
266
  getCategoryList(): void;
277
267
  filterListsAccordingToProgram(program_id?: string): void;
@@ -353,14 +343,13 @@ export declare class WorkflowComplianceComponent implements OnInit {
353
343
  getOnCompletionReportDetails(event: any): any;
354
344
  frequencyDataPopulation(event: any): void;
355
345
  frequencyPopulation(event: any): void;
356
- setPayload(event: any): Responsibility | null;
357
346
  frequencyData(event: any): void;
358
347
  checkBlank(data: string): string;
359
348
  /**
360
349
  * It takes a string and returns a string.
361
350
  * @param {any} res - any = {
362
351
  */
363
- getFrequencyPlaceholder(frequency: any): void;
352
+ getFrequencyPlaceholder(res: any): void;
364
353
  /**
365
354
  * It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
366
355
  * details and then it gets the on completion of responsibility and sets the frequency placeholder to
@@ -464,7 +453,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
464
453
  */
465
454
  postAssessment(event: any): void;
466
455
  setIsUploaded(event: any): void;
467
- checkDefaultProgramOnRemove(event: any): void;
456
+ checkDefaultProgramOnRemove(program: any): void;
468
457
  /**
469
458
  * It takes an array of numbers and returns an array of unique numbers.
470
459
  * @param {any} array - The array you want to get the unique values from.
@@ -490,21 +479,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
490
479
  resetGRCDataWithTypes(): void;
491
480
  removeOtherGRCObjects(event: any): void;
492
481
  filterOtherGRCData(event: any, type: string): void;
493
- programs: ListItem[];
494
- selectedPrograms: any[];
495
- customItemTemplate: TemplateRef<any> | undefined;
496
- onItemsSelectedChange(items: ListItem[]): void;
497
- selectCategory(): void;
498
- get currentUserInfo(): {
499
- member_email: any;
500
- member_id: any;
501
- member_name: any;
502
- organisation_id: any;
503
- _id: any;
504
- };
505
- removeProgram(program: any): void;
506
- populateResponsibilityDetails(): void;
507
- populateFrequencyDetails(frequency: any): void;
508
482
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceComponent, never>;
509
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowComplianceComponent, "app-workflow-compliance", never, { "mode": { "alias": "mode"; "required": false; }; "responsibilityId": { "alias": "responsibilityId"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "isEntrust": { "alias": "isEntrust"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; }; "orgDetails": { "alias": "orgDetails"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "setSelectedProgram": { "alias": "selectedProgram"; "required": false; }; "responsibilityDetails": { "alias": "responsibilityDetails"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "populateOption": "populateOption"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; "closeWorkflow": "closeWorkflow"; "resetForm": "resetForm"; "disconnectRefresh": "disconnectRefresh"; "checkpointCountUpdated": "checkpointCountUpdated"; "rcSelected": "rcSelected"; "onRemovingCheckpoint": "onRemovingCheckpoint"; "isAssessmentDisabled": "isAssessmentDisabled"; "assigneeTypeChange": "assigneeTypeChange"; "onReviewerTypeChange": "onReviewerTypeChange"; }, never, never, false, never>;
483
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowComplianceComponent, "app-workflow-compliance", never, { "mode": { "alias": "mode"; "required": false; }; "responsibilityId": { "alias": "responsibilityId"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "isEntrust": { "alias": "isEntrust"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; }; "orgDetails": { "alias": "orgDetails"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "setSelectedProgram": { "alias": "selectedProgram"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "populateOption": "populateOption"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; "closeWorkflow": "closeWorkflow"; "resetForm": "resetForm"; "disconnectRefresh": "disconnectRefresh"; "checkpointCountUpdated": "checkpointCountUpdated"; "rcSelected": "rcSelected"; "onRemovingCheckpoint": "onRemovingCheckpoint"; "isAssessmentDisabled": "isAssessmentDisabled"; "assigneeTypeChange": "assigneeTypeChange"; "onReviewerTypeChange": "onReviewerTypeChange"; }, never, never, false, never>;
510
484
  }
@@ -1,5 +1,4 @@
1
1
  export declare const API_URLS: {
2
2
  fetchPolicyList: string;
3
3
  LINKED_POLICIES: string;
4
- LINKED_PROGRAMS: string;
5
4
  };
@@ -19,7 +19,6 @@ import { Subscription } from 'rxjs';
19
19
  import { ReportACaseService } from '../report-a-case/services/report-a-case.service';
20
20
  import { WorkflowCaseComponent } from '../report-a-case/workflow-case/workflow-case.component';
21
21
  import { ReportCasePermissionService } from '../services/report-case-permission.service';
22
- import { IframeService } from '../services/iframe.service';
23
22
  import * as i0 from "@angular/core";
24
23
  export declare class WorkflowEngineContainerComponent implements OnInit, AfterViewInit {
25
24
  uiKitService: UiKitService;
@@ -28,13 +27,12 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
28
27
  private orgCommonService;
29
28
  private reportACaseService;
30
29
  private reportCasePermissionService;
31
- private iframeService;
32
30
  isHostRefreshActive: boolean;
33
31
  isRCSelected: boolean;
34
32
  featureFlag_groups: boolean;
35
33
  addToCaseMode: string;
36
34
  permissionSubscription: Subscription;
37
- constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService, reportCasePermissionService: ReportCasePermissionService, iframeService: IframeService);
35
+ constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService, reportCasePermissionService: ReportCasePermissionService);
38
36
  workflowType: string;
39
37
  mode: string;
40
38
  id: string;
@@ -47,7 +45,6 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
47
45
  secondaryOpenPortal: string;
48
46
  defaultRiskType: string;
49
47
  moveToRegisterMode: string;
50
- workflowDetails: any;
51
48
  reponsibilityData: {
52
49
  responsibilityId: null;
53
50
  responsibilityName: string;
@@ -167,5 +164,5 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
167
164
  onReviewerChange(event: string): void;
168
165
  isResponsibilitySimplify(): void;
169
166
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowEngineContainerComponent, never>;
170
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowEngineContainerComponent, "app-vcomply-workflow-engine-container", never, { "workflowType": { "alias": "workflowType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "allowedWorkflows": { "alias": "allowedWorkflows"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "secondaryOpenPortal": { "alias": "secondaryOpenPortal"; "required": false; }; "defaultRiskType": { "alias": "defaultRiskType"; "required": false; }; "moveToRegisterMode": { "alias": "moveToRegisterMode"; "required": false; }; "workflowDetails": { "alias": "workflowDetails"; "required": false; }; "reponsibilityData": { "alias": "reponsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "pid": { "alias": "pid"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "issueData": { "alias": "issueData"; "required": false; }; "entrustButtonName": { "alias": "entrustButtonName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "selectedProgram": { "alias": "selectedProgram"; "required": false; }; "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "grcType": { "alias": "grcType"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
167
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowEngineContainerComponent, "app-vcomply-workflow-engine-container", never, { "workflowType": { "alias": "workflowType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "allowedWorkflows": { "alias": "allowedWorkflows"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "secondaryOpenPortal": { "alias": "secondaryOpenPortal"; "required": false; }; "defaultRiskType": { "alias": "defaultRiskType"; "required": false; }; "moveToRegisterMode": { "alias": "moveToRegisterMode"; "required": false; }; "reponsibilityData": { "alias": "reponsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "pid": { "alias": "pid"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "issueData": { "alias": "issueData"; "required": false; }; "entrustButtonName": { "alias": "entrustButtonName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "selectedProgram": { "alias": "selectedProgram"; "required": false; }; "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "grcType": { "alias": "grcType"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
171
168
  }