@tagsamurai/fats-api-services 1.0.3-alpha.59 → 1.0.3-alpha.60
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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ReviewType } from '../types/continuousImprovement.type';
|
|
2
|
+
import { QueryParams } from '../types/fetchResponse.type';
|
|
3
|
+
export interface GetContinuousImprovementParams extends QueryParams {
|
|
4
|
+
page?: string;
|
|
5
|
+
limit?: string;
|
|
6
|
+
sortBy?: string;
|
|
7
|
+
sortOrder?: string;
|
|
8
|
+
search?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetContinuousImprovementLogParams extends GetContinuousImprovementParams {
|
|
11
|
+
category?: string[];
|
|
12
|
+
pic?: string[];
|
|
13
|
+
status?: string[];
|
|
14
|
+
type?: 'active' | 'closed';
|
|
15
|
+
targetDate?: number[];
|
|
16
|
+
lastModified?: number[];
|
|
17
|
+
completedDate?: number[];
|
|
18
|
+
}
|
|
19
|
+
export interface GetLessonLearnedParams extends GetContinuousImprovementParams {
|
|
20
|
+
category?: string[];
|
|
21
|
+
type?: 'active' | 'archived';
|
|
22
|
+
lastModified?: number[];
|
|
23
|
+
}
|
|
24
|
+
export interface GetAuditFindingParams extends GetContinuousImprovementParams {
|
|
25
|
+
pic?: string[];
|
|
26
|
+
status?: string[];
|
|
27
|
+
type?: 'active' | 'closed';
|
|
28
|
+
targetDate?: number[];
|
|
29
|
+
lastModified?: number[];
|
|
30
|
+
}
|
|
31
|
+
export interface GetContinuousImprovementLogOptionsParams {
|
|
32
|
+
categoryOptions?: boolean;
|
|
33
|
+
picOptions?: boolean;
|
|
34
|
+
statusOptions?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface GetLessonLearnedOptionsParams {
|
|
37
|
+
categoryOptions?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface GetAuditFindingOptionsParams {
|
|
40
|
+
picOptions?: boolean;
|
|
41
|
+
statusOptions?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface ContinuousImprovementLogPayload {
|
|
44
|
+
improvement: string;
|
|
45
|
+
category: string;
|
|
46
|
+
expectedBenefit: string;
|
|
47
|
+
pic: string;
|
|
48
|
+
targetDate: number;
|
|
49
|
+
}
|
|
50
|
+
export interface LessonLearnedPayload {
|
|
51
|
+
lesson: string;
|
|
52
|
+
category: string;
|
|
53
|
+
rootCause: string;
|
|
54
|
+
expectedBenefit: string;
|
|
55
|
+
}
|
|
56
|
+
export interface AuditFindingPayload {
|
|
57
|
+
auditFinding: string;
|
|
58
|
+
correctiveAction: string;
|
|
59
|
+
pic: string;
|
|
60
|
+
targetDate: number;
|
|
61
|
+
}
|
|
62
|
+
export interface CancelImprovementPayload {
|
|
63
|
+
note: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ReviewImprovementPayload {
|
|
66
|
+
result: ReviewType;
|
|
67
|
+
note?: string;
|
|
68
|
+
targetDate?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface ReviewAuditFindingPayload {
|
|
71
|
+
result: ReviewType;
|
|
72
|
+
note?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
import { AuditFindingPayload, CancelImprovementPayload, ContinuousImprovementLogPayload, GetAuditFindingParams, GetContinuousImprovementLogOptionsParams, GetContinuousImprovementLogParams, GetLessonLearnedParams, LessonLearnedPayload, ReviewAuditFindingPayload, ReviewImprovementPayload } from '../dto/continuosImprovement.dto';
|
|
3
|
+
import { ActionType, AuditFinding, ContinuousImprovement, LessonLearned } from '../types/continuousImprovement.type';
|
|
4
|
+
import { FetchListResponse, FetchOptionResponse } from '../types/fetchResponse.type';
|
|
5
|
+
declare const ContinuousImprovementServices: {
|
|
6
|
+
getContiniuousImprovementLogs: (params: GetContinuousImprovementLogParams) => Promise<AxiosResponse<FetchListResponse<ContinuousImprovement>>>;
|
|
7
|
+
getLessonLearned: (params: GetLessonLearnedParams) => Promise<AxiosResponse<FetchListResponse<LessonLearned>>>;
|
|
8
|
+
getAuditFindingsCorrectiveActions: (params: GetAuditFindingParams) => Promise<AxiosResponse<FetchListResponse<AuditFinding>>>;
|
|
9
|
+
getLogOptions: (params: GetContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
10
|
+
getLessonLearnedOptions: (params: GetContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
11
|
+
getAuditFindingOptions: (params: GetAuditFindingParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
12
|
+
getLogFilterOptions: (params: GetContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
13
|
+
getLessonLearnedFilterOptions: (params: GetContinuousImprovementLogOptionsParams) => Promise<AxiosResponse<FetchOptionResponse>>;
|
|
14
|
+
getAuditFindingFilterOptions: (params: GetAuditFindingParams) => 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>;
|
|
21
|
+
cancelImprovement: (id: string, payload: CancelImprovementPayload) => Promise<AxiosResponse>;
|
|
22
|
+
reviewImprovement: (id: string, payload: ReviewImprovementPayload) => Promise<AxiosResponse>;
|
|
23
|
+
updateLessonLearnedStatus: (id: string, action: ActionType) => Promise<AxiosResponse>;
|
|
24
|
+
reviewAuditFinding: (id: string, payload: ReviewAuditFindingPayload) => Promise<AxiosResponse>;
|
|
25
|
+
};
|
|
26
|
+
export default ContinuousImprovementServices;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ContinuousImprovement {
|
|
2
|
+
improvementId: string;
|
|
3
|
+
improvement: string;
|
|
4
|
+
category: string;
|
|
5
|
+
expectedBenefit: string;
|
|
6
|
+
pic: string;
|
|
7
|
+
targetDate: string;
|
|
8
|
+
completedDate?: string;
|
|
9
|
+
status: Status;
|
|
10
|
+
lastModified: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LessonLearned {
|
|
13
|
+
lessonId: string;
|
|
14
|
+
lesson: string;
|
|
15
|
+
category: string;
|
|
16
|
+
rootCause: string;
|
|
17
|
+
section: string;
|
|
18
|
+
expectedBenefit: string;
|
|
19
|
+
lastModified: string;
|
|
20
|
+
}
|
|
21
|
+
export interface AuditFinding {
|
|
22
|
+
findingId: string;
|
|
23
|
+
auditFinding: string;
|
|
24
|
+
correctiveAction: string;
|
|
25
|
+
pic: string;
|
|
26
|
+
targetDate: string;
|
|
27
|
+
status: Status;
|
|
28
|
+
lastModified: string;
|
|
29
|
+
}
|
|
30
|
+
export type Status = 'Waiting for Review' | 'In Progress' | 'Overdue' | 'Completed' | 'Canceled';
|
|
31
|
+
export type ReviewType = 'verify' | 'reopen';
|
|
32
|
+
export type ActionType = 'archive' | 'restore';
|