@tagsamurai/fats-api-services 1.0.3-alpha.113 → 1.0.3-alpha.115
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
|
@@ -2839,18 +2839,21 @@ const API$2 = createAxiosInstance({
|
|
|
2839
2839
|
prefix: "/planning-strategy/continuous-improvement"
|
|
2840
2840
|
});
|
|
2841
2841
|
const ContinuousImprovementServices = {
|
|
2842
|
-
|
|
2842
|
+
getContinuousImprovementActive: (params) => {
|
|
2843
2843
|
return API$2.post("/continuous-improvement-log/active/list", { params });
|
|
2844
2844
|
},
|
|
2845
|
-
|
|
2845
|
+
getContinuousImprovementActiveOptions: (params) => {
|
|
2846
2846
|
return API$2.post("/continuous-improvement-log/active/options", { params });
|
|
2847
2847
|
},
|
|
2848
|
-
|
|
2848
|
+
getContinuousImprovementClosed: (params) => {
|
|
2849
2849
|
return API$2.post("/continuous-improvement-log/closed/list", { params });
|
|
2850
2850
|
},
|
|
2851
|
-
|
|
2851
|
+
getContinuousImprovementClosedOptions: (params) => {
|
|
2852
2852
|
return API$2.post("/continuous-improvement-log/closed/options", { params });
|
|
2853
2853
|
},
|
|
2854
|
+
getContinuousImprovementLog: (id) => {
|
|
2855
|
+
return API$2.get(`/continuous-improvement-log/${id}/log`);
|
|
2856
|
+
},
|
|
2854
2857
|
createContinuousImprovementLog: (data) => {
|
|
2855
2858
|
return API$2.post("/continuous-improvement-log", data);
|
|
2856
2859
|
},
|
|
@@ -2863,6 +2866,10 @@ const ContinuousImprovementServices = {
|
|
|
2863
2866
|
reviewImprovement: (id, payload) => {
|
|
2864
2867
|
return API$2.patch(`/continuous-improvement-log/${id}/review`, payload);
|
|
2865
2868
|
},
|
|
2869
|
+
completeImprovement: (id, payload) => {
|
|
2870
|
+
const headers = { "Content-Type": "multipart/form-data" };
|
|
2871
|
+
return API$2.patch(`/continuous-improvement-log/${id}/complete`, { headers });
|
|
2872
|
+
},
|
|
2866
2873
|
getLessonLearned: (params) => {
|
|
2867
2874
|
return API$2.post("/lesson-learned/list", { params });
|
|
2868
2875
|
},
|
package/api-services.system.js
CHANGED
|
@@ -2847,18 +2847,21 @@ System.register(["axios"], function(exports, module) {
|
|
|
2847
2847
|
prefix: "/planning-strategy/continuous-improvement"
|
|
2848
2848
|
});
|
|
2849
2849
|
const ContinuousImprovementServices = exports("ContinuousImprovementServices", {
|
|
2850
|
-
|
|
2850
|
+
getContinuousImprovementActive: (params) => {
|
|
2851
2851
|
return API$2.post("/continuous-improvement-log/active/list", { params });
|
|
2852
2852
|
},
|
|
2853
|
-
|
|
2853
|
+
getContinuousImprovementActiveOptions: (params) => {
|
|
2854
2854
|
return API$2.post("/continuous-improvement-log/active/options", { params });
|
|
2855
2855
|
},
|
|
2856
|
-
|
|
2856
|
+
getContinuousImprovementClosed: (params) => {
|
|
2857
2857
|
return API$2.post("/continuous-improvement-log/closed/list", { params });
|
|
2858
2858
|
},
|
|
2859
|
-
|
|
2859
|
+
getContinuousImprovementClosedOptions: (params) => {
|
|
2860
2860
|
return API$2.post("/continuous-improvement-log/closed/options", { params });
|
|
2861
2861
|
},
|
|
2862
|
+
getContinuousImprovementLog: (id) => {
|
|
2863
|
+
return API$2.get(`/continuous-improvement-log/${id}/log`);
|
|
2864
|
+
},
|
|
2862
2865
|
createContinuousImprovementLog: (data) => {
|
|
2863
2866
|
return API$2.post("/continuous-improvement-log", data);
|
|
2864
2867
|
},
|
|
@@ -2871,6 +2874,10 @@ System.register(["axios"], function(exports, module) {
|
|
|
2871
2874
|
reviewImprovement: (id, payload) => {
|
|
2872
2875
|
return API$2.patch(`/continuous-improvement-log/${id}/review`, payload);
|
|
2873
2876
|
},
|
|
2877
|
+
completeImprovement: (id, payload) => {
|
|
2878
|
+
const headers = { "Content-Type": "multipart/form-data" };
|
|
2879
|
+
return API$2.patch(`/continuous-improvement-log/${id}/complete`, { headers });
|
|
2880
|
+
},
|
|
2874
2881
|
getLessonLearned: (params) => {
|
|
2875
2882
|
return API$2.post("/lesson-learned/list", { params });
|
|
2876
2883
|
},
|
package/package.json
CHANGED
|
@@ -82,6 +82,10 @@ export interface ReviewAuditFindingPayload {
|
|
|
82
82
|
export interface ArchiveRestoreLessonLearnedStatusPayload {
|
|
83
83
|
notes?: string;
|
|
84
84
|
}
|
|
85
|
+
export interface CompleteContinuousImprovementLogPayload {
|
|
86
|
+
proofDocument?: File;
|
|
87
|
+
notes?: string;
|
|
88
|
+
}
|
|
85
89
|
export interface CompleteAuditFindingCorrectiveActionPayload {
|
|
86
90
|
proofDocument?: File;
|
|
87
91
|
notes?: string;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload, AuditFindingOptionsParams, GetAuditFindingParams, ContinuousImprovementLogOptionsParams, GetContinuousImprovementActiveLogParams, GetContinuousImprovementClosedLogParams, LessonLearnedOptionsParams, GetLessonLearnedParams, LessonLearnedPayload, ReviewAuditFindingPayload, ReviewImprovementPayload, ArchiveRestoreLessonLearnedStatusPayload, CompleteAuditFindingCorrectiveActionPayload } from '../dto/continuosImprovement.dto';
|
|
2
|
+
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload, AuditFindingOptionsParams, GetAuditFindingParams, ContinuousImprovementLogOptionsParams, GetContinuousImprovementActiveLogParams, GetContinuousImprovementClosedLogParams, LessonLearnedOptionsParams, GetLessonLearnedParams, LessonLearnedPayload, ReviewAuditFindingPayload, ReviewImprovementPayload, ArchiveRestoreLessonLearnedStatusPayload, CompleteAuditFindingCorrectiveActionPayload, CompleteContinuousImprovementLogPayload } from '../dto/continuosImprovement.dto';
|
|
3
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
|
-
|
|
6
|
+
getContinuousImprovementActive: (params: GetContinuousImprovementActiveLogParams) => Promise<AxiosResponse<FetchListResponse<ContinuousImprovement>>>;
|
|
7
|
+
getContinuousImprovementActiveOptions: (params: ContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<ContinuousImprovementLogOptionsParams>>>;
|
|
8
|
+
getContinuousImprovementClosed: (params: GetContinuousImprovementClosedLogParams) => Promise<AxiosResponse<FetchListResponse<ContinuousImprovement>>>;
|
|
9
|
+
getContinuousImprovementClosedOptions: (params: ContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<ContinuousImprovementLogOptionsParams>>>;
|
|
10
|
+
getContinuousImprovementLog: (id: string) => Promise<AxiosResponse<ContinuousImprovement>>;
|
|
10
11
|
createContinuousImprovementLog: (data: ContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
11
12
|
editContinuousImprovementLog: (id: string, data: ContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
12
13
|
cancelImprovement: (id: string, payload: CancelImprovementPayload) => Promise<AxiosResponse>;
|
|
13
14
|
reviewImprovement: (id: string, payload: ReviewImprovementPayload) => Promise<AxiosResponse>;
|
|
15
|
+
completeImprovement: (id: string, payload: CompleteContinuousImprovementLogPayload) => Promise<AxiosResponse>;
|
|
14
16
|
getLessonLearned: (params: GetLessonLearnedParams) => Promise<AxiosResponse<FetchListResponse<LessonLearned>>>;
|
|
15
17
|
getLessonLearnedOptions: (params: LessonLearnedOptionsParams) => Promise<AxiosResponse<FetchOptionResponse<LessonLearnedOptionsParams>>>;
|
|
16
18
|
createLessonLearned: (data: LessonLearnedPayload) => Promise<AxiosResponse>;
|
|
@@ -30,6 +30,21 @@ export interface AuditFinding {
|
|
|
30
30
|
status: Status;
|
|
31
31
|
updatedAt: string;
|
|
32
32
|
}
|
|
33
|
+
export interface ContinuousImprovementLog {
|
|
34
|
+
_id: string;
|
|
35
|
+
activity: string;
|
|
36
|
+
userId: string;
|
|
37
|
+
userFullName: string;
|
|
38
|
+
notes: string;
|
|
39
|
+
improvement: string;
|
|
40
|
+
category: string;
|
|
41
|
+
expectedBenefit: string;
|
|
42
|
+
pic: string;
|
|
43
|
+
targetDate: string;
|
|
44
|
+
proofDocumentFilePath?: string;
|
|
45
|
+
proofDocumentFileName?: string;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
}
|
|
33
48
|
export interface LessonLearnedLog {
|
|
34
49
|
_id: string;
|
|
35
50
|
activity: string;
|