vcomply-workflow-engine 6.0.6 → 6.0.7

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 (33) hide show
  1. package/esm2022/lib/interfaces/frequency.interface.mjs +2 -0
  2. package/esm2022/lib/more-option/more-option.component.mjs +8 -66
  3. package/esm2022/lib/report-a-case/components/case-assignees/case-assignees.component.mjs +10 -5
  4. package/esm2022/lib/report-a-case/components/case-category/case-category.component.mjs +11 -2
  5. package/esm2022/lib/report-a-case/components/case-owners/case-owners.component.mjs +7 -2
  6. package/esm2022/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.mjs +7 -2
  7. package/esm2022/lib/report-a-case/components/rc-details/rc-details.component.mjs +8 -2
  8. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +15 -3
  9. package/esm2022/lib/sharedComponents/audit-category-list/audit-category-list.component.mjs +3 -3
  10. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +2 -1
  11. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -1
  12. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -1
  13. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +56 -5
  14. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +3 -1
  15. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +20 -4
  16. package/esm2022/lib/workflow-program/workflow-program.component.mjs +25 -43
  17. package/esm2022/lib/workflow-services/programs.service.mjs +24 -4
  18. package/fesm2022/vcomply-workflow-engine.mjs +197 -138
  19. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  20. package/lib/interfaces/frequency.interface.d.ts +36 -0
  21. package/lib/report-a-case/components/case-assignees/case-assignees.component.d.ts +3 -2
  22. package/lib/report-a-case/components/case-category/case-category.component.d.ts +2 -1
  23. package/lib/report-a-case/components/case-owners/case-owners.component.d.ts +2 -1
  24. package/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.d.ts +2 -1
  25. package/lib/report-a-case/components/rc-details/rc-details.component.d.ts +2 -1
  26. package/lib/report-a-case/workflow-case/workflow-case.component.d.ts +3 -1
  27. package/lib/sharedComponents/frequency/frequency.service.d.ts +7 -4
  28. package/lib/workflow-compliance/workflow-compliance.component.d.ts +1 -1
  29. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -0
  30. package/lib/workflow-program/workflow-program.component.d.ts +0 -1
  31. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  32. package/lib/workflow-services/programs.service.d.ts +15 -0
  33. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ export interface FrequencyObject {
2
+ type: 'one_time' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semester' | 'yearly' | 'random' | 'ongoing' | 'on_completion_of' | 'biannually';
3
+ endAfter: number;
4
+ auttoDeactivate: number;
5
+ day: number;
6
+ time: string;
7
+ repeatOptions?: RepeatOptions;
8
+ random?: Random | {};
9
+ onComplete?: OnComplete | {};
10
+ onGoing?: OnGoing | {};
11
+ }
12
+ interface RepeatOptions {
13
+ every: number;
14
+ repeatOn: string;
15
+ lifecycle: Lifecycle;
16
+ }
17
+ interface Random {
18
+ type: string;
19
+ occurrences: number;
20
+ }
21
+ interface OnComplete {
22
+ rId: number;
23
+ aId: number;
24
+ rcId: number;
25
+ startAfter: number;
26
+ }
27
+ interface OnGoing {
28
+ reminders: number;
29
+ startOf: 'week' | 'month' | 'quarter' | 'semester' | 'year';
30
+ }
31
+ interface Lifecycle {
32
+ startFrom: string;
33
+ endBy: string | undefined;
34
+ endAfter: number;
35
+ }
36
+ export {};
@@ -127,9 +127,10 @@ export declare class CaseAssigneesComponent {
127
127
  userList: any[];
128
128
  groupList: any[];
129
129
  set initialSelection(value: any);
130
+ validationError: any;
130
131
  fieldClicked: EventEmitter<any>;
131
132
  onRcChange: EventEmitter<any>;
132
- validationError: any;
133
+ filterDeselector: EventEmitter<any>;
133
134
  ngOnInit(): void;
134
135
  ngOnChanges(changes: SimpleChanges): void;
135
136
  saveSelectedAssigneesList(event: any): void;
@@ -145,5 +146,5 @@ export declare class CaseAssigneesComponent {
145
146
  setPayload(users: any, groups: any): void;
146
147
  resetStagePayload(): void;
147
148
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseAssigneesComponent, never>;
148
- static ɵcmp: i0.ɵɵComponentDeclaration<CaseAssigneesComponent, "app-case-assignees", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "onRcChange": "onRcChange"; }, never, never, false, never>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseAssigneesComponent, "app-case-assignees", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "onRcChange": "onRcChange"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
149
150
  }
@@ -138,6 +138,7 @@ export declare class CaseCategoryComponent implements OnInit, OnChanges {
138
138
  workflowType: string;
139
139
  onCategoryChange: EventEmitter<any>;
140
140
  fieldClicked: EventEmitter<any>;
141
+ filterDeselector: EventEmitter<any>;
141
142
  constructor(caseService: ReportACaseService);
142
143
  ngOnInit(): void;
143
144
  trackByIndex(index: number): number;
@@ -163,5 +164,5 @@ export declare class CaseCategoryComponent implements OnInit, OnChanges {
163
164
  resetCategoryList(): void;
164
165
  resetAdditionalCategoryList(): void;
165
166
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseCategoryComponent, never>;
166
- static ɵcmp: i0.ɵɵComponentDeclaration<CaseCategoryComponent, "app-case-category", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "caseTypeSelected": { "alias": "caseTypeSelected"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "initialAdditionalSelection": { "alias": "initialAdditionalSelection"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; }, { "onCategoryChange": "onCategoryChange"; "fieldClicked": "fieldClicked"; }, never, never, false, never>;
167
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseCategoryComponent, "app-case-category", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "caseTypeSelected": { "alias": "caseTypeSelected"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "initialAdditionalSelection": { "alias": "initialAdditionalSelection"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; }, { "onCategoryChange": "onCategoryChange"; "fieldClicked": "fieldClicked"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
167
168
  }
@@ -128,6 +128,7 @@ export declare class CaseOwnersComponent implements OnInit, OnDestroy {
128
128
  validationError: any;
129
129
  mode: string;
130
130
  fieldClicked: EventEmitter<any>;
131
+ filterDeselector: EventEmitter<any>;
131
132
  constructor(reportACaseService: ReportACaseService);
132
133
  ngOnDestroy(): void;
133
134
  ngOnInit(): void;
@@ -142,5 +143,5 @@ export declare class CaseOwnersComponent implements OnInit, OnDestroy {
142
143
  setPayload(event: any): void;
143
144
  isCaseOwnerSelectionDisabled(): boolean;
144
145
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseOwnersComponent, never>;
145
- static ɵcmp: i0.ɵɵComponentDeclaration<CaseOwnersComponent, "app-case-owners", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "workflowId": { "alias": "workflowId"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "fieldClicked": "fieldClicked"; }, never, never, false, never>;
146
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseOwnersComponent, "app-case-owners", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "workflowId": { "alias": "workflowId"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
146
147
  }
@@ -129,6 +129,7 @@ export declare class CaseResolutionDeadlineComponent {
129
129
  fieldSelected: string;
130
130
  validationError: any;
131
131
  fieldClicked: EventEmitter<string>;
132
+ filterDeselector: EventEmitter<any>;
132
133
  constructor(reportACaseService: ReportACaseService);
133
134
  saveSelectedDueDate(): void;
134
135
  setSelectedRcList(event: any): void;
@@ -136,5 +137,5 @@ export declare class CaseResolutionDeadlineComponent {
136
137
  getWorkflowDetails(): void;
137
138
  isCaseResolutionDeadlineDisabled(): boolean;
138
139
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseResolutionDeadlineComponent, never>;
139
- static ɵcmp: i0.ɵɵComponentDeclaration<CaseResolutionDeadlineComponent, "app-case-resolution-deadline", never, { "payload": { "alias": "payload"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; }, { "fieldClicked": "fieldClicked"; }, never, never, false, never>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseResolutionDeadlineComponent, "app-case-resolution-deadline", never, { "payload": { "alias": "payload"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
140
141
  }
@@ -133,6 +133,7 @@ export declare class RcDetailsComponent implements OnInit, OnDestroy {
133
133
  workflowType: string;
134
134
  fieldClicked: EventEmitter<any>;
135
135
  onRcChange: EventEmitter<any>;
136
+ filterDeselector: EventEmitter<any>;
136
137
  constructor(complianceService: ComplianceCommonService);
137
138
  ngOnDestroy(): void;
138
139
  ngOnInit(): void;
@@ -150,5 +151,5 @@ export declare class RcDetailsComponent implements OnInit, OnDestroy {
150
151
  onRcTypeChange(event: any): void;
151
152
  get rcEditDisable(): boolean;
152
153
  static ɵfac: i0.ɵɵFactoryDeclaration<RcDetailsComponent, never>;
153
- static ɵcmp: i0.ɵɵComponentDeclaration<RcDetailsComponent, "app-rc-details", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "caseTypeSelected": { "alias": "caseTypeSelected"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "onRcChange": "onRcChange"; }, never, never, false, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<RcDetailsComponent, "app-rc-details", never, { "payload": { "alias": "payload"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "caseTypeSelected": { "alias": "caseTypeSelected"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "onRcChange": "onRcChange"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
154
155
  }
@@ -230,6 +230,7 @@ export declare class WorkflowCaseComponent implements OnInit, OnDestroy {
230
230
  caseReportedBy: EventEmitter<any>;
231
231
  userListEmitter: EventEmitter<any>;
232
232
  disconnectRefresh: EventEmitter<any>;
233
+ pickerChanged: EventEmitter<any>;
233
234
  constructor(reportACaseService: ReportACaseService, uiKitService: UiKitService, organizationUserService: OrganizationUserService, responsibilityService: ResponsibilityService, complianceCommonService: ComplianceCommonService);
234
235
  ngOnDestroy(): void;
235
236
  ngOnInit(): void;
@@ -271,6 +272,7 @@ export declare class WorkflowCaseComponent implements OnInit, OnDestroy {
271
272
  addMoreInfo(event: any): void;
272
273
  setActiveFieldSelector(field: string, type: string): void;
273
274
  fieldDeselector(type: any): void;
275
+ pickerToggle(type: boolean): void;
274
276
  setException(type: any): void;
275
277
  checkDescription(): void;
276
278
  selectFile(type: string, files: any): void;
@@ -298,5 +300,5 @@ export declare class WorkflowCaseComponent implements OnInit, OnDestroy {
298
300
  get displayAdditionalOptions(): any;
299
301
  get checkloader(): boolean;
300
302
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowCaseComponent, never>;
301
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowCaseComponent, "app-workflow-case", never, { "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "caseId": { "alias": "caseId"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; "responsibilityData": { "alias": "responsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "caseTypePermission": { "alias": "caseTypePermission"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; "populateOption": "populateOption"; "caseReportedBy": "caseReportedBy"; "userListEmitter": "userListEmitter"; "disconnectRefresh": "disconnectRefresh"; }, never, never, false, never>;
303
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowCaseComponent, "app-workflow-case", never, { "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "caseId": { "alias": "caseId"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; "responsibilityData": { "alias": "responsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "caseTypePermission": { "alias": "caseTypePermission"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; "populateOption": "populateOption"; "caseReportedBy": "caseReportedBy"; "userListEmitter": "userListEmitter"; "disconnectRefresh": "disconnectRefresh"; "pickerChanged": "pickerChanged"; }, never, never, false, never>;
302
304
  }
@@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Configurations } from '../../configurations';
4
4
  import { AuthService } from '../../workflow-services/auth.service';
5
+ import { FrequencyObject } from '../../interfaces/frequency.interface';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FrequencyService {
7
8
  private http;
@@ -32,13 +33,13 @@ export declare class FrequencyService {
32
33
  frequencyDetails: object;
33
34
  private env;
34
35
  constructor(http: HttpClient, authService: AuthService, config?: Configurations);
35
- timeFrom12hTo24h(value: string): string | undefined;
36
- timeIn12(value: any): string | undefined;
36
+ timeFrom12hTo24h(value: string): string;
37
+ timeIn12(value: any): string;
37
38
  frameworkStartDate(row: any): number;
38
- frameworkFrequency(frequency: any, start_date: any): {
39
+ frameworkFrequency(frequency: any, start_date: any): "" | {
39
40
  frequency_pattern: string;
40
41
  continuous_failed_days: number;
41
- } | undefined;
42
+ };
42
43
  shortHand_freqCal(frequency: any, day: any, month: any, year?: any): {
43
44
  pattern: string;
44
45
  continuous_failed_days: number;
@@ -48,6 +49,8 @@ export declare class FrequencyService {
48
49
  getResponsibilityList(payload: any): Observable<any>;
49
50
  getResponsibilitiesCount(payload: any): Observable<any>;
50
51
  formatDate(): string;
52
+ setFrequencyObject(frequency: any): FrequencyObject | null;
53
+ repeatOptions(frequency: any): string;
51
54
  static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, { optional: true; }]>;
52
55
  static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
53
56
  }
@@ -268,7 +268,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
268
268
  * as a parameter.
269
269
  * @returns a boolean value.
270
270
  */
271
- submitResponsibility(): false | undefined;
271
+ submitResponsibility(): boolean;
272
272
  /**
273
273
  * If the responsibility name is empty, or the frequency is empty, or the assignees list is empty,
274
274
  * then return false. Otherwise, return true.
@@ -128,6 +128,7 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
128
128
  checkReportCasePermission(): void;
129
129
  userListEmitter(event: any): void;
130
130
  decideViewMoreOption(type?: boolean): void;
131
+ setWorkflowSelector(type?: boolean): void;
131
132
  caseReportedBy(event: any): void;
132
133
  submit(): void;
133
134
  editWorkflow(): void;
@@ -162,7 +162,6 @@ export declare class WorkflowProgramComponent implements OnInit {
162
162
  returnIds(list: any[], key: string): any[];
163
163
  refreshList(): void;
164
164
  removeRole(evt: any): void;
165
- setDefaultAssignee(evt: any): void;
166
165
  setDefaultAssigneeOnRemove(evt: any, type: any): void;
167
166
  setDefaultReviewer(evt: any): void;
168
167
  setDefaultOverseer(evt: any): void;
@@ -111,7 +111,7 @@ export declare class WorkflowRiskComponent implements OnInit {
111
111
  setPopupButtons(): void;
112
112
  getRiskDetails(riskId: any): void;
113
113
  populateOptionalFields(): void;
114
- setCategoryType(type: any): "compliance" | "others" | "strategic" | "operational";
114
+ setCategoryType(type: any): "strategic" | "operational" | "compliance" | "others";
115
115
  getRCList(): void;
116
116
  getCategoryList(): void;
117
117
  getOwnersList(): void;
@@ -84,6 +84,21 @@ export declare class ProgramsService {
84
84
  out_scope: any;
85
85
  }[];
86
86
  _id: any;
87
+ } | {
88
+ name: any;
89
+ type: string;
90
+ objective: any;
91
+ owners: {
92
+ admins: {
93
+ users: any;
94
+ userGroups: any;
95
+ };
96
+ managers: {
97
+ users: any;
98
+ userGroups: any;
99
+ };
100
+ };
101
+ "customFields?": any;
87
102
  };
88
103
  generateAssessment(assessment: any): any;
89
104
  getFramework(input: any): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "