@tagsamurai/fats-api-services 1.0.3-alpha.65 → 1.0.3-alpha.67
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 +8 -2
- package/api-services.system.js +8 -2
- package/package.json +1 -1
- package/src/dto/continuosImprovement.dto.d.ts +5 -1
- package/src/dto/opportunityRegister.dto.d.ts +8 -0
- package/src/services/continuousImprovement.service.d.ts +3 -3
- package/src/services/opportunityRegister.service.d.ts +4 -2
package/api-services.es.js
CHANGED
|
@@ -2783,6 +2783,12 @@ const OpportunityRegisterServices = {
|
|
|
2783
2783
|
},
|
|
2784
2784
|
getOpportunityLogData: (opportunityId, params) => {
|
|
2785
2785
|
return API$1.get(`/opportunity-log/${opportunityId}`, { params });
|
|
2786
|
+
},
|
|
2787
|
+
editActiveOpportunity: (opportunityId, body) => {
|
|
2788
|
+
return API$1.put(`/active/${opportunityId}`, body);
|
|
2789
|
+
},
|
|
2790
|
+
addActiveOpportunity: (body) => {
|
|
2791
|
+
return API$1.post("/active", body);
|
|
2786
2792
|
}
|
|
2787
2793
|
};
|
|
2788
2794
|
const API = createAxiosInstance({
|
|
@@ -2840,8 +2846,8 @@ const ContinuousImprovementServices = {
|
|
|
2840
2846
|
reviewImprovement: (id, payload) => {
|
|
2841
2847
|
return API.put(`/review-improvement/${id}`, payload);
|
|
2842
2848
|
},
|
|
2843
|
-
updateLessonLearnedStatus: (id,
|
|
2844
|
-
return API.put(`/lesson-learned/status/${id}`,
|
|
2849
|
+
updateLessonLearnedStatus: (id, payload) => {
|
|
2850
|
+
return API.put(`/lesson-learned/status/${id}`, payload);
|
|
2845
2851
|
},
|
|
2846
2852
|
reviewAuditFinding: (id, payload) => {
|
|
2847
2853
|
return API.put(`/review-audit-finding/${id}`, payload);
|
package/api-services.system.js
CHANGED
|
@@ -2791,6 +2791,12 @@ System.register(["axios"], function(exports, module) {
|
|
|
2791
2791
|
},
|
|
2792
2792
|
getOpportunityLogData: (opportunityId, params) => {
|
|
2793
2793
|
return API$1.get(`/opportunity-log/${opportunityId}`, { params });
|
|
2794
|
+
},
|
|
2795
|
+
editActiveOpportunity: (opportunityId, body) => {
|
|
2796
|
+
return API$1.put(`/active/${opportunityId}`, body);
|
|
2797
|
+
},
|
|
2798
|
+
addActiveOpportunity: (body) => {
|
|
2799
|
+
return API$1.post("/active", body);
|
|
2794
2800
|
}
|
|
2795
2801
|
});
|
|
2796
2802
|
const API = createAxiosInstance({
|
|
@@ -2848,8 +2854,8 @@ System.register(["axios"], function(exports, module) {
|
|
|
2848
2854
|
reviewImprovement: (id, payload) => {
|
|
2849
2855
|
return API.put(`/review-improvement/${id}`, payload);
|
|
2850
2856
|
},
|
|
2851
|
-
updateLessonLearnedStatus: (id,
|
|
2852
|
-
return API.put(`/lesson-learned/status/${id}`,
|
|
2857
|
+
updateLessonLearnedStatus: (id, payload) => {
|
|
2858
|
+
return API.put(`/lesson-learned/status/${id}`, payload);
|
|
2853
2859
|
},
|
|
2854
2860
|
reviewAuditFinding: (id, payload) => {
|
|
2855
2861
|
return API.put(`/review-audit-finding/${id}`, payload);
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReviewType } from '../types/continuousImprovement.type';
|
|
1
|
+
import { ActionType, ReviewType } from '../types/continuousImprovement.type';
|
|
2
2
|
import { QueryParams } from '../types/fetchResponse.type';
|
|
3
3
|
export interface GetContinuousImprovementParams extends QueryParams {
|
|
4
4
|
page?: string;
|
|
@@ -71,3 +71,7 @@ export interface ReviewAuditFindingPayload {
|
|
|
71
71
|
result: ReviewType;
|
|
72
72
|
note?: string;
|
|
73
73
|
}
|
|
74
|
+
export interface updateLessonLearnedStatusPayload {
|
|
75
|
+
action: ActionType;
|
|
76
|
+
note?: string;
|
|
77
|
+
}
|
|
@@ -15,3 +15,11 @@ export type GetOpportunityRegisterClosedListOptionsQueryParams = GetOpportunityR
|
|
|
15
15
|
export type GetOpportunityLogDataQueryParams = {
|
|
16
16
|
page?: number;
|
|
17
17
|
};
|
|
18
|
+
export type AddOpportunityBody = {
|
|
19
|
+
opportunity: string;
|
|
20
|
+
benefit: string;
|
|
21
|
+
action: string;
|
|
22
|
+
targetDate: string;
|
|
23
|
+
pic: string;
|
|
24
|
+
};
|
|
25
|
+
export type EditOpportunityBody = AddOpportunityBody;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload, GetAuditFindingOptionsParams, GetAuditFindingParams, GetContinuousImprovementLogOptionsParams, GetContinuousImprovementLogParams, GetLessonLearnedParams, LessonLearnedPayload, ReviewAuditFindingPayload, ReviewImprovementPayload } from '../dto/continuosImprovement.dto';
|
|
3
|
-
import {
|
|
2
|
+
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload, GetAuditFindingOptionsParams, GetAuditFindingParams, GetContinuousImprovementLogOptionsParams, GetContinuousImprovementLogParams, GetLessonLearnedParams, LessonLearnedPayload, ReviewAuditFindingPayload, ReviewImprovementPayload, updateLessonLearnedStatusPayload } from '../dto/continuosImprovement.dto';
|
|
3
|
+
import { AuditFinding, ContinuousImprovement, LessonLearned } from '../types/continuousImprovement.type';
|
|
4
4
|
import { FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
|
|
5
5
|
declare const ContinuousImprovementServices: {
|
|
6
6
|
getContiniuousImprovementLogs: (params: GetContinuousImprovementLogParams) => Promise<AxiosResponse<FetchListResponse<ContinuousImprovement>>>;
|
|
@@ -20,7 +20,7 @@ declare const ContinuousImprovementServices: {
|
|
|
20
20
|
editAuditFinding: (id: string, data: AuditFindingPayload) => Promise<AxiosResponse>;
|
|
21
21
|
cancelImprovement: (id: string, payload: CancelImprovementPayload) => Promise<AxiosResponse>;
|
|
22
22
|
reviewImprovement: (id: string, payload: ReviewImprovementPayload) => Promise<AxiosResponse>;
|
|
23
|
-
updateLessonLearnedStatus: (id: string,
|
|
23
|
+
updateLessonLearnedStatus: (id: string, payload: updateLessonLearnedStatusPayload) => Promise<AxiosResponse>;
|
|
24
24
|
reviewAuditFinding: (id: string, payload: ReviewAuditFindingPayload) => Promise<AxiosResponse>;
|
|
25
25
|
};
|
|
26
26
|
export default ContinuousImprovementServices;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { GetOpportunityLogDataQueryParams, GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams } from '../dto/opportunityRegister.dto';
|
|
3
|
-
import { FetchDetailResponse, FetchListResponse, ShortFetchListExtendResponse } from '../types/fetchResponse.type';
|
|
2
|
+
import { AddOpportunityBody, EditOpportunityBody, GetOpportunityLogDataQueryParams, GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams } from '../dto/opportunityRegister.dto';
|
|
3
|
+
import { FetchDetailResponse, FetchListResponse, ShortFetchListExtendResponse, StatusMessageResponse } from '../types/fetchResponse.type';
|
|
4
4
|
import { OpportunityLogData, OpportunityLogDataDetail, OpportunityRegisterActiveDetail, OpportunityRegisterActiveList, OpportunityRegisterActiveListOptions, OpportunityRegisterClosedList, OpportunityRegisterClosedListOptions } from '../types/opportunityRegister.type';
|
|
5
5
|
declare const OpportunityRegisterServices: {
|
|
6
6
|
getOpportunityRegisterActiveList: (params: GetOpportunityRegisterActiveListQueryParams) => Promise<AxiosResponse<FetchListResponse<OpportunityRegisterActiveList>>>;
|
|
@@ -9,5 +9,7 @@ declare const OpportunityRegisterServices: {
|
|
|
9
9
|
getOpportunityRegisterClosedListOptions: (params: GetOpportunityRegisterClosedListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterClosedListOptions>>>;
|
|
10
10
|
getOpportunityRegisterActiveDetail: (opportunityId: string) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveDetail>>>;
|
|
11
11
|
getOpportunityLogData: (opportunityId: string, params: GetOpportunityLogDataQueryParams) => Promise<AxiosResponse<ShortFetchListExtendResponse<OpportunityLogData, OpportunityLogDataDetail>>>;
|
|
12
|
+
editActiveOpportunity: (opportunityId: string, body: EditOpportunityBody) => Promise<AxiosResponse<StatusMessageResponse>>;
|
|
13
|
+
addActiveOpportunity: (body: AddOpportunityBody) => Promise<AxiosResponse<StatusMessageResponse>>;
|
|
12
14
|
};
|
|
13
15
|
export default OpportunityRegisterServices;
|