vcomply-workflow-engine 6.0.88 → 6.0.90

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 (107) hide show
  1. package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +30 -7
  2. package/esm2022/lib/constants/api.constants.mjs +1 -6
  3. package/esm2022/lib/constants/policy.constant.mjs +6 -0
  4. package/esm2022/lib/constants/regix.constants.mjs +4 -0
  5. package/esm2022/lib/constants/responsibility.mjs +8 -0
  6. package/esm2022/lib/interfaces/policy.interface.mjs +2 -0
  7. package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
  8. package/esm2022/lib/more-option/more-option.component.mjs +183 -17
  9. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +2 -3
  10. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +7 -4
  11. package/esm2022/lib/services/common.service.mjs +1 -40
  12. package/esm2022/lib/services/iframe.service.mjs +1 -14
  13. package/esm2022/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.mjs +6 -3
  14. package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +21 -10
  15. package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
  16. package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
  17. package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
  18. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
  19. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
  20. package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -3
  21. package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
  22. package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
  23. package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +2 -9
  24. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
  25. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +5 -267
  26. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +16 -48
  27. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.module.mjs +4 -8
  28. package/esm2022/lib/sharedComponents/pipes/risk-class.pipe.mjs +19 -0
  29. package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +17 -45
  30. package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +10 -13
  31. package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +35 -62
  32. package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -15
  33. package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +3 -8
  34. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +453 -294
  35. package/esm2022/lib/workflow-engine-container/api-constants.mjs +2 -3
  36. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +53 -32
  37. package/esm2022/lib/workflow-engine.module.mjs +7 -11
  38. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +29 -46
  39. package/esm2022/lib/workflow-program/constants.mjs +3 -3
  40. package/esm2022/lib/workflow-program/workflow-program.component.mjs +338 -123
  41. package/esm2022/lib/workflow-services/policy.service.mjs +9 -8
  42. package/esm2022/lib/workflow-services/programs.service.mjs +113 -26
  43. package/esm2022/lib/workflow-services/responsibility.service.mjs +55 -60
  44. package/fesm2022/vcomply-workflow-engine.mjs +14780 -14946
  45. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  46. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +3 -0
  47. package/lib/constants/api.constants.d.ts +0 -5
  48. package/lib/constants/policy.constant.d.ts +2 -0
  49. package/lib/constants/regix.constants.d.ts +3 -0
  50. package/lib/constants/responsibility.d.ts +7 -0
  51. package/lib/interfaces/policy.interface.d.ts +5 -0
  52. package/lib/interfaces/responsibilty.interface.d.ts +13 -13
  53. package/lib/services/common.service.d.ts +0 -28
  54. package/lib/services/iframe.service.d.ts +0 -6
  55. package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +6 -0
  56. package/lib/sharedComponents/format-and-evidence/format-and-evidence.component.d.ts +4 -1
  57. package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +0 -1
  58. package/lib/sharedComponents/frequency/frequency.service.d.ts +2 -92
  59. package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +1 -2
  60. package/lib/sharedComponents/link-responsibility/link-responsibility.module.d.ts +1 -2
  61. package/lib/sharedComponents/pipes/risk-class.pipe.d.ts +7 -0
  62. package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -5
  63. package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +1 -3
  64. package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +2 -6
  65. package/lib/workflow/shared/services/grc.service.d.ts +0 -1
  66. package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +2 -3
  67. package/lib/workflow-compliance/workflow-compliance.component.d.ts +10 -32
  68. package/lib/workflow-engine-container/api-constants.d.ts +0 -1
  69. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -5
  70. package/lib/workflow-engine.module.d.ts +2 -3
  71. package/lib/workflow-policy/workflow-policy.component.d.ts +0 -9
  72. package/lib/workflow-program/workflow-program.component.d.ts +4 -8
  73. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  74. package/lib/workflow-services/policy.service.d.ts +1 -1
  75. package/lib/workflow-services/programs.service.d.ts +53 -13
  76. package/lib/workflow-services/responsibility.service.d.ts +4 -17
  77. package/package.json +1 -1
  78. package/esm2022/lib/constants/mock.mjs +0 -152
  79. package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
  80. package/esm2022/lib/interfaces/iframe-type.mjs +0 -7
  81. package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
  82. package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -16
  83. package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
  84. package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
  85. package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -23
  86. package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -182
  87. package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -47
  88. package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
  89. package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
  90. package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +0 -24
  91. package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +0 -19
  92. package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +0 -26
  93. package/lib/constants/mock.d.ts +0 -15
  94. package/lib/interfaces/frequency.interface.d.ts +0 -37
  95. package/lib/interfaces/iframe-type.d.ts +0 -5
  96. package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
  97. package/lib/sharedComponents/program-list/constant.d.ts +0 -9
  98. package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
  99. package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
  100. package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
  101. package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -45
  102. package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -14
  103. package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
  104. package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
  105. package/lib/ui-kit/loaders/loaders.module.d.ts +0 -8
  106. package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +0 -9
  107. package/lib/workflow/shared/workflow-pipes/get-user-details.pipe.d.ts +0 -7
@@ -64,6 +64,8 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
64
64
  responsibilityData: any;
65
65
  featureflag: any;
66
66
  ffBulkUploadOptimization: boolean;
67
+ isDayInvalid: boolean;
68
+ isDateFormatInvalid: boolean;
67
69
  constructor(riskService: AddRiskService, responsibilityService: ResponsibilityService, authService: AuthService, frequencyService: FrequencyBulkService, snackBar: SnackBarService, iframeService: IframeService);
68
70
  ngOnChanges(changes: SimpleChanges): void;
69
71
  ngOnInit(): void;
@@ -132,6 +134,7 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
132
134
  * @returns An object with the following properties:
133
135
  */
134
136
  setReportDetails(report: any, tabType: string, isProgram: boolean): any;
137
+ isValidRiskClass(riskClass: any): boolean;
135
138
  /**
136
139
  * It takes a string, removes all whitespace, and returns the string
137
140
  * @param {any} name - the name of the responsibility
@@ -2,9 +2,4 @@ export declare const API: {
2
2
  subscriptionList: string;
3
3
  goToPolicyWorkroom: string;
4
4
  editPolicy: string;
5
- responsibilityList: string;
6
- };
7
- export declare const PROGRAM_LIST_API: {
8
- programList: string;
9
- categoryList: string;
10
5
  };
@@ -0,0 +1,2 @@
1
+ import { FileSize } from "../interfaces/policy.interface";
2
+ export declare const FILE_SIZE: FileSize;
@@ -0,0 +1,3 @@
1
+ export declare const REGEX: {
2
+ MONTH: RegExp;
3
+ };
@@ -0,0 +1,7 @@
1
+ export declare const RISK_CLASS_LIST: string[];
2
+ export declare const VALIDATION_MESSAGES: {
3
+ RISK_CLASS: string;
4
+ DAY: string;
5
+ DATE_FORMAT: string;
6
+ DUE_DATE: string;
7
+ };
@@ -0,0 +1,5 @@
1
+ export interface FileSize {
2
+ MAX_SIZE: number;
3
+ ERROR: 'success' | 'warning' | 'info' | 'alert' | 'error';
4
+ MESSAGE: string;
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,11 +11,11 @@ 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
- type: 'sequential' | 'any';
18
+ type: 'sequential' | 'any_one';
19
19
  frequency: ReviewerFrequency;
20
20
  userId: number[];
21
21
  }
@@ -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
  }
@@ -1,6 +1,12 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class BulkResponsibilityViewComponent {
4
+ VALIDATION_MESSAGES: {
5
+ RISK_CLASS: string;
6
+ DAY: string;
7
+ DATE_FORMAT: string;
8
+ DUE_DATE: string;
9
+ };
4
10
  responsibilityBulkUpload: any;
5
11
  fileName: any;
6
12
  defaultOwner: any;
@@ -1,12 +1,14 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { AuthService } from '../../workflow-services/auth.service';
3
3
  import { PolicyService } from '../../workflow-services/policy.service';
4
+ import { SnackBarService } from '../../ui-kit/snack-bar/snack-bar.service';
4
5
  import { ResponsibilityService } from '../../workflow-services/responsibility.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FormatAndEvidenceComponent implements OnInit {
7
8
  private responsibilityService;
8
9
  private policyService;
9
10
  private authService;
11
+ private snackbarService;
10
12
  ASSETS: {
11
13
  responsibility_center: string;
12
14
  case_type: string;
@@ -68,7 +70,7 @@ export declare class FormatAndEvidenceComponent implements OnInit {
68
70
  set formatEvidanceData(value: any);
69
71
  isNewLinkDisabled: boolean;
70
72
  isEditDisabled: boolean;
71
- constructor(responsibilityService: ResponsibilityService, policyService: PolicyService, authService: AuthService);
73
+ constructor(responsibilityService: ResponsibilityService, policyService: PolicyService, authService: AuthService, snackbarService: SnackBarService);
72
74
  formate: any;
73
75
  newLink: {
74
76
  link: string;
@@ -83,6 +85,7 @@ export declare class FormatAndEvidenceComponent implements OnInit {
83
85
  editLink(index: number): void;
84
86
  deleteLink(index: number): void;
85
87
  resetNewLink(): void;
88
+ private fileProcessing;
86
89
  onFileDropped(files: any): void;
87
90
  uploadFile(file: any, uid: string): void;
88
91
  deleteAttachment(index: number): void;
@@ -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,13 +1,10 @@
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
- import { GrcService } from '../../workflow/shared/services/grc.service';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class FrequencyService {
8
6
  private http;
9
7
  private authService;
10
- private grcService;
11
8
  monthArray: Array<string>;
12
9
  dayName: Array<string>;
13
10
  quarterlyMonth: Array<string>;
@@ -33,7 +30,7 @@ export declare class FrequencyService {
33
30
  };
34
31
  frequencyDetails: object;
35
32
  private env;
36
- constructor(http: HttpClient, authService: AuthService, grcService: GrcService, config?: Configurations);
33
+ constructor(http: HttpClient, authService: AuthService, config?: Configurations);
37
34
  timeFrom12hTo24h(value: string): string;
38
35
  timeIn12(value: any): string;
39
36
  frameworkStartDate(row: any): number;
@@ -49,94 +46,7 @@ export declare class FrequencyService {
49
46
  changeTimeZone(date: any): Date;
50
47
  getResponsibilityList(payload: any): import("rxjs").Observable<any>;
51
48
  getResponsibilitiesCount(payload: any): import("rxjs").Observable<any>;
52
- getAllResponsibilities(pageNo: number): import("rxjs").Observable<any[]>;
53
49
  formatDate(): string;
54
- /**
55
- * Converts a frequency configuration object into a standardized FrequencyObject format.
56
- *
57
- * @param frequency - The input frequency configuration object with the following properties:
58
- * - case: The type of frequency ('one_time' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semester' | 'yearly' | 'random' | 'ongoing' | 'on_completion_of' | 'biannually')
59
- * - window: Number of days before the task can be started
60
- * - failedAfter: Number of days after which the task is considered failed
61
- * - continuous_failed_days: Number of days after which the task is auto-deactivated
62
- * - day: The day of occurrence
63
- * - timeIn24Hr: Time in 24-hour format
64
- * - every: Frequency interval
65
- * - selectedDay: Array of selected days for weekly frequency (1-7 representing Monday-Sunday)
66
- * - selectedMonth: Array of selected months (0-11 representing January-December)
67
- * - startFrom: Unix timestamp for the start date
68
- * - lifecycleDetails: String in format "YYYY-MM-DD~~N" where N is the number of occurrences
69
- * - randomTypeSelected: Index for random frequency type (0: weekly, 1: monthly, 2: quarterly, 3: yearly)
70
- * - randomInstances: Number of random occurrences
71
- * - selectedType: Number of reminders for ongoing frequency
72
- * - selectedOngoingType: Index for ongoing frequency type (1: week, 2: month, 3: quarter, 4: semester, 5: year)
73
- *
74
- * @returns A FrequencyObject with the following structure:
75
- * - type: Frequency type
76
- * - startBefore: Days before task can start
77
- * - endAfter: Days after which task fails
78
- * - autoDeactivate: Days after which task is deactivated
79
- * - day: Day of occurrence
80
- * - time: Time in 24-hour format
81
- * - repeatOptions: {
82
- * every: number,
83
- * repeatOn: string (binary representation of selected days/months),
84
- * lifecycle: {
85
- * startFrom: string (YYYY-MM-DD),
86
- * endBy?: string (YYYY-MM-DD),
87
- * endAfter?: number
88
- * }
89
- * }
90
- * - random?: { type: string, occurrence: number }
91
- * - onComplete: {}
92
- * - onGoing: { reminders: number, startOf: 'week' | 'month' | 'quarter' | 'semester' | 'year' }
93
- *
94
- * @example
95
- * ```typescript
96
- * const frequency = {
97
- * case: 'weekly',
98
- * window: 2,
99
- * failedAfter: 1,
100
- * continuous_failed_days: 3,
101
- * day: 1,
102
- * timeIn24Hr: '09:00:00',
103
- * every: 1,
104
- * selectedDay: [1, 3, 5], // Monday, Wednesday, Friday
105
- * startFrom: 1678900000,
106
- * lifecycleDetails: '2024-12-31~~10'
107
- * };
108
- * const result = setFrequencyObject(frequency);
109
- * ```
110
- */
111
- setFrequencyObject(frequency: any): FrequencyObject | null;
112
- repeatOptions(frequency: any): string;
113
- getOngoing(frequency: any): {
114
- reminders: any;
115
- startOf: string;
116
- };
117
- getRandomFrequency(frequency: any): {
118
- type: string;
119
- occurrence: any;
120
- };
121
- createFrequencyPattern(frequency: any): string;
122
- getDay(repeatOptions: string): string;
123
- getMonth(repeatOptions: string): string;
124
- getLifecyclePattern(frequency: any): {
125
- startFrom: number;
126
- pattern: string;
127
- };
128
- /**
129
- * Converts a date string in "YYYY-MM-DD" format to "DD-Month-YYYY~~0".
130
- *
131
- * @param {string} dateString - The input date string in "YYYY-MM-DD" format.
132
- * @returns {string} - The formatted date string in "DD-Month-YYYY~~0" format.
133
- *
134
- * @example
135
- * ```typescript
136
- * formatDateString("2025-03-27"); // Returns "27-March-2025~~0"
137
- * ```
138
- */
139
- formatDateString(dateString: string): string;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, null, { optional: true; }]>;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, { optional: true; }]>;
141
51
  static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
142
52
  }
@@ -57,8 +57,7 @@ export declare class LinkResponsibilityListComponent implements OnInit {
57
57
  ngOnInit(): void;
58
58
  back(): void;
59
59
  getResponsibilityValues(): void;
60
- getResponsibilityList(pageNo?: number): void;
61
- private mapResponsibilitiesData;
60
+ getResponsibilityList(): void;
62
61
  responsibilityPageChange(pageNumber: number): void;
63
62
  deleteItem(item: any): void;
64
63
  save(event: any): void;
@@ -8,9 +8,8 @@ import * as i6 from "../../formgroup/formgroup.module";
8
8
  import * as i7 from "../no-data/no-data.module";
9
9
  import * as i8 from "../v-loader/v-loader.module";
10
10
  import * as i9 from "../../ui-kit/popover/popover.module";
11
- import * as i10 from "../../ui-kit/pagination/pagination.module";
12
11
  export declare class LinkResponsibilityModule {
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkResponsibilityModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<LinkResponsibilityModule, [typeof i1.LinkResponsibilityListComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PipesModule, typeof i5.FloatingBarModule, typeof i6.FormgroupModule, typeof i7.NoDataModule, typeof i8.VLoaderModule, typeof i9.PopoverModule, typeof i10.PaginationModule], [typeof i1.LinkResponsibilityListComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LinkResponsibilityModule, [typeof i1.LinkResponsibilityListComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PipesModule, typeof i5.FloatingBarModule, typeof i6.FormgroupModule, typeof i7.NoDataModule, typeof i8.VLoaderModule, typeof i9.PopoverModule], [typeof i1.LinkResponsibilityListComponent]>;
15
14
  static ɵinj: i0.ɵɵInjectorDeclaration<LinkResponsibilityModule>;
16
15
  }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RiskClassPipe implements PipeTransform {
4
+ transform(value: string): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RiskClassPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<RiskClassPipe, "riskClass", false>;
7
+ }
@@ -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
  }
@@ -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;
@@ -154,6 +146,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
154
146
  assigneesListLoaded: boolean;
155
147
  categoriesListLoaded: boolean;
156
148
  groupsListLoaded: boolean;
149
+ assuranceCategoryListLoaded: boolean;
157
150
  selectedFrameworkValues: any;
158
151
  hasReviewer: boolean;
159
152
  assignorsList: any[];
@@ -196,7 +189,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
196
189
  allPrograms: any[];
197
190
  riskClassification: {
198
191
  name: string;
199
- value: string;
192
+ value: number;
200
193
  class: string;
201
194
  }[];
202
195
  assignorMode: string;
@@ -221,7 +214,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
221
214
  continuous_failed_days: number;
222
215
  onCompletionReportDetails: {};
223
216
  };
224
- frequencyObject: FrequencyObject | null;
225
217
  frequencyPlaceholder: string;
226
218
  shortMonth: Array<string>;
227
219
  isEditWhat: Boolean;
@@ -252,14 +244,14 @@ export declare class WorkflowComplianceComponent implements OnInit {
252
244
  rawResponsibility: any;
253
245
  otherGRCSubscription: Subscription;
254
246
  allowEditDueDateFeatureFlag: boolean;
255
- allProgamSelected: any[];
256
247
  whatInput: ElementRef;
257
248
  unSubscribeProgram: Subject<void>;
258
- responsibilityDetails: any;
259
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);
260
250
  ngOnInit(): void;
251
+ populateRCList(): void;
261
252
  setFeatureFlags(): void;
262
253
  getInitialData(): void;
254
+ getRCDetailsinRiskTreatment(): void;
263
255
  getOrgDetails(): void;
264
256
  getSubscriptionDetail(): void;
265
257
  activateSelector(type: any, event: boolean): void;
@@ -270,6 +262,8 @@ export declare class WorkflowComplianceComponent implements OnInit {
270
262
  onRcTypeChange(selectedType: Number): void;
271
263
  getRCList(program_id?: string): void;
272
264
  getUserDetails(): void;
265
+ getAssurance(): void;
266
+ getAssuranceForRequiresAudit(): void;
273
267
  getOrganizationDetails(): void;
274
268
  getCategoryList(): void;
275
269
  filterListsAccordingToProgram(program_id?: string): void;
@@ -351,14 +345,13 @@ export declare class WorkflowComplianceComponent implements OnInit {
351
345
  getOnCompletionReportDetails(event: any): any;
352
346
  frequencyDataPopulation(event: any): void;
353
347
  frequencyPopulation(event: any): void;
354
- setPayload(event: any): Responsibility | null;
355
348
  frequencyData(event: any): void;
356
349
  checkBlank(data: string): string;
357
350
  /**
358
351
  * It takes a string and returns a string.
359
352
  * @param {any} res - any = {
360
353
  */
361
- getFrequencyPlaceholder(frequency: any): void;
354
+ getFrequencyPlaceholder(res: any): void;
362
355
  /**
363
356
  * It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
364
357
  * details and then it gets the on completion of responsibility and sets the frequency placeholder to
@@ -462,7 +455,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
462
455
  */
463
456
  postAssessment(event: any): void;
464
457
  setIsUploaded(event: any): void;
465
- checkDefaultProgramOnRemove(event: any): void;
458
+ checkDefaultProgramOnRemove(program: any): void;
466
459
  /**
467
460
  * It takes an array of numbers and returns an array of unique numbers.
468
461
  * @param {any} array - The array you want to get the unique values from.
@@ -488,21 +481,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
488
481
  resetGRCDataWithTypes(): void;
489
482
  removeOtherGRCObjects(event: any): void;
490
483
  filterOtherGRCData(event: any, type: string): void;
491
- programs: ListItem[];
492
- selectedPrograms: any[];
493
- customItemTemplate: TemplateRef<any> | undefined;
494
- onItemsSelectedChange(items: ListItem[]): void;
495
- selectCategory(): void;
496
- get currentUserInfo(): {
497
- member_email: any;
498
- member_id: any;
499
- member_name: any;
500
- organisation_id: any;
501
- _id: any;
502
- };
503
- removeProgram(program: any): void;
504
- populateResponsibilityDetails(): void;
505
- populateFrequencyDetails(frequency: any): void;
506
484
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceComponent, never>;
507
- 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>;
485
+ 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>;
508
486
  }
@@ -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
  };