@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.96",
3
+ "version": "1.0.3-alpha.97",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -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
- groups: Group[];
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
- groups: Group[];
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
- riskName: string;
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
- personInCharge: User;
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
- personInCharge: User;
126
+ pic: PIC[];
127
127
  }
128
128
  export interface CreateSAMP {
129
129
  name: string;