@omniumretail/shared-resources 0.1.72 → 0.1.73
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.
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/shared-resources",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Components and services or utils to the frontend versions",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"terser-webpack-plugin": "^5.3.9",
|
|
44
44
|
"whatwg-fetch": "^3.6.2"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -14,12 +14,12 @@ interface EmployeesWithTimekeepingProps extends UseQueryOptions<ResponseList<"Em
|
|
|
14
14
|
sortBy?: string;
|
|
15
15
|
sortDirection?: string;
|
|
16
16
|
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
|
|
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,
|