@tagsamurai/fats-api-services 1.0.3-alpha.110 → 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 +68 -41
- package/api-services.system.js +68 -41
- package/package.json +1 -1
- package/src/dto/continuosImprovement.dto.d.ts +35 -24
- package/src/services/continuousImprovement.service.d.ts +25 -19
- package/src/services/opportunityRegister.service.d.ts +1 -2
- package/src/types/continuousImprovement.type.d.ts +40 -9
- package/src/types/opportunityRegister.type.d.ts +0 -4
package/api-services.es.js
CHANGED
|
@@ -2819,9 +2819,6 @@ const OpportunityRegisterServices = {
|
|
|
2819
2819
|
getOpportunityRegisterClosedListOptions: (params) => {
|
|
2820
2820
|
return API$3.get("/closed/options", { params });
|
|
2821
2821
|
},
|
|
2822
|
-
getOpportunityRegisterActiveDetail: (opportunityId) => {
|
|
2823
|
-
return API$3.get(`/active/${opportunityId}`);
|
|
2824
|
-
},
|
|
2825
2822
|
getOpportunityLogData: (opportunityId) => {
|
|
2826
2823
|
return API$3.get(`/${opportunityId}/log`);
|
|
2827
2824
|
},
|
|
@@ -2839,65 +2836,95 @@ const OpportunityRegisterServices = {
|
|
|
2839
2836
|
}
|
|
2840
2837
|
};
|
|
2841
2838
|
const API$2 = createAxiosInstance({
|
|
2842
|
-
prefix: "/
|
|
2839
|
+
prefix: "/planning-strategy/continuous-improvement"
|
|
2843
2840
|
});
|
|
2844
2841
|
const ContinuousImprovementServices = {
|
|
2845
|
-
|
|
2846
|
-
return API$2.
|
|
2847
|
-
},
|
|
2848
|
-
getLessonLearned: (params) => {
|
|
2849
|
-
return API$2.get("/lesson-learned", { params });
|
|
2842
|
+
getContiniuousImprovementLogActive: (params) => {
|
|
2843
|
+
return API$2.post("/continuous-improvement-log/active/list", { params });
|
|
2850
2844
|
},
|
|
2851
|
-
|
|
2852
|
-
return API$2.
|
|
2845
|
+
getLogActiveOptions: (params) => {
|
|
2846
|
+
return API$2.post("/continuous-improvement-log/active/options", { params });
|
|
2853
2847
|
},
|
|
2854
|
-
|
|
2855
|
-
return API$2.
|
|
2848
|
+
getContiniuousImprovementLogClosed: (params) => {
|
|
2849
|
+
return API$2.post("/continuous-improvement-log/closed/list", { params });
|
|
2856
2850
|
},
|
|
2857
|
-
|
|
2858
|
-
return API$2.
|
|
2851
|
+
getLogClosedOptions: (params) => {
|
|
2852
|
+
return API$2.post("/continuous-improvement-log/closed/options", { params });
|
|
2859
2853
|
},
|
|
2860
|
-
|
|
2861
|
-
return API$2.
|
|
2854
|
+
createContinuousImprovementLog: (data) => {
|
|
2855
|
+
return API$2.post("/continuous-improvement-log", data);
|
|
2862
2856
|
},
|
|
2863
|
-
|
|
2864
|
-
return API$2.
|
|
2857
|
+
editContinuousImprovementLog: (id, data) => {
|
|
2858
|
+
return API$2.patch(`/continuous-improvement-log/${id}`, data);
|
|
2865
2859
|
},
|
|
2866
|
-
|
|
2867
|
-
return API$2.
|
|
2860
|
+
cancelImprovement: (id, payload) => {
|
|
2861
|
+
return API$2.patch(`/continuous-improvement-log/${id}/cancel`, payload);
|
|
2868
2862
|
},
|
|
2869
|
-
|
|
2870
|
-
return API$2.
|
|
2863
|
+
reviewImprovement: (id, payload) => {
|
|
2864
|
+
return API$2.patch(`/continuous-improvement-log/${id}/review`, payload);
|
|
2871
2865
|
},
|
|
2872
|
-
|
|
2873
|
-
return API$2.post("/
|
|
2866
|
+
getLessonLearned: (params) => {
|
|
2867
|
+
return API$2.post("/lesson-learned/list", { params });
|
|
2874
2868
|
},
|
|
2875
|
-
|
|
2876
|
-
return API$2.
|
|
2869
|
+
getLessonLearnedOptions: (params) => {
|
|
2870
|
+
return API$2.post("/lesson-learned/options", { params });
|
|
2877
2871
|
},
|
|
2878
|
-
|
|
2872
|
+
createLessonLearned: (data) => {
|
|
2879
2873
|
return API$2.post("/lesson-learned", data);
|
|
2880
2874
|
},
|
|
2881
2875
|
editLessonLearned: (id, data) => {
|
|
2882
|
-
return API$2.
|
|
2876
|
+
return API$2.patch(`/lesson-learned/${id}`, data);
|
|
2883
2877
|
},
|
|
2884
|
-
|
|
2885
|
-
return API$2.
|
|
2878
|
+
archiveLessonLearned: (id, payload) => {
|
|
2879
|
+
return API$2.patch(`/lesson-learned/${id}/archive`, payload);
|
|
2886
2880
|
},
|
|
2887
|
-
|
|
2888
|
-
return API$2.
|
|
2881
|
+
restoreLessonLearned: (id, payload) => {
|
|
2882
|
+
return API$2.patch(`/lesson-learned/${id}/restore`, payload);
|
|
2889
2883
|
},
|
|
2890
|
-
|
|
2891
|
-
return API$2.
|
|
2884
|
+
getLessonLearnedLog: (id) => {
|
|
2885
|
+
return API$2.get(`/lesson-learned/${id}/log`);
|
|
2892
2886
|
},
|
|
2893
|
-
|
|
2894
|
-
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
|
+
});
|
|
2894
|
+
},
|
|
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);
|
|
2895
2905
|
},
|
|
2896
|
-
|
|
2897
|
-
return API$2.
|
|
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
|
+
);
|
|
2898
2925
|
},
|
|
2899
|
-
|
|
2900
|
-
return API$2.
|
|
2926
|
+
getAuditFindingCorrectiveActionLog: (id) => {
|
|
2927
|
+
return API$2.get(`/audit-finding-and-corrective-action/${id}/log`);
|
|
2901
2928
|
}
|
|
2902
2929
|
};
|
|
2903
2930
|
const API$1 = createAxiosInstance({ prefix: "/planning-strategy/amp" });
|
package/api-services.system.js
CHANGED
|
@@ -2827,9 +2827,6 @@ System.register(["axios"], function(exports, module) {
|
|
|
2827
2827
|
getOpportunityRegisterClosedListOptions: (params) => {
|
|
2828
2828
|
return API$3.get("/closed/options", { params });
|
|
2829
2829
|
},
|
|
2830
|
-
getOpportunityRegisterActiveDetail: (opportunityId) => {
|
|
2831
|
-
return API$3.get(`/active/${opportunityId}`);
|
|
2832
|
-
},
|
|
2833
2830
|
getOpportunityLogData: (opportunityId) => {
|
|
2834
2831
|
return API$3.get(`/${opportunityId}/log`);
|
|
2835
2832
|
},
|
|
@@ -2847,65 +2844,95 @@ System.register(["axios"], function(exports, module) {
|
|
|
2847
2844
|
}
|
|
2848
2845
|
});
|
|
2849
2846
|
const API$2 = createAxiosInstance({
|
|
2850
|
-
prefix: "/
|
|
2847
|
+
prefix: "/planning-strategy/continuous-improvement"
|
|
2851
2848
|
});
|
|
2852
2849
|
const ContinuousImprovementServices = exports("ContinuousImprovementServices", {
|
|
2853
|
-
|
|
2854
|
-
return API$2.
|
|
2855
|
-
},
|
|
2856
|
-
getLessonLearned: (params) => {
|
|
2857
|
-
return API$2.get("/lesson-learned", { params });
|
|
2850
|
+
getContiniuousImprovementLogActive: (params) => {
|
|
2851
|
+
return API$2.post("/continuous-improvement-log/active/list", { params });
|
|
2858
2852
|
},
|
|
2859
|
-
|
|
2860
|
-
return API$2.
|
|
2853
|
+
getLogActiveOptions: (params) => {
|
|
2854
|
+
return API$2.post("/continuous-improvement-log/active/options", { params });
|
|
2861
2855
|
},
|
|
2862
|
-
|
|
2863
|
-
return API$2.
|
|
2856
|
+
getContiniuousImprovementLogClosed: (params) => {
|
|
2857
|
+
return API$2.post("/continuous-improvement-log/closed/list", { params });
|
|
2864
2858
|
},
|
|
2865
|
-
|
|
2866
|
-
return API$2.
|
|
2859
|
+
getLogClosedOptions: (params) => {
|
|
2860
|
+
return API$2.post("/continuous-improvement-log/closed/options", { params });
|
|
2867
2861
|
},
|
|
2868
|
-
|
|
2869
|
-
return API$2.
|
|
2862
|
+
createContinuousImprovementLog: (data) => {
|
|
2863
|
+
return API$2.post("/continuous-improvement-log", data);
|
|
2870
2864
|
},
|
|
2871
|
-
|
|
2872
|
-
return API$2.
|
|
2865
|
+
editContinuousImprovementLog: (id, data) => {
|
|
2866
|
+
return API$2.patch(`/continuous-improvement-log/${id}`, data);
|
|
2873
2867
|
},
|
|
2874
|
-
|
|
2875
|
-
return API$2.
|
|
2868
|
+
cancelImprovement: (id, payload) => {
|
|
2869
|
+
return API$2.patch(`/continuous-improvement-log/${id}/cancel`, payload);
|
|
2876
2870
|
},
|
|
2877
|
-
|
|
2878
|
-
return API$2.
|
|
2871
|
+
reviewImprovement: (id, payload) => {
|
|
2872
|
+
return API$2.patch(`/continuous-improvement-log/${id}/review`, payload);
|
|
2879
2873
|
},
|
|
2880
|
-
|
|
2881
|
-
return API$2.post("/
|
|
2874
|
+
getLessonLearned: (params) => {
|
|
2875
|
+
return API$2.post("/lesson-learned/list", { params });
|
|
2882
2876
|
},
|
|
2883
|
-
|
|
2884
|
-
return API$2.
|
|
2877
|
+
getLessonLearnedOptions: (params) => {
|
|
2878
|
+
return API$2.post("/lesson-learned/options", { params });
|
|
2885
2879
|
},
|
|
2886
|
-
|
|
2880
|
+
createLessonLearned: (data) => {
|
|
2887
2881
|
return API$2.post("/lesson-learned", data);
|
|
2888
2882
|
},
|
|
2889
2883
|
editLessonLearned: (id, data) => {
|
|
2890
|
-
return API$2.
|
|
2884
|
+
return API$2.patch(`/lesson-learned/${id}`, data);
|
|
2891
2885
|
},
|
|
2892
|
-
|
|
2893
|
-
return API$2.
|
|
2886
|
+
archiveLessonLearned: (id, payload) => {
|
|
2887
|
+
return API$2.patch(`/lesson-learned/${id}/archive`, payload);
|
|
2894
2888
|
},
|
|
2895
|
-
|
|
2896
|
-
return API$2.
|
|
2889
|
+
restoreLessonLearned: (id, payload) => {
|
|
2890
|
+
return API$2.patch(`/lesson-learned/${id}/restore`, payload);
|
|
2897
2891
|
},
|
|
2898
|
-
|
|
2899
|
-
return API$2.
|
|
2892
|
+
getLessonLearnedLog: (id) => {
|
|
2893
|
+
return API$2.get(`/lesson-learned/${id}/log`);
|
|
2900
2894
|
},
|
|
2901
|
-
|
|
2902
|
-
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
|
+
});
|
|
2902
|
+
},
|
|
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);
|
|
2903
2913
|
},
|
|
2904
|
-
|
|
2905
|
-
return API$2.
|
|
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
|
+
);
|
|
2906
2933
|
},
|
|
2907
|
-
|
|
2908
|
-
return API$2.
|
|
2934
|
+
getAuditFindingCorrectiveActionLog: (id) => {
|
|
2935
|
+
return API$2.get(`/audit-finding-and-corrective-action/${id}/log`);
|
|
2909
2936
|
}
|
|
2910
2937
|
});
|
|
2911
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,13 +1,12 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { AddOpportunityBody, CancelOpportunityBody, EditOpportunityBody, GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams, ReviewOpportunityActionBody } from '../dto/opportunityRegister.dto';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse, FetchResponse, ShortFetchListResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { OpportunityLogData,
|
|
4
|
+
import { OpportunityLogData, OpportunityRegisterActiveList, OpportunityRegisterActiveListOptions, OpportunityRegisterClosedList, OpportunityRegisterClosedListOptions } from '../types/opportunityRegister.type';
|
|
5
5
|
declare const OpportunityRegisterServices: {
|
|
6
6
|
getOpportunityRegisterActiveList: (params: GetOpportunityRegisterActiveListQueryParams) => Promise<AxiosResponse<FetchListResponse<OpportunityRegisterActiveList>>>;
|
|
7
7
|
getOpportunityRegisterActiveListOptions: (params: GetOpportunityRegisterActiveListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveListOptions>>>;
|
|
8
8
|
getOpportunityRegisterClosedList: (params: GetOpportunityRegisterClosedListQueryParams) => Promise<AxiosResponse<FetchListResponse<OpportunityRegisterClosedList>>>;
|
|
9
9
|
getOpportunityRegisterClosedListOptions: (params: GetOpportunityRegisterClosedListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterClosedListOptions>>>;
|
|
10
|
-
getOpportunityRegisterActiveDetail: (opportunityId: string) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveDetail>>>;
|
|
11
10
|
getOpportunityLogData: (opportunityId: string) => Promise<AxiosResponse<ShortFetchListResponse<OpportunityLogData>>>;
|
|
12
11
|
editActiveOpportunity: (opportunityId: string, body: EditOpportunityBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
13
12
|
addActiveOpportunity: (body: AddOpportunityBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
@@ -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';
|
|
@@ -21,10 +21,6 @@ export type OpportunityRegisterActiveListOptions = {
|
|
|
21
21
|
statusOptions: Option[];
|
|
22
22
|
};
|
|
23
23
|
export type OpportunityRegisterClosedListOptions = OpportunityRegisterActiveListOptions;
|
|
24
|
-
export type OpportunityRegisterActiveDetail = OpportunityRegisterActiveList & {
|
|
25
|
-
proofDocument?: File;
|
|
26
|
-
note?: string;
|
|
27
|
-
};
|
|
28
24
|
export type OpportunityLogData = {
|
|
29
25
|
_id: string;
|
|
30
26
|
activity: string;
|