@tagsamurai/fats-api-services 1.0.3-alpha.111 → 1.0.3-alpha.112
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/api-services.es.js
CHANGED
|
@@ -2836,65 +2836,95 @@ const OpportunityRegisterServices = {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
};
|
|
2838
2838
|
const API$2 = createAxiosInstance({
|
|
2839
|
-
prefix: "/
|
|
2839
|
+
prefix: "/planning-strategy/continuous-improvement"
|
|
2840
2840
|
});
|
|
2841
2841
|
const ContinuousImprovementServices = {
|
|
2842
|
-
|
|
2843
|
-
return API$2.
|
|
2842
|
+
getContiniuousImprovementLogActive: (params) => {
|
|
2843
|
+
return API$2.post("/continuous-improvement-log/active/list", { params });
|
|
2844
2844
|
},
|
|
2845
|
-
|
|
2846
|
-
return API$2.
|
|
2847
|
-
},
|
|
2848
|
-
getAuditFindingsCorrectiveActions: (params) => {
|
|
2849
|
-
return API$2.get("/audit-findings", { params });
|
|
2845
|
+
getLogActiveOptions: (params) => {
|
|
2846
|
+
return API$2.post("/continuous-improvement-log/active/options", { params });
|
|
2850
2847
|
},
|
|
2851
|
-
|
|
2852
|
-
return API$2.
|
|
2848
|
+
getContiniuousImprovementLogClosed: (params) => {
|
|
2849
|
+
return API$2.post("/continuous-improvement-log/closed/list", { params });
|
|
2853
2850
|
},
|
|
2854
|
-
|
|
2855
|
-
return API$2.
|
|
2851
|
+
getLogClosedOptions: (params) => {
|
|
2852
|
+
return API$2.post("/continuous-improvement-log/closed/options", { params });
|
|
2856
2853
|
},
|
|
2857
|
-
|
|
2858
|
-
return API$2.
|
|
2854
|
+
createContinuousImprovementLog: (data) => {
|
|
2855
|
+
return API$2.post("/continuous-improvement-log", data);
|
|
2859
2856
|
},
|
|
2860
|
-
|
|
2861
|
-
return API$2.
|
|
2857
|
+
editContinuousImprovementLog: (id, data) => {
|
|
2858
|
+
return API$2.patch(`/continuous-improvement-log/${id}`, data);
|
|
2862
2859
|
},
|
|
2863
|
-
|
|
2864
|
-
return API$2.
|
|
2860
|
+
cancelImprovement: (id, payload) => {
|
|
2861
|
+
return API$2.patch(`/continuous-improvement-log/${id}/cancel`, payload);
|
|
2865
2862
|
},
|
|
2866
|
-
|
|
2867
|
-
return API$2.
|
|
2863
|
+
reviewImprovement: (id, payload) => {
|
|
2864
|
+
return API$2.patch(`/continuous-improvement-log/${id}/review`, payload);
|
|
2868
2865
|
},
|
|
2869
|
-
|
|
2870
|
-
return API$2.post("/
|
|
2866
|
+
getLessonLearned: (params) => {
|
|
2867
|
+
return API$2.post("/lesson-learned/list", { params });
|
|
2871
2868
|
},
|
|
2872
|
-
|
|
2873
|
-
return API$2.
|
|
2869
|
+
getLessonLearnedOptions: (params) => {
|
|
2870
|
+
return API$2.post("/lesson-learned/options", { params });
|
|
2874
2871
|
},
|
|
2875
|
-
|
|
2872
|
+
createLessonLearned: (data) => {
|
|
2876
2873
|
return API$2.post("/lesson-learned", data);
|
|
2877
2874
|
},
|
|
2878
2875
|
editLessonLearned: (id, data) => {
|
|
2879
|
-
return API$2.
|
|
2876
|
+
return API$2.patch(`/lesson-learned/${id}`, data);
|
|
2880
2877
|
},
|
|
2881
|
-
|
|
2882
|
-
return API$2.
|
|
2878
|
+
archiveLessonLearned: (id, payload) => {
|
|
2879
|
+
return API$2.patch(`/lesson-learned/${id}/archive`, payload);
|
|
2883
2880
|
},
|
|
2884
|
-
|
|
2885
|
-
return API$2.
|
|
2881
|
+
restoreLessonLearned: (id, payload) => {
|
|
2882
|
+
return API$2.patch(`/lesson-learned/${id}/restore`, payload);
|
|
2886
2883
|
},
|
|
2887
|
-
|
|
2888
|
-
return API$2.
|
|
2884
|
+
getLessonLearnedLog: (id) => {
|
|
2885
|
+
return API$2.get(`/lesson-learned/${id}/log`);
|
|
2889
2886
|
},
|
|
2890
|
-
|
|
2891
|
-
return API$2.
|
|
2887
|
+
getAuditFindingsCorrectiveActionsActive: (params) => {
|
|
2888
|
+
return API$2.post("/audit-findings/active/list", { params });
|
|
2889
|
+
},
|
|
2890
|
+
getAuditFindingActiveOptions: (params) => {
|
|
2891
|
+
return API$2.post("/audit-findings-and-corrective-actions/active/options", {
|
|
2892
|
+
params
|
|
2893
|
+
});
|
|
2892
2894
|
},
|
|
2893
|
-
|
|
2894
|
-
return API$2.
|
|
2895
|
+
getAuditFindingsCorrectiveActionsClosed: (params) => {
|
|
2896
|
+
return API$2.post("/audit-findings/closed/list", { params });
|
|
2897
|
+
},
|
|
2898
|
+
getAuditFindingClosedOptions: (params) => {
|
|
2899
|
+
return API$2.post("/audit-findings-and-corrective-actions/closed/options", {
|
|
2900
|
+
params
|
|
2901
|
+
});
|
|
2902
|
+
},
|
|
2903
|
+
createAuditFindingCorrectiveAction: (data) => {
|
|
2904
|
+
return API$2.post("/audit-finding-and-corrective-action", data);
|
|
2905
|
+
},
|
|
2906
|
+
editAuditFindingCorrectiveAction: (id, data) => {
|
|
2907
|
+
return API$2.patch(`/audit-finding-and-corrective-action/${id}`, data);
|
|
2908
|
+
},
|
|
2909
|
+
cancelAuditFindingCorrectiveAction: (id) => {
|
|
2910
|
+
return API$2.patch(`/audit-finding-and-corrective-action/${id}/cancel`);
|
|
2911
|
+
},
|
|
2912
|
+
reviewAuditFindingCorrectiveAction: (id, payload) => {
|
|
2913
|
+
return API$2.patch(
|
|
2914
|
+
`/audit-finding-and-corrective-action/${id}/review`,
|
|
2915
|
+
payload
|
|
2916
|
+
);
|
|
2917
|
+
},
|
|
2918
|
+
completeAuditFindingCorrectiveAction: (id, payload) => {
|
|
2919
|
+
const headers = { "Content-Type": "multipart/form-data" };
|
|
2920
|
+
return API$2.patch(
|
|
2921
|
+
`/audit-finding-and-corrective-action/${id}/complete`,
|
|
2922
|
+
payload,
|
|
2923
|
+
{ headers }
|
|
2924
|
+
);
|
|
2895
2925
|
},
|
|
2896
|
-
|
|
2897
|
-
return API$2.
|
|
2926
|
+
getAuditFindingCorrectiveActionLog: (id) => {
|
|
2927
|
+
return API$2.get(`/audit-finding-and-corrective-action/${id}/log`);
|
|
2898
2928
|
}
|
|
2899
2929
|
};
|
|
2900
2930
|
const API$1 = createAxiosInstance({ prefix: "/planning-strategy/amp" });
|
package/api-services.system.js
CHANGED
|
@@ -2844,65 +2844,95 @@ System.register(["axios"], function(exports, module) {
|
|
|
2844
2844
|
}
|
|
2845
2845
|
});
|
|
2846
2846
|
const API$2 = createAxiosInstance({
|
|
2847
|
-
prefix: "/
|
|
2847
|
+
prefix: "/planning-strategy/continuous-improvement"
|
|
2848
2848
|
});
|
|
2849
2849
|
const ContinuousImprovementServices = exports("ContinuousImprovementServices", {
|
|
2850
|
-
|
|
2851
|
-
return API$2.
|
|
2850
|
+
getContiniuousImprovementLogActive: (params) => {
|
|
2851
|
+
return API$2.post("/continuous-improvement-log/active/list", { params });
|
|
2852
2852
|
},
|
|
2853
|
-
|
|
2854
|
-
return API$2.
|
|
2855
|
-
},
|
|
2856
|
-
getAuditFindingsCorrectiveActions: (params) => {
|
|
2857
|
-
return API$2.get("/audit-findings", { params });
|
|
2853
|
+
getLogActiveOptions: (params) => {
|
|
2854
|
+
return API$2.post("/continuous-improvement-log/active/options", { params });
|
|
2858
2855
|
},
|
|
2859
|
-
|
|
2860
|
-
return API$2.
|
|
2856
|
+
getContiniuousImprovementLogClosed: (params) => {
|
|
2857
|
+
return API$2.post("/continuous-improvement-log/closed/list", { params });
|
|
2861
2858
|
},
|
|
2862
|
-
|
|
2863
|
-
return API$2.
|
|
2859
|
+
getLogClosedOptions: (params) => {
|
|
2860
|
+
return API$2.post("/continuous-improvement-log/closed/options", { params });
|
|
2864
2861
|
},
|
|
2865
|
-
|
|
2866
|
-
return API$2.
|
|
2862
|
+
createContinuousImprovementLog: (data) => {
|
|
2863
|
+
return API$2.post("/continuous-improvement-log", data);
|
|
2867
2864
|
},
|
|
2868
|
-
|
|
2869
|
-
return API$2.
|
|
2865
|
+
editContinuousImprovementLog: (id, data) => {
|
|
2866
|
+
return API$2.patch(`/continuous-improvement-log/${id}`, data);
|
|
2870
2867
|
},
|
|
2871
|
-
|
|
2872
|
-
return API$2.
|
|
2868
|
+
cancelImprovement: (id, payload) => {
|
|
2869
|
+
return API$2.patch(`/continuous-improvement-log/${id}/cancel`, payload);
|
|
2873
2870
|
},
|
|
2874
|
-
|
|
2875
|
-
return API$2.
|
|
2871
|
+
reviewImprovement: (id, payload) => {
|
|
2872
|
+
return API$2.patch(`/continuous-improvement-log/${id}/review`, payload);
|
|
2876
2873
|
},
|
|
2877
|
-
|
|
2878
|
-
return API$2.post("/
|
|
2874
|
+
getLessonLearned: (params) => {
|
|
2875
|
+
return API$2.post("/lesson-learned/list", { params });
|
|
2879
2876
|
},
|
|
2880
|
-
|
|
2881
|
-
return API$2.
|
|
2877
|
+
getLessonLearnedOptions: (params) => {
|
|
2878
|
+
return API$2.post("/lesson-learned/options", { params });
|
|
2882
2879
|
},
|
|
2883
|
-
|
|
2880
|
+
createLessonLearned: (data) => {
|
|
2884
2881
|
return API$2.post("/lesson-learned", data);
|
|
2885
2882
|
},
|
|
2886
2883
|
editLessonLearned: (id, data) => {
|
|
2887
|
-
return API$2.
|
|
2884
|
+
return API$2.patch(`/lesson-learned/${id}`, data);
|
|
2888
2885
|
},
|
|
2889
|
-
|
|
2890
|
-
return API$2.
|
|
2886
|
+
archiveLessonLearned: (id, payload) => {
|
|
2887
|
+
return API$2.patch(`/lesson-learned/${id}/archive`, payload);
|
|
2891
2888
|
},
|
|
2892
|
-
|
|
2893
|
-
return API$2.
|
|
2889
|
+
restoreLessonLearned: (id, payload) => {
|
|
2890
|
+
return API$2.patch(`/lesson-learned/${id}/restore`, payload);
|
|
2894
2891
|
},
|
|
2895
|
-
|
|
2896
|
-
return API$2.
|
|
2892
|
+
getLessonLearnedLog: (id) => {
|
|
2893
|
+
return API$2.get(`/lesson-learned/${id}/log`);
|
|
2897
2894
|
},
|
|
2898
|
-
|
|
2899
|
-
return API$2.
|
|
2895
|
+
getAuditFindingsCorrectiveActionsActive: (params) => {
|
|
2896
|
+
return API$2.post("/audit-findings/active/list", { params });
|
|
2897
|
+
},
|
|
2898
|
+
getAuditFindingActiveOptions: (params) => {
|
|
2899
|
+
return API$2.post("/audit-findings-and-corrective-actions/active/options", {
|
|
2900
|
+
params
|
|
2901
|
+
});
|
|
2900
2902
|
},
|
|
2901
|
-
|
|
2902
|
-
return API$2.
|
|
2903
|
+
getAuditFindingsCorrectiveActionsClosed: (params) => {
|
|
2904
|
+
return API$2.post("/audit-findings/closed/list", { params });
|
|
2905
|
+
},
|
|
2906
|
+
getAuditFindingClosedOptions: (params) => {
|
|
2907
|
+
return API$2.post("/audit-findings-and-corrective-actions/closed/options", {
|
|
2908
|
+
params
|
|
2909
|
+
});
|
|
2910
|
+
},
|
|
2911
|
+
createAuditFindingCorrectiveAction: (data) => {
|
|
2912
|
+
return API$2.post("/audit-finding-and-corrective-action", data);
|
|
2913
|
+
},
|
|
2914
|
+
editAuditFindingCorrectiveAction: (id, data) => {
|
|
2915
|
+
return API$2.patch(`/audit-finding-and-corrective-action/${id}`, data);
|
|
2916
|
+
},
|
|
2917
|
+
cancelAuditFindingCorrectiveAction: (id) => {
|
|
2918
|
+
return API$2.patch(`/audit-finding-and-corrective-action/${id}/cancel`);
|
|
2919
|
+
},
|
|
2920
|
+
reviewAuditFindingCorrectiveAction: (id, payload) => {
|
|
2921
|
+
return API$2.patch(
|
|
2922
|
+
`/audit-finding-and-corrective-action/${id}/review`,
|
|
2923
|
+
payload
|
|
2924
|
+
);
|
|
2925
|
+
},
|
|
2926
|
+
completeAuditFindingCorrectiveAction: (id, payload) => {
|
|
2927
|
+
const headers = { "Content-Type": "multipart/form-data" };
|
|
2928
|
+
return API$2.patch(
|
|
2929
|
+
`/audit-finding-and-corrective-action/${id}/complete`,
|
|
2930
|
+
payload,
|
|
2931
|
+
{ headers }
|
|
2932
|
+
);
|
|
2903
2933
|
},
|
|
2904
|
-
|
|
2905
|
-
return API$2.
|
|
2934
|
+
getAuditFindingCorrectiveActionLog: (id) => {
|
|
2935
|
+
return API$2.get(`/audit-finding-and-corrective-action/${id}/log`);
|
|
2906
2936
|
}
|
|
2907
2937
|
});
|
|
2908
2938
|
const API$1 = createAxiosInstance({ prefix: "/planning-strategy/amp" });
|
package/package.json
CHANGED
|
@@ -1,42 +1,49 @@
|
|
|
1
|
-
import { ActionType, ReviewType } from '../types/continuousImprovement.type';
|
|
2
1
|
import { QueryParams } from '../types/fetchResponse.type';
|
|
3
|
-
export interface
|
|
2
|
+
export interface BaseParams extends QueryParams {
|
|
4
3
|
page?: string;
|
|
5
4
|
limit?: string;
|
|
6
5
|
sortBy?: string;
|
|
7
6
|
sortOrder?: string;
|
|
8
7
|
search?: string;
|
|
8
|
+
column?: string[];
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface GetContinuousImprovementActiveLogParams extends BaseParams {
|
|
11
11
|
category?: string[];
|
|
12
12
|
pic?: string[];
|
|
13
|
+
targetDate?: number[];
|
|
13
14
|
status?: string[];
|
|
14
|
-
|
|
15
|
+
updatedAt?: number[];
|
|
16
|
+
}
|
|
17
|
+
export interface GetContinuousImprovementClosedLogParams extends BaseParams {
|
|
18
|
+
category?: string[];
|
|
19
|
+
pic?: string[];
|
|
15
20
|
targetDate?: number[];
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
status?: string[];
|
|
22
|
+
updatedAt?: number[];
|
|
23
|
+
completedData?: string[];
|
|
18
24
|
}
|
|
19
|
-
export interface GetLessonLearnedParams extends
|
|
25
|
+
export interface GetLessonLearnedParams extends BaseParams {
|
|
20
26
|
category?: string[];
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
status?: string;
|
|
28
|
+
updatedAt?: number[];
|
|
23
29
|
}
|
|
24
|
-
export interface GetAuditFindingParams extends
|
|
30
|
+
export interface GetAuditFindingParams extends BaseParams {
|
|
31
|
+
category?: string[];
|
|
25
32
|
pic?: string[];
|
|
26
|
-
status?: string[];
|
|
27
|
-
type?: 'active' | 'closed';
|
|
28
33
|
targetDate?: number[];
|
|
29
|
-
|
|
34
|
+
status?: string[];
|
|
35
|
+
updatedAt?: number[];
|
|
30
36
|
}
|
|
31
|
-
export interface
|
|
37
|
+
export interface ContinuousImprovementLogOptionsParams {
|
|
32
38
|
categoryOptions?: boolean;
|
|
33
39
|
picOptions?: boolean;
|
|
34
40
|
statusOptions?: boolean;
|
|
35
41
|
}
|
|
36
|
-
export interface
|
|
42
|
+
export interface LessonLearnedOptionsParams {
|
|
37
43
|
categoryOptions?: boolean;
|
|
44
|
+
status?: 'Archived' | 'Active';
|
|
38
45
|
}
|
|
39
|
-
export interface
|
|
46
|
+
export interface AuditFindingOptionsParams {
|
|
40
47
|
picOptions?: boolean;
|
|
41
48
|
statusOptions?: boolean;
|
|
42
49
|
}
|
|
@@ -51,6 +58,7 @@ export interface LessonLearnedPayload {
|
|
|
51
58
|
lesson: string;
|
|
52
59
|
category: string;
|
|
53
60
|
rootCause: string;
|
|
61
|
+
actionTaken: string;
|
|
54
62
|
expectedBenefit: string;
|
|
55
63
|
}
|
|
56
64
|
export interface AuditFindingPayload {
|
|
@@ -60,18 +68,21 @@ export interface AuditFindingPayload {
|
|
|
60
68
|
targetDate: number;
|
|
61
69
|
}
|
|
62
70
|
export interface CancelImprovementPayload {
|
|
63
|
-
|
|
71
|
+
notes?: string;
|
|
64
72
|
}
|
|
65
73
|
export interface ReviewImprovementPayload {
|
|
66
|
-
result: ReviewType;
|
|
67
|
-
note?: string;
|
|
68
74
|
targetDate?: number;
|
|
75
|
+
isVerified: boolean;
|
|
76
|
+
notes?: string;
|
|
69
77
|
}
|
|
70
78
|
export interface ReviewAuditFindingPayload {
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
isVerified?: boolean;
|
|
80
|
+
notes?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface ArchiveRestoreLessonLearnedStatusPayload {
|
|
83
|
+
notes?: string;
|
|
73
84
|
}
|
|
74
|
-
export interface
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
export interface CompleteAuditFindingCorrectiveActionPayload {
|
|
86
|
+
proofDocument?: File;
|
|
87
|
+
notes?: string;
|
|
77
88
|
}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload,
|
|
3
|
-
import { AuditFinding, ContinuousImprovement, LessonLearned } from '../types/continuousImprovement.type';
|
|
2
|
+
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload, AuditFindingOptionsParams, GetAuditFindingParams, ContinuousImprovementLogOptionsParams, GetContinuousImprovementActiveLogParams, GetContinuousImprovementClosedLogParams, LessonLearnedOptionsParams, GetLessonLearnedParams, LessonLearnedPayload, ReviewAuditFindingPayload, ReviewImprovementPayload, ArchiveRestoreLessonLearnedStatusPayload, CompleteAuditFindingCorrectiveActionPayload } from '../dto/continuosImprovement.dto';
|
|
3
|
+
import { AuditFinding, AuditFindingLog, ContinuousImprovement, LessonLearned, LessonLearnedLog } from '../types/continuousImprovement.type';
|
|
4
4
|
import { FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
|
|
5
5
|
declare const ContinuousImprovementServices: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
getLogFilterOptions: (params: GetContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
13
|
-
getLessonLearnedFilterOptions: (params: GetLessonLearnedOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
14
|
-
getAuditFindingFilterOptions: (params: GetAuditFindingOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
15
|
-
addLog: (data: ContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
16
|
-
editLog: (id: string, data: ContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
17
|
-
addLessonLearned: (data: LessonLearnedPayload) => Promise<AxiosResponse>;
|
|
18
|
-
editLessonLearned: (id: string, data: LessonLearnedPayload) => Promise<AxiosResponse>;
|
|
19
|
-
addAuditFinding: (data: AuditFindingPayload) => Promise<AxiosResponse>;
|
|
20
|
-
editAuditFinding: (id: string, data: AuditFindingPayload) => Promise<AxiosResponse>;
|
|
6
|
+
getContiniuousImprovementLogActive: (params: GetContinuousImprovementActiveLogParams) => Promise<AxiosResponse<FetchListResponse<ContinuousImprovement>>>;
|
|
7
|
+
getLogActiveOptions: (params: ContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<ContinuousImprovementLogOptionsParams>>>;
|
|
8
|
+
getContiniuousImprovementLogClosed: (params: GetContinuousImprovementClosedLogParams) => Promise<AxiosResponse<FetchListResponse<ContinuousImprovement>>>;
|
|
9
|
+
getLogClosedOptions: (params: ContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<ContinuousImprovementLogOptionsParams>>>;
|
|
10
|
+
createContinuousImprovementLog: (data: ContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
11
|
+
editContinuousImprovementLog: (id: string, data: ContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
21
12
|
cancelImprovement: (id: string, payload: CancelImprovementPayload) => Promise<AxiosResponse>;
|
|
22
13
|
reviewImprovement: (id: string, payload: ReviewImprovementPayload) => Promise<AxiosResponse>;
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
getLessonLearned: (params: GetLessonLearnedParams) => Promise<AxiosResponse<FetchListResponse<LessonLearned>>>;
|
|
15
|
+
getLessonLearnedOptions: (params: LessonLearnedOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<LessonLearnedOptionsParams>>>;
|
|
16
|
+
createLessonLearned: (data: LessonLearnedPayload) => Promise<AxiosResponse>;
|
|
17
|
+
editLessonLearned: (id: string, data: LessonLearnedPayload) => Promise<AxiosResponse>;
|
|
18
|
+
archiveLessonLearned: (id: string, payload: ArchiveRestoreLessonLearnedStatusPayload) => Promise<AxiosResponse>;
|
|
19
|
+
restoreLessonLearned: (id: string, payload: ArchiveRestoreLessonLearnedStatusPayload) => Promise<AxiosResponse>;
|
|
20
|
+
getLessonLearnedLog: (id: string) => Promise<AxiosResponse<FetchListResponse<LessonLearnedLog>>>;
|
|
21
|
+
getAuditFindingsCorrectiveActionsActive: (params: GetAuditFindingParams) => Promise<AxiosResponse<FetchListResponse<AuditFinding>>>;
|
|
22
|
+
getAuditFindingActiveOptions: (params: AuditFindingOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<AuditFindingOptionsParams>>>;
|
|
23
|
+
getAuditFindingsCorrectiveActionsClosed: (params: GetAuditFindingParams) => Promise<AxiosResponse<FetchListResponse<AuditFinding>>>;
|
|
24
|
+
getAuditFindingClosedOptions: (params: AuditFindingOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<AuditFindingOptionsParams>>>;
|
|
25
|
+
createAuditFindingCorrectiveAction: (data: AuditFindingPayload) => Promise<AxiosResponse>;
|
|
26
|
+
editAuditFindingCorrectiveAction: (id: string, data: AuditFindingPayload) => Promise<AxiosResponse>;
|
|
27
|
+
cancelAuditFindingCorrectiveAction: (id: string) => Promise<AxiosResponse>;
|
|
28
|
+
reviewAuditFindingCorrectiveAction: (id: string, payload: ReviewAuditFindingPayload) => Promise<AxiosResponse>;
|
|
29
|
+
completeAuditFindingCorrectiveAction: (id: string, payload: CompleteAuditFindingCorrectiveActionPayload) => Promise<AxiosResponse>;
|
|
30
|
+
getAuditFindingCorrectiveActionLog: (id: string) => Promise<AxiosResponse<FetchListResponse<AuditFindingLog>>>;
|
|
25
31
|
};
|
|
26
32
|
export default ContinuousImprovementServices;
|
|
@@ -1,32 +1,63 @@
|
|
|
1
1
|
export interface ContinuousImprovement {
|
|
2
|
+
_id: string;
|
|
2
3
|
improvementId: string;
|
|
3
4
|
improvement: string;
|
|
4
5
|
category: string;
|
|
5
6
|
expectedBenefit: string;
|
|
6
|
-
pic:
|
|
7
|
-
targetDate: string;
|
|
7
|
+
pic: Pic;
|
|
8
8
|
completedDate?: string;
|
|
9
|
+
targetDate: string;
|
|
9
10
|
status: Status;
|
|
10
|
-
|
|
11
|
+
updatedAt: string;
|
|
11
12
|
}
|
|
12
13
|
export interface LessonLearned {
|
|
14
|
+
_id: string;
|
|
13
15
|
lessonId: string;
|
|
14
16
|
lesson: string;
|
|
15
17
|
category: string;
|
|
16
18
|
rootCause: string;
|
|
17
|
-
section: string;
|
|
18
19
|
expectedBenefit: string;
|
|
19
|
-
|
|
20
|
+
updatedAt: string;
|
|
20
21
|
}
|
|
21
22
|
export interface AuditFinding {
|
|
23
|
+
_id: string;
|
|
22
24
|
findingId: string;
|
|
23
25
|
auditFinding: string;
|
|
24
26
|
correctiveAction: string;
|
|
25
|
-
pic:
|
|
27
|
+
pic: Pic;
|
|
26
28
|
targetDate: string;
|
|
27
29
|
status: Status;
|
|
28
|
-
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
}
|
|
32
|
+
export interface LessonLearnedLog {
|
|
33
|
+
_id: string;
|
|
34
|
+
activity: string;
|
|
35
|
+
userId: string;
|
|
36
|
+
userFullName: string;
|
|
37
|
+
notes: string;
|
|
38
|
+
lesson: string;
|
|
39
|
+
category: string;
|
|
40
|
+
rootCause: string;
|
|
41
|
+
actionTaken: string;
|
|
42
|
+
expectedBenefit: string;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
}
|
|
45
|
+
export interface AuditFindingLog {
|
|
46
|
+
_id: string;
|
|
47
|
+
activity: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
userFullName: string;
|
|
50
|
+
notes: string;
|
|
51
|
+
auditFinding: string;
|
|
52
|
+
correctiveAction: string;
|
|
53
|
+
pic: string;
|
|
54
|
+
targetDate: string;
|
|
55
|
+
proofDocumentFilePath: string;
|
|
56
|
+
proofDocumentFileName: string;
|
|
57
|
+
createdAt: string;
|
|
29
58
|
}
|
|
59
|
+
export type Pic = {
|
|
60
|
+
_id: string;
|
|
61
|
+
fullName: string;
|
|
62
|
+
};
|
|
30
63
|
export type Status = 'Waiting for Review' | 'In Progress' | 'Overdue' | 'Completed' | 'Canceled';
|
|
31
|
-
export type ReviewType = 'verify' | 'reopen';
|
|
32
|
-
export type ActionType = 'archive' | 'restore';
|