@omniumretail/shared-resources 0.1.67 → 0.1.68
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/PicaPonto/get/getEmployeesWithTimekeeping.hook.d.ts +1 -1
- package/package.json +1 -1
- package/src/hooks/ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook.ts +3 -3
- package/src/hooks/ATIM/PicaPonto/mutate/postAttendance.hook.ts +1 -1
- package/src/hooks/ATIM/PicaPonto/mutate/postVerifyUserQuery.hook.ts +1 -1
|
@@ -10,5 +10,5 @@ interface EmployeesWithTimekeepingProps extends UseQueryOptions<ResponseList<"Em
|
|
|
10
10
|
sortBy?: string;
|
|
11
11
|
sortDirection?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const getEmployeesWithTimekeeping: ({ storeId, date, search, page, records, sortBy, sortDirection }: EmployeesWithTimekeepingProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"
|
|
13
|
+
export declare const getEmployeesWithTimekeeping: ({ storeId, date, search, page, records, sortBy, sortDirection }: EmployeesWithTimekeepingProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"EmployeesWorkLog", EmployeeTimeKeeping>, unknown>;
|
|
14
14
|
export {};
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ interface EmployeesWithTimekeepingProps extends UseQueryOptions<ResponseList<"Em
|
|
|
10
10
|
date?: number;
|
|
11
11
|
search?: string;
|
|
12
12
|
page?: number;
|
|
13
|
-
records?: number;
|
|
13
|
+
records?: number;
|
|
14
14
|
sortBy?: string;
|
|
15
15
|
sortDirection?: string;
|
|
16
16
|
|
|
@@ -19,12 +19,12 @@ interface EmployeesWithTimekeepingProps extends UseQueryOptions<ResponseList<"Em
|
|
|
19
19
|
export const getEmployeesWithTimekeeping = ({storeId, date, search, page, records, sortBy, sortDirection}: EmployeesWithTimekeepingProps) => {
|
|
20
20
|
return useQuery(
|
|
21
21
|
['EMPLOYEES_WITH_TIMEKEEPING', storeId, date, search, page, records, sortBy, sortDirection],
|
|
22
|
-
() => getAuth0<ResponseList<"
|
|
22
|
+
() => getAuth0<ResponseList<"EmployeesWorkLog", EmployeeTimeKeeping>>('/ATIM/EmployeesWorklog', {
|
|
23
23
|
pStoreId: storeId,
|
|
24
24
|
pDate: date || getDateToUnix(new Date()),
|
|
25
25
|
pPage: page || 1,
|
|
26
26
|
pRecords: records || 50,
|
|
27
|
-
pSortBy: sortBy || "Name",
|
|
27
|
+
pSortBy: sortBy || "Name" ,
|
|
28
28
|
pSortDirection: sortDirection || "asc",
|
|
29
29
|
pSearch: search
|
|
30
30
|
}),
|
|
@@ -13,7 +13,7 @@ export interface PostAttendance extends UseQueryOptions<Attendance>{
|
|
|
13
13
|
export const usePostAttendance = ({ storeId, employeeId, isWorking}: PostAttendance) => {
|
|
14
14
|
const queryClient = useQueryClient();
|
|
15
15
|
return useMutation<Attendance, unknown, Attendance>((data: Attendance) => {
|
|
16
|
-
return postAuth0('/Attendances', {
|
|
16
|
+
return postAuth0('/ATIM/Attendances', {
|
|
17
17
|
StoreId: storeId,
|
|
18
18
|
EmployeeId: employeeId,
|
|
19
19
|
Date: getDateToUnix(new Date()),
|
|
@@ -5,7 +5,7 @@ import { post } from '../../../../services/ApiService';
|
|
|
5
5
|
export const postVerifyUserQueryHook = () => {
|
|
6
6
|
const queryClient = useQueryClient();
|
|
7
7
|
return useMutation<VerifyUser, unknown, VerifyUser>((data: VerifyUser) => {
|
|
8
|
-
return post('/Youverse/Verify_User', data);
|
|
8
|
+
return post('/ATIM/Youverse/Verify_User', data);
|
|
9
9
|
}, {
|
|
10
10
|
onSuccess: (data: VerifyUser) => {
|
|
11
11
|
queryClient.setQueryData(
|