vcomply-workflow-engine 6.1.8 → 6.1.9

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.
@@ -57,6 +57,5 @@ export interface Responsibility {
57
57
  program: Program;
58
58
  grcObjectId: any[];
59
59
  assessmentId: string;
60
- assessment?: any;
61
60
  }
62
61
  export {};
@@ -0,0 +1,4 @@
1
+ export declare const MONTH_NAMES: {
2
+ value: number;
3
+ month: string;
4
+ }[];
@@ -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
- responsibilityId: null;
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.8",
3
+ "version": "6.1.9",
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 "