@omniumretail/shared-resources 0.2.29 → 0.2.30
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/dist/bundle.js +1 -1
- package/dist/types/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.d.ts +5 -3
- package/dist/types/hooks/ATIM/BackOffice/get/useWorkMonths.hook.d.ts +9 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/get/getIntegrationByName.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.d.ts +1 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/get/documentos/getGngDocumentos.hook.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +150 -144
- package/dist/types/interfaces/BackofficeAtim.d.ts +68 -0
- package/dist/types/interfaces/MIMO.d.ts +12 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +33 -0
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +40 -0
- package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +63 -38
- package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +31 -0
- package/src/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.ts +17 -0
- package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +19 -0
- package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +13 -0
- package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +15 -0
- package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +17 -10
- package/src/hooks/index.ts +157 -148
- package/src/interfaces/BackofficeAtim.ts +106 -31
- package/src/interfaces/MIMO.ts +13 -0
- package/src/interfaces/index.ts +2 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ResponseList, AbsenceTypes } from "../../../../interfaces";
|
|
3
|
+
interface AbsenceTypesQueryOptions extends UseQueryOptions<ResponseList<"AbsenceTypes", AbsenceTypes>> {
|
|
4
|
+
page?: number;
|
|
5
|
+
records?: number;
|
|
6
|
+
sortBy?: string;
|
|
7
|
+
sortDirection?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useAbsenceTypes: ({ page, records, sortBy, sortDirection, ...options }: AbsenceTypesQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"AbsenceTypes", AbsenceTypes>, unknown>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ResponseList, AttendancesSummary } from "../../../../interfaces";
|
|
3
|
+
interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<"AttendancesSummary", AttendancesSummary>> {
|
|
4
|
+
employeeId?: string;
|
|
5
|
+
storeId?: string;
|
|
6
|
+
beginWorkPeriod?: number;
|
|
7
|
+
endWorkPeriod?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const useAttendancesSummary: ({ employeeId, storeId, beginWorkPeriod, endWorkPeriod, ...options }: EmployeeQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"AttendancesSummary", AttendancesSummary>, unknown>;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseQueryOptions } from
|
|
2
|
-
import { ResponseList, EmployeesWorklog } from
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ResponseList, EmployeesWorklog } from "../../../../interfaces";
|
|
3
3
|
interface EmployeesWithTimekeepingProps extends UseQueryOptions<ResponseList<"EmployeesWorkLog", EmployeesWorklog>> {
|
|
4
4
|
storeId?: string;
|
|
5
5
|
startDate?: number;
|
|
@@ -9,6 +9,8 @@ interface EmployeesWithTimekeepingProps extends UseQueryOptions<ResponseList<"Em
|
|
|
9
9
|
records?: number;
|
|
10
10
|
sortBy?: string;
|
|
11
11
|
sortDirection?: string;
|
|
12
|
+
terms?: string;
|
|
13
|
+
query?: string;
|
|
12
14
|
}
|
|
13
|
-
export declare const useEmployeeWorklogDetails: ({ storeId, startDate, endDate, search, page, records, sortBy, sortDirection,
|
|
15
|
+
export declare const useEmployeeWorklogDetails: ({ storeId, startDate, endDate, search, page, records, sortBy, sortDirection, terms, query, }: EmployeesWithTimekeepingProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"EmployeesWorklog", EmployeesWorklog>, unknown>;
|
|
14
16
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ResponseList, WorkMonths } from "../../../../interfaces";
|
|
3
|
+
interface WorkMonthsQueryOptions extends UseQueryOptions<ResponseList<"WorkMonths", WorkMonths>> {
|
|
4
|
+
year?: number;
|
|
5
|
+
page?: number;
|
|
6
|
+
records?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const useWorkMonths: ({ year, page, records, ...options }: WorkMonthsQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"WorkMonths", WorkMonths>, unknown>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ImportData } from "../../../../interfaces";
|
|
3
|
+
export interface getIntegrationByNameProps extends UseQueryOptions<ImportData> {
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const getIntegrationByName: ({ name }: getIntegrationByNameProps) => import("@tanstack/react-query").UseQueryResult<ImportData, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const postDagsAdjustStock: () => import("@tanstack/react-query").UseMutationResult<string, unknown, void, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseQueryOptions } from
|
|
2
|
-
import { DocumentGng, ResponseList } from
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { DocumentGng, ResponseList } from "../../../../interfaces";
|
|
3
3
|
interface GetGNGDocumentosProps extends UseQueryOptions<ResponseList<"Documents", DocumentGng>> {
|
|
4
4
|
page?: number;
|
|
5
5
|
records?: number;
|
|
@@ -1,144 +1,150 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
60
|
-
export * from
|
|
61
|
-
export * from
|
|
62
|
-
export * from
|
|
63
|
-
export * from
|
|
64
|
-
export * from
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
67
|
-
export * from
|
|
68
|
-
export * from
|
|
69
|
-
export * from
|
|
70
|
-
export * from
|
|
71
|
-
export * from
|
|
72
|
-
export * from
|
|
73
|
-
export * from
|
|
74
|
-
export * from
|
|
75
|
-
export * from
|
|
76
|
-
export * from
|
|
77
|
-
export * from
|
|
78
|
-
export * from
|
|
79
|
-
export * from
|
|
80
|
-
export * from
|
|
81
|
-
export * from
|
|
82
|
-
export * from
|
|
83
|
-
export * from
|
|
84
|
-
export * from
|
|
85
|
-
export * from
|
|
86
|
-
export * from
|
|
87
|
-
export * from
|
|
88
|
-
export * from
|
|
89
|
-
export * from
|
|
90
|
-
export * from
|
|
91
|
-
export * from
|
|
92
|
-
export * from
|
|
93
|
-
export * from
|
|
94
|
-
export * from
|
|
95
|
-
export * from
|
|
96
|
-
export * from
|
|
97
|
-
export * from
|
|
98
|
-
export * from
|
|
99
|
-
export * from
|
|
100
|
-
export * from
|
|
101
|
-
export * from
|
|
102
|
-
export * from
|
|
103
|
-
export * from
|
|
104
|
-
export * from
|
|
105
|
-
export * from
|
|
106
|
-
export * from
|
|
107
|
-
export * from
|
|
108
|
-
export * from
|
|
109
|
-
export * from
|
|
110
|
-
export * from
|
|
111
|
-
export * from
|
|
112
|
-
export * from
|
|
113
|
-
export * from
|
|
114
|
-
export * from
|
|
115
|
-
export * from
|
|
116
|
-
export * from
|
|
117
|
-
export * from
|
|
118
|
-
export * from
|
|
119
|
-
export * from
|
|
120
|
-
export * from
|
|
121
|
-
export * from
|
|
122
|
-
export * from
|
|
123
|
-
export * from
|
|
124
|
-
export * from
|
|
125
|
-
export * from
|
|
126
|
-
export * from
|
|
127
|
-
export * from
|
|
128
|
-
export * from
|
|
129
|
-
export * from
|
|
130
|
-
export * from
|
|
131
|
-
export * from
|
|
132
|
-
export * from
|
|
133
|
-
export * from
|
|
134
|
-
export * from
|
|
135
|
-
export * from
|
|
136
|
-
export * from
|
|
137
|
-
export * from
|
|
138
|
-
export * from
|
|
139
|
-
export * from
|
|
140
|
-
export * from
|
|
141
|
-
export * from
|
|
142
|
-
export * from
|
|
143
|
-
export * from
|
|
144
|
-
export * from
|
|
1
|
+
export * from "./Store/useStoreQuery";
|
|
2
|
+
export * from "./Store/useStoreByCodeQuery.hook";
|
|
3
|
+
export * from "./Store/useAllStoreQuery.hook";
|
|
4
|
+
export * from "./Store/getLocationsByUser.hook";
|
|
5
|
+
export * from "./EvaluationCycle/get/useEvaluationCycleIdQuery.hook";
|
|
6
|
+
export * from "./EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook";
|
|
7
|
+
export * from "./EvaluationCycle/others/activateEvaluationCycleQuery.hook";
|
|
8
|
+
export * from "./EvaluationCycle/others/deleteEvaluationCycleQuery.hook";
|
|
9
|
+
export * from "./EvaluationCycle/get/useEvaluationCycleQuery.hook";
|
|
10
|
+
export * from "./EvaluationCycle/others/cancelEvaluationCycleQuery.hook";
|
|
11
|
+
export * from "./EvaluationCycle/others/finishEvaluationCycleQuery.hook";
|
|
12
|
+
export * from "./Questionnaire/get/useQuestionnaireQuery.hook";
|
|
13
|
+
export * from "./Questionnaire/others/deleteQuestionnaireQuery.hook";
|
|
14
|
+
export * from "./Questionnaire/others/duplicateQuestionnaireQuery.hook";
|
|
15
|
+
export * from "./Questionnaire/mutate/useQuestionnaireMutateQuery.hook";
|
|
16
|
+
export * from "./Questionnaire/others/activateQuestionnaireQuery.hook";
|
|
17
|
+
export * from "./Questionnaire/get/useQuestionnaireIdQuery.hook";
|
|
18
|
+
export * from "./Questionnaire/others/finishQuestionnaireQuery.hook";
|
|
19
|
+
export * from "./Questionnaire/others/cancelQuestionnaireQuery.hook";
|
|
20
|
+
export * from "./Users/get/useUserQuery.hook";
|
|
21
|
+
export * from "./Users/get/useUserListQuery.hook";
|
|
22
|
+
export * from "./Users/others/useUserBlockQuery.hook";
|
|
23
|
+
export * from "./Users/others/useUserEmailVerifQuery.hook";
|
|
24
|
+
export * from "./Users/get/useExpUsersAnswersQuery.hook";
|
|
25
|
+
export * from "./Users/mutate/useUpdateSupervisorMutateQuery.hook";
|
|
26
|
+
export * from "./Users/others/useSingleUserResetPassword.hook";
|
|
27
|
+
export * from "./Users/get/useSingleUserIdQuery.hook";
|
|
28
|
+
export * from "./Users/mutate/useSingleUserIdMutateQuery.hook";
|
|
29
|
+
export * from "./Users/get/useUserIdQuery.hook";
|
|
30
|
+
export * from "./Users/others/useUserResetPassByEmail.hook";
|
|
31
|
+
export * from "./Users/get/getUserAndSupervisorQuery.hook";
|
|
32
|
+
export * from "./Analytics/get/useAnalyticsEvaluationCyclesQuery.hook";
|
|
33
|
+
export * from "./Analytics/get/useAnalyticsUserIdQuery.hook";
|
|
34
|
+
export * from "./Analytics/get/useAnalyticsQuestionsQuery.hook";
|
|
35
|
+
export * from "./Analytics/get/useAnalyticsSideBarQuery.hook";
|
|
36
|
+
export * from "./Analytics/get/useAnalyticsUserQuery.hook";
|
|
37
|
+
export * from "./Analytics/get/getArchivedAnalyticsQuery.hook";
|
|
38
|
+
export * from "./Answer/get/useAnswerIdQuery.hook";
|
|
39
|
+
export * from "./Answer/mutate/useAnswerMutateQuery.hook";
|
|
40
|
+
export * from "./Answer/get/useAnswersUserSupervisorQuery.hook";
|
|
41
|
+
export * from "./Answer/others/openAnswerQuery.hook";
|
|
42
|
+
export * from "./Answer/others/showAnswerQuery.hook";
|
|
43
|
+
export * from "./AprProduct/get/useProductsQuery.hook";
|
|
44
|
+
export * from "./AprProduct/get/useProductHierarchies.hook";
|
|
45
|
+
export * from "./AprProduct/get/useProductRecommendations.hook";
|
|
46
|
+
export * from "./AprProduct/get/useProductsByRefQuery.hook";
|
|
47
|
+
export * from "./Roles/get/useAllRolesQuery.hook";
|
|
48
|
+
export * from "./AsvProduct/get/getProductsByRefQuery.hook";
|
|
49
|
+
export * from "./AsvProduct/get/getProductsByStoreQuery.hook";
|
|
50
|
+
export * from "./AsvProduct/get/getProductsStockDetailsQuery.hook";
|
|
51
|
+
export * from "./Ass/get/getAssProductsByRefQuery.hook";
|
|
52
|
+
export * from "./Ass/get/getAssProductsByStoreQuery.hook";
|
|
53
|
+
export * from "./Ass/get/getAssProductsStockDetailsQuery.hook";
|
|
54
|
+
export * from "./Asts/get/getProductInfoQuery.hook";
|
|
55
|
+
export * from "./Asts/get/getStockQuery.hook";
|
|
56
|
+
export * from "./Astt/get/getTransferDocumentsQuery.hook";
|
|
57
|
+
export * from "./Astt/get/getTransferDocumentsByIdQuery.hook";
|
|
58
|
+
export * from "./Astt/get/getTransferDocumentsByPackageQuery.hook";
|
|
59
|
+
export * from "./Astt/get/getTransferStatesQuery.hook";
|
|
60
|
+
export * from "./Astt/get/getTransferDocumentsPackagesQuery.hook";
|
|
61
|
+
export * from "./Astt/get/getTransferReportDiff.hook";
|
|
62
|
+
export * from "./Astt/get/getTransferAllProductsQuery.hook";
|
|
63
|
+
export * from "./Astt/mutate/postTransferDocumentsMutateQuery.hook";
|
|
64
|
+
export * from "./Astt/mutate/putTransferDocumentsStateMutateQuery.hook";
|
|
65
|
+
export * from "./Astt/get/getReportsBuilderQuery.hook";
|
|
66
|
+
export * from "./Astt/get/getRfidQuery.hook";
|
|
67
|
+
export * from "./Astt/get/getProductsListingQuery.hook";
|
|
68
|
+
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
|
69
|
+
export * from "./ATIM/PicaPonto/mutate/postVerifyUserQuery.hook";
|
|
70
|
+
export * from "./ATIM/PicaPonto/mutate/postAttendance.hook";
|
|
71
|
+
export * from "./Asta/Template/get/getTemplateByIdQuery.hook";
|
|
72
|
+
export * from "./Asta/Template/get/getTemplateHeadersQuery.hook";
|
|
73
|
+
export * from "./Asta/Template/get/getTemplateQuery.hook";
|
|
74
|
+
export * from "./Asta/Template/mutate/useTemplateMutateQuery.hook";
|
|
75
|
+
export * from "./Asta/Template/others/deleteTemplateQuery.hook";
|
|
76
|
+
export * from "./Asta/Template/others/extractTemplateQuery.hook";
|
|
77
|
+
export * from "./Asta/Template/others/archiveTemplateQuery.hook";
|
|
78
|
+
export * from "./Asta/Template/others/duplicateTemplateQuery.hook";
|
|
79
|
+
export * from "./Asta/Template/others/finishTemplateQuery.hook";
|
|
80
|
+
export * from "./Asta/Inspection/get/getInspectionQuery.hook";
|
|
81
|
+
export * from "./Asta/Inspection/mutate/useInspectionMutateQuery.hook";
|
|
82
|
+
export * from "./Asta/Inspection/others/deleteInspectionQuery.hook";
|
|
83
|
+
export * from "./Asta/Inspection/others/finishInspectionQuery.hook";
|
|
84
|
+
export * from "./Asta/Inspection/others/archiveTemplateQuery.hook";
|
|
85
|
+
export * from "./Asta/Inspection/others/extractTemplateQuery.hook";
|
|
86
|
+
export * from "./Asta/Answer/get/getAstaAnswerQuery.hook";
|
|
87
|
+
export * from "./Asta/Answer/get/getAstaAnswerByIdQuery.hook";
|
|
88
|
+
export * from "./Asta/Answer/mutate/useAstaAnswersMutateQuery.hook";
|
|
89
|
+
export * from "./Asta/Answer/others/finishAstaAnswersQuery.hook";
|
|
90
|
+
export * from "./Asta/Answer/others/putAnswerImageQuery.hook";
|
|
91
|
+
export * from "./Asta/AnswerType/get/getAnswerTypeQuery.hook";
|
|
92
|
+
export * from "./Asta/AnswerType/get/getAllAnswerTypeQuery.hook";
|
|
93
|
+
export * from "./Asta/AnswerType/get/getAnswerColorsQuery.hook";
|
|
94
|
+
export * from "./Asta/AnswerType/get/getAnswerTypeByIdQuery.hook";
|
|
95
|
+
export * from "./Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook";
|
|
96
|
+
export * from "./Asta/AnswerType/mutate/useAnswerTypeMutateQuery.hook";
|
|
97
|
+
export * from "./Asta/AnswerType/others/deleteAnswerTypeQuery.hook";
|
|
98
|
+
export * from "./Asta/AnswerType/others/finishAnswerTypeQuery.hook";
|
|
99
|
+
export * from "./Asta/AnswerType/others/selectAnswerNameQuery.hook";
|
|
100
|
+
export * from "./Asta/Actions/get/getActionByIdQuery.hook";
|
|
101
|
+
export * from "./Asta/Actions/get/getActionStagesQuery.hook";
|
|
102
|
+
export * from "./Asta/Actions/get/getActionPriorityQuery.hook";
|
|
103
|
+
export * from "./Asta/Actions/get/getActionQuery.hook";
|
|
104
|
+
export * from "./Asta/Actions/mutate/useActionMutateQuery.hook";
|
|
105
|
+
export * from "./Asta/Actions/others/deleteActionQuery.hook";
|
|
106
|
+
export * from "./Asta/Actions/others/extractActionQuery.hook";
|
|
107
|
+
export * from "./Asta/Actions/others/archiveActionQuery.hook";
|
|
108
|
+
export * from "./Asta/Actions/others/finishActionQuery.hook";
|
|
109
|
+
export * from "./Asta/Actions/others/startActionQuery.hook";
|
|
110
|
+
export * from "./Asta/Actions/others/selectActionStatusQuery.hook";
|
|
111
|
+
export * from "./Aprc/get/getPriceChangePinQuery.hook";
|
|
112
|
+
export * from "./Aprc/others/postPriceChangePinQuery.hook";
|
|
113
|
+
export * from "./Aprc/others/sendEmailWithPinQuery.hook";
|
|
114
|
+
export * from "./BigWin/get/getMonthsListQuery.hook";
|
|
115
|
+
export * from "./BigWin/others/publishMonthsEmployeeQuery.hook";
|
|
116
|
+
export * from "./BigWin/others/publishMonthsManagerQuery.hook";
|
|
117
|
+
export * from "./OSUA/get/documentos/getGngDocumentos.hook";
|
|
118
|
+
export * from "./OSUA/get/documentos/getSitooDocumentos.hook";
|
|
119
|
+
export * from "./OSUA/get/vouchers/getGngVoucher.hook";
|
|
120
|
+
export * from "./OSUA/get/vouchers/getSitooVouchers.hook";
|
|
121
|
+
export * from "./OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook";
|
|
122
|
+
export * from "./OSUA/get/orders/getOrderDocuments.hook";
|
|
123
|
+
export * from "./OSUA/mutate/postCreateIntegrationRequest.hook";
|
|
124
|
+
export * from "./OSUA/MIMO/get/getIntegrationByName.hook";
|
|
125
|
+
export * from "./OSUA/MIMO/mutate/postProductVendusIntegration.hook";
|
|
126
|
+
export * from "./OSUA/MIMO/mutate/postDagsAdjustStock.hook";
|
|
127
|
+
export * from "./ACB/get/getClientBalance.hook";
|
|
128
|
+
export * from "./ACB/mutate/postClientBalance.hook";
|
|
129
|
+
export * from "./ATIM/BackOffice/get/useEmployeeWorklogDetails.hook";
|
|
130
|
+
export * from "./ATIM/BackOffice/get/useEmployeeQueryHook.hook";
|
|
131
|
+
export * from "./ATIM/BackOffice/get/useStoresQueryHook.hook";
|
|
132
|
+
export * from "./ATIM/BackOffice/mutate/postAttendanceRange.hook";
|
|
133
|
+
export * from "./ATIM/BackOffice/get/useAbsenceTypes.hook";
|
|
134
|
+
export * from "./ATIM/BackOffice/get/useAttendancesSummary.hook";
|
|
135
|
+
export * from "./ATIM/BackOffice/get/useWorkMonths.hook";
|
|
136
|
+
export * from "./Others/useJobTitlesQuery.hook";
|
|
137
|
+
export * from "./Others/useContractStatesQuery.hook";
|
|
138
|
+
export * from "./Others/useApplicationDataQuery.hook";
|
|
139
|
+
export * from "./Others/useTermNotificationQuery.hook";
|
|
140
|
+
export * from "./Others/useCustomersQuery.hook";
|
|
141
|
+
export * from "./Others/useCountriesQuery.hook";
|
|
142
|
+
export * from "./Others/useCreateNotification.hook";
|
|
143
|
+
export * from "./Others/postCheckoutsMutateQuery.hook";
|
|
144
|
+
export * from "./Others/postVerifyImageQuery.hook";
|
|
145
|
+
export * from "./Others/getWeeklyWorkloadQuery.hook";
|
|
146
|
+
export * from "./Others/getNotificationTitleQuery.hook";
|
|
147
|
+
export * from "./Others/getUserEmailStatusQuery.hook";
|
|
148
|
+
export * from "./Others/getRegulationQuery.hook";
|
|
149
|
+
export * from "./Others/useRegulationQuery.hook";
|
|
150
|
+
export * from "./Others/postUserAuthenticationQuery.hook";
|
|
@@ -34,3 +34,71 @@ export interface UserBackoffice {
|
|
|
34
34
|
FullName: string;
|
|
35
35
|
DisplayName: string;
|
|
36
36
|
}
|
|
37
|
+
export interface WorkMonths {
|
|
38
|
+
BeginDate: number;
|
|
39
|
+
EndDate: number;
|
|
40
|
+
}
|
|
41
|
+
export interface AbsenceTypes {
|
|
42
|
+
CreateDate: number;
|
|
43
|
+
Id: string;
|
|
44
|
+
Name: string;
|
|
45
|
+
Status: string;
|
|
46
|
+
UpdateDate: number;
|
|
47
|
+
}
|
|
48
|
+
export interface AbsenceOthers {
|
|
49
|
+
Days: number;
|
|
50
|
+
Notes: string;
|
|
51
|
+
}
|
|
52
|
+
export interface AbsenceInterval {
|
|
53
|
+
BeginDate: number;
|
|
54
|
+
EndDate: number;
|
|
55
|
+
}
|
|
56
|
+
export interface AbsenceDetail {
|
|
57
|
+
LineNumber: number;
|
|
58
|
+
AbsenceTypeId: string;
|
|
59
|
+
Name: string;
|
|
60
|
+
Notes: string;
|
|
61
|
+
Interval: AbsenceInterval;
|
|
62
|
+
}
|
|
63
|
+
export interface AbsenceDetails {
|
|
64
|
+
Justified: number;
|
|
65
|
+
Unjustified: number;
|
|
66
|
+
Others: AbsenceOthers[];
|
|
67
|
+
}
|
|
68
|
+
export interface ExtraHours {
|
|
69
|
+
Hours: string;
|
|
70
|
+
AuthorizedBy: string | null;
|
|
71
|
+
}
|
|
72
|
+
export interface WorkPeriod {
|
|
73
|
+
Begin: number;
|
|
74
|
+
End: number;
|
|
75
|
+
}
|
|
76
|
+
export interface ScheduleWorkHours {
|
|
77
|
+
Daily: string;
|
|
78
|
+
Night: string;
|
|
79
|
+
Total: string;
|
|
80
|
+
Stocktaking: string;
|
|
81
|
+
}
|
|
82
|
+
export interface WorkedHours {
|
|
83
|
+
Total: string;
|
|
84
|
+
Daily: string;
|
|
85
|
+
Night: string;
|
|
86
|
+
}
|
|
87
|
+
export interface AttendancesSummary {
|
|
88
|
+
Id: string | null;
|
|
89
|
+
StoreId: string;
|
|
90
|
+
Absences: AbsenceDetails;
|
|
91
|
+
CreateDate: number;
|
|
92
|
+
Delay: string;
|
|
93
|
+
EmployeeId: string;
|
|
94
|
+
Extra: ExtraHours;
|
|
95
|
+
Others: {
|
|
96
|
+
Hours: string;
|
|
97
|
+
Notes: string | null;
|
|
98
|
+
};
|
|
99
|
+
ScheduleWorkHours: ScheduleWorkHours;
|
|
100
|
+
WorkPeriod: WorkPeriod;
|
|
101
|
+
WorkedHours: WorkedHours;
|
|
102
|
+
UpdateDate: number;
|
|
103
|
+
Observations: string | null;
|
|
104
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { get } from "../../../../services/ApiService";
|
|
3
|
+
import { ResponseList, AbsenceTypes } from "../../../../interfaces";
|
|
4
|
+
|
|
5
|
+
interface AbsenceTypesQueryOptions
|
|
6
|
+
extends UseQueryOptions<ResponseList<"AbsenceTypes", AbsenceTypes>> {
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const useAbsenceTypes = ({
|
|
14
|
+
page,
|
|
15
|
+
records,
|
|
16
|
+
sortBy,
|
|
17
|
+
sortDirection,
|
|
18
|
+
...options
|
|
19
|
+
}: AbsenceTypesQueryOptions) => {
|
|
20
|
+
return useQuery<ResponseList<"AbsenceTypes", AbsenceTypes>>(
|
|
21
|
+
["EMPLOYEES_QUERY", page, records, sortBy, sortDirection],
|
|
22
|
+
() =>
|
|
23
|
+
get("/ATIM/AbsenceTypes", {
|
|
24
|
+
pPage: page,
|
|
25
|
+
pRecords: records,
|
|
26
|
+
pSortBy: sortBy,
|
|
27
|
+
pSortDirection: sortDirection,
|
|
28
|
+
}),
|
|
29
|
+
{
|
|
30
|
+
...options,
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
3
|
+
import { ResponseList, AttendancesSummary } from "../../../../interfaces";
|
|
4
|
+
|
|
5
|
+
interface EmployeeQueryOptions
|
|
6
|
+
extends UseQueryOptions<
|
|
7
|
+
ResponseList<"AttendancesSummary", AttendancesSummary>
|
|
8
|
+
> {
|
|
9
|
+
employeeId?: string;
|
|
10
|
+
storeId?: string;
|
|
11
|
+
beginWorkPeriod?: number;
|
|
12
|
+
endWorkPeriod?: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const useAttendancesSummary = ({
|
|
16
|
+
employeeId,
|
|
17
|
+
storeId,
|
|
18
|
+
beginWorkPeriod,
|
|
19
|
+
endWorkPeriod,
|
|
20
|
+
...options
|
|
21
|
+
}: EmployeeQueryOptions) => {
|
|
22
|
+
return useQuery<ResponseList<"AttendancesSummary", AttendancesSummary>>(
|
|
23
|
+
[
|
|
24
|
+
"ATTENDANCES_SUMMARY",
|
|
25
|
+
employeeId,
|
|
26
|
+
storeId,
|
|
27
|
+
beginWorkPeriod,
|
|
28
|
+
endWorkPeriod,
|
|
29
|
+
],
|
|
30
|
+
() =>
|
|
31
|
+
getAuth0(`/ATIM/AttendancesSummary/${employeeId}`, {
|
|
32
|
+
pStoreId: storeId,
|
|
33
|
+
pBeginWorkPeriod: beginWorkPeriod,
|
|
34
|
+
pEndWorkPeriod: endWorkPeriod,
|
|
35
|
+
}),
|
|
36
|
+
{
|
|
37
|
+
...options,
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
};
|