vcomply-workflow-engine 6.1.8 → 6.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +18 -14
- package/esm2022/lib/sharedComponents/frequency/frequency.constant.mjs +12 -0
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +22 -15
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +2 -2
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +24 -34
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +2 -2
- package/esm2022/lib/workflow-services/responsibility.service.mjs +2 -9
- package/fesm2022/vcomply-workflow-engine.mjs +76 -71
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/interfaces/responsibilty.interface.d.ts +0 -1
- package/lib/sharedComponents/frequency/frequency.constant.d.ts +4 -0
- package/lib/sharedComponents/frequency/frequency.service.d.ts +17 -0
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +15 -0
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -1
- package/lib/workflow-services/responsibility.service.d.ts +2 -50
- package/package.json +1 -1
|
@@ -137,6 +137,23 @@ export declare class FrequencyService {
|
|
|
137
137
|
* ```
|
|
138
138
|
*/
|
|
139
139
|
formatDateString(dateString: string): string;
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves the name of a month based on its numerical value.
|
|
142
|
+
*
|
|
143
|
+
* @param {number} month - The month number (1-12) where:
|
|
144
|
+
* 1 = January
|
|
145
|
+
* 2 = February
|
|
146
|
+
* ...
|
|
147
|
+
* 12 = December
|
|
148
|
+
*
|
|
149
|
+
* @returns {string | undefined} The name of the month (e.g., "JAN", "FEB", etc.) or undefined if the month number is invalid
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* getMonthName(1) // Returns: "Jan"
|
|
153
|
+
* getMonthName(12) // Returns: "Dec"
|
|
154
|
+
* getMonthName(13) // Returns: undefined
|
|
155
|
+
*/
|
|
156
|
+
getMonthName(selectedMonth: number): string | undefined;
|
|
140
157
|
static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, null, { optional: true; }]>;
|
|
141
158
|
static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
|
|
142
159
|
}
|
|
@@ -420,6 +420,21 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
420
420
|
* @param {any} frequencyTime - "10:00 AM"
|
|
421
421
|
*/
|
|
422
422
|
getYearlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
423
|
+
/**
|
|
424
|
+
* Generates a placeholder string for one-time frequency events.
|
|
425
|
+
*
|
|
426
|
+
* @param {any} frequencyDetails - Array containing frequency details where:
|
|
427
|
+
* - frequencyDetails[3]: Day of the month
|
|
428
|
+
* - frequencyDetails[2]: Month number (1-12)
|
|
429
|
+
* - frequencyDetails[1]: Year
|
|
430
|
+
* @param {any} frequencyTime - Time string in format 'HH:mm' (e.g. '09:00')
|
|
431
|
+
*
|
|
432
|
+
* @example
|
|
433
|
+
* // For January 15, 2024 at 09:00 AM
|
|
434
|
+
* getOneTimePlaceholder([null, 2024, 1, 15], '09:00 am')
|
|
435
|
+
* // Returns: "One Time 15 January 2024 by 09:00 AM"
|
|
436
|
+
*/
|
|
437
|
+
getOneTimePlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
423
438
|
/**
|
|
424
439
|
* It takes a frequencyDetails array and a frequencyTime array and returns a string.
|
|
425
440
|
* @param {any} frequencyDetails - [4,1,1,1]
|
|
@@ -49,7 +49,7 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
49
49
|
moveToRegisterMode: string;
|
|
50
50
|
workflowDetails: any;
|
|
51
51
|
reponsibilityData: {
|
|
52
|
-
|
|
52
|
+
rid: null;
|
|
53
53
|
responsibilityName: string;
|
|
54
54
|
rcId: null;
|
|
55
55
|
dueDateId: string;
|
|
@@ -3,6 +3,7 @@ import { Configurations } from '../configurations';
|
|
|
3
3
|
import { AuthService } from './auth.service';
|
|
4
4
|
import { AssessmentList } from '../sharedComponents/assessment-list/service/assessment.interface';
|
|
5
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
+
import { Responsibility } from '../interfaces/responsibilty.interface';
|
|
6
7
|
import { GrcService } from '../workflow/shared/services/grc.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ResponsibilityService {
|
|
@@ -56,56 +57,7 @@ export declare class ResponsibilityService {
|
|
|
56
57
|
getGRCObjectDetails(id: string): Observable<any[]>;
|
|
57
58
|
addGRCObject(payload: any): Observable<any[]>;
|
|
58
59
|
updateGRCObject(payload: any, _id: string): Observable<any[]>;
|
|
59
|
-
buildResponsibilityPayload(event: any):
|
|
60
|
-
title: any;
|
|
61
|
-
key: any;
|
|
62
|
-
riskClass: any;
|
|
63
|
-
notes: any;
|
|
64
|
-
objective: any;
|
|
65
|
-
frequency: any;
|
|
66
|
-
assignor: any;
|
|
67
|
-
assessment: undefined;
|
|
68
|
-
assignee: {
|
|
69
|
-
type: string;
|
|
70
|
-
userId: any;
|
|
71
|
-
userGroupId: any;
|
|
72
|
-
};
|
|
73
|
-
responsibilityCenter: {
|
|
74
|
-
type: string;
|
|
75
|
-
id: any;
|
|
76
|
-
} | undefined;
|
|
77
|
-
reviewer: {
|
|
78
|
-
type: string;
|
|
79
|
-
userId: any;
|
|
80
|
-
frequency: {
|
|
81
|
-
completeBy: any;
|
|
82
|
-
endAfter: any;
|
|
83
|
-
};
|
|
84
|
-
} | undefined;
|
|
85
|
-
overseer: {
|
|
86
|
-
success: {
|
|
87
|
-
userId: any;
|
|
88
|
-
userGroupId: any;
|
|
89
|
-
};
|
|
90
|
-
fail: {
|
|
91
|
-
userId: any;
|
|
92
|
-
userGroupId: any;
|
|
93
|
-
};
|
|
94
|
-
} | undefined;
|
|
95
|
-
evidence: {
|
|
96
|
-
required: any;
|
|
97
|
-
format: {
|
|
98
|
-
type: string;
|
|
99
|
-
data: any;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
program: {
|
|
103
|
-
id: any;
|
|
104
|
-
tags: any;
|
|
105
|
-
};
|
|
106
|
-
grcObjectId: any;
|
|
107
|
-
assessmentId: undefined;
|
|
108
|
-
};
|
|
60
|
+
buildResponsibilityPayload(event: any): Responsibility | null;
|
|
109
61
|
getOverseer(event: any): {
|
|
110
62
|
success: {
|
|
111
63
|
userId: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vcomply-workflow-engine",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.10",
|
|
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 "
|