@omniumretail/shared-resources 0.2.35 → 0.2.37
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.
|
@@ -4,4 +4,4 @@ export interface StockQueryProps extends UseQueryOptions<AstsStockInfo[]> {
|
|
|
4
4
|
reference?: string;
|
|
5
5
|
countryId?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const getStockQueryHook: ({ reference, countryId }: StockQueryProps) => import("@tanstack/react-query").UseQueryResult<AstsStockInfo[], unknown>;
|
|
7
|
+
export declare const getStockQueryHook: ({ reference, countryId, ...options }: StockQueryProps) => import("@tanstack/react-query").UseQueryResult<AstsStockInfo[], unknown>;
|
package/package.json
CHANGED
|
@@ -7,12 +7,15 @@ export interface StockQueryProps extends UseQueryOptions<AstsStockInfo[]> {
|
|
|
7
7
|
countryId?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export const getStockQueryHook = ({ reference, countryId }: StockQueryProps) => {
|
|
10
|
+
export const getStockQueryHook = ({ reference, countryId, ...options }: StockQueryProps) => {
|
|
11
11
|
return useQuery(
|
|
12
12
|
['ASTS_STOCK_QUERY', reference, countryId],
|
|
13
13
|
() => getAuth0<AstsStockInfo[]>('/ASTS/Stock', {
|
|
14
14
|
pReference: reference,
|
|
15
15
|
pCountryId: countryId || "PT"
|
|
16
|
-
})
|
|
16
|
+
}),
|
|
17
|
+
{
|
|
18
|
+
...options
|
|
19
|
+
}
|
|
17
20
|
);
|
|
18
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import {
|
|
2
|
+
import { getAuth0 } from "../../../../services/ApiService";
|
|
3
3
|
import {ResponseList, Section } from "../../../../interfaces"; // Assuming Section is in the interfaces
|
|
4
4
|
|
|
5
5
|
interface GetSectionProps extends UseQueryOptions<ResponseList< "Sections", Section>> {
|
|
@@ -21,7 +21,7 @@ export const getFaqsQuery = ({
|
|
|
21
21
|
return useQuery(
|
|
22
22
|
["FAQS_DATA", page, records, sortBy, sortDirection, terms],
|
|
23
23
|
() =>
|
|
24
|
-
|
|
24
|
+
getAuth0<ResponseList< "Sections", Section>>("/OSUA/Pages", {
|
|
25
25
|
pPage: page || 1,
|
|
26
26
|
pRecords: records || 10,
|
|
27
27
|
pSortBy: sortBy || "Title",
|