@tagsamurai/fats-api-services 1.0.3-alpha.96 → 1.0.3-alpha.97
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/package.json +1 -1
- package/src/types/samp.type.d.ts +10 -10
package/package.json
CHANGED
package/src/types/samp.type.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Option } from './options.type';
|
|
2
|
-
import { User } from './user.type';
|
|
3
2
|
export type RiskCategory = 'Operational' | 'Financial' | 'Compliance' | 'Safety' | 'Environment' | 'Technology';
|
|
4
3
|
export type RiskLevel = 'Low' | 'Medium' | 'High' | 'Critical';
|
|
5
4
|
export type RiskStatus = 'Waiting for Review' | 'In Progress' | 'Overdue' | 'Completed' | 'Canceled';
|
|
@@ -8,6 +7,10 @@ type Group = {
|
|
|
8
7
|
_id: string;
|
|
9
8
|
name: string;
|
|
10
9
|
};
|
|
10
|
+
type PIC = {
|
|
11
|
+
_id: string;
|
|
12
|
+
fullName: string;
|
|
13
|
+
};
|
|
11
14
|
type BaseSAMPType = {
|
|
12
15
|
_id: string;
|
|
13
16
|
sampId: string;
|
|
@@ -16,7 +19,7 @@ type BaseSAMPType = {
|
|
|
16
19
|
updatedAt: string;
|
|
17
20
|
};
|
|
18
21
|
export interface ActiveSAMPType extends BaseSAMPType {
|
|
19
|
-
|
|
22
|
+
group: Group[];
|
|
20
23
|
status: SAMPStatus;
|
|
21
24
|
planningStrategyPermission: {
|
|
22
25
|
create: boolean;
|
|
@@ -32,7 +35,7 @@ export interface PreviousVersionSAMPType extends BaseSAMPType {
|
|
|
32
35
|
export interface SAMPDetail {
|
|
33
36
|
_id: string;
|
|
34
37
|
name: string;
|
|
35
|
-
|
|
38
|
+
group: Group[];
|
|
36
39
|
status: SAMPStatus;
|
|
37
40
|
version: string;
|
|
38
41
|
modifiedBy: {
|
|
@@ -91,10 +94,7 @@ export interface AMObjectivesType {
|
|
|
91
94
|
kpiOrTarget: string;
|
|
92
95
|
measurementMethod: string;
|
|
93
96
|
timeline: string[];
|
|
94
|
-
pic:
|
|
95
|
-
_id: string;
|
|
96
|
-
fullName: string;
|
|
97
|
-
}[];
|
|
97
|
+
pic: PIC[];
|
|
98
98
|
}
|
|
99
99
|
export interface CreateAMObjectivesType {
|
|
100
100
|
objectives: string;
|
|
@@ -105,7 +105,7 @@ export interface CreateAMObjectivesType {
|
|
|
105
105
|
}
|
|
106
106
|
export interface RiskType {
|
|
107
107
|
_id: string;
|
|
108
|
-
|
|
108
|
+
risk: string;
|
|
109
109
|
cause: string;
|
|
110
110
|
impact: string;
|
|
111
111
|
category: RiskCategory;
|
|
@@ -114,7 +114,7 @@ export interface RiskType {
|
|
|
114
114
|
mitigation: string;
|
|
115
115
|
timeline: string[];
|
|
116
116
|
status: RiskStatus;
|
|
117
|
-
|
|
117
|
+
pic: PIC[];
|
|
118
118
|
lastModified: string;
|
|
119
119
|
}
|
|
120
120
|
export interface OpportunityType {
|
|
@@ -123,7 +123,7 @@ export interface OpportunityType {
|
|
|
123
123
|
benefit: string;
|
|
124
124
|
action: string;
|
|
125
125
|
timeline: string[];
|
|
126
|
-
|
|
126
|
+
pic: PIC[];
|
|
127
127
|
}
|
|
128
128
|
export interface CreateSAMP {
|
|
129
129
|
name: string;
|