@omniumretail/shared-resources 0.2.22 → 0.2.23
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import { ClientResponse } from '../../../interfaces';
|
|
3
|
-
interface ClientBalanceQueryOptions extends UseQueryOptions<
|
|
3
|
+
interface ClientBalanceQueryOptions extends UseQueryOptions<ClientResponse> {
|
|
4
4
|
fiscalId?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const getClientBalance: ({ fiscalId, ...options }: ClientBalanceQueryOptions) => import("@tanstack/react-query").UseQueryResult<
|
|
6
|
+
export declare const getClientBalance: ({ fiscalId, ...options }: ClientBalanceQueryOptions) => import("@tanstack/react-query").UseQueryResult<ClientResponse, unknown>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import { get } from '../../../services/ApiService';
|
|
3
3
|
import { ClientResponse } from '../../../interfaces';
|
|
4
4
|
|
|
5
|
-
interface ClientBalanceQueryOptions extends UseQueryOptions<
|
|
5
|
+
interface ClientBalanceQueryOptions extends UseQueryOptions<ClientResponse>{
|
|
6
6
|
fiscalId?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const getClientBalance= ({ fiscalId, ...options }: ClientBalanceQueryOptions) => {
|
|
10
|
-
return useQuery(
|
|
10
|
+
return useQuery<ClientResponse>(
|
|
11
11
|
['EMPLOYEES_QUERY', fiscalId],
|
|
12
12
|
() =>
|
|
13
|
-
get('/ACB/Clients', {
|
|
13
|
+
get<ClientResponse>('/ACB/Clients', {
|
|
14
14
|
pFiscalId: fiscalId
|
|
15
15
|
}),
|
|
16
16
|
{
|