@omniumretail/shared-resources 0.2.15 → 0.2.16
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/types/hooks/OSUA/get/documentos/getSitooDocumentos.hook.d.ts +2 -2
- package/dist/types/hooks/OSUA/get/vouchers/getGngVoucher.hook.d.ts +2 -2
- package/package.json +1 -1
- package/src/hooks/OSUA/get/documentos/getSitooDocumentos.hook.ts +2 -2
- package/src/hooks/OSUA/get/vouchers/getGngVoucher.hook.ts +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import { ResponseList, SitooDocumentoResponse } from '../../../../interfaces';
|
|
3
|
-
interface GetSitooDocumentosProps extends UseQueryOptions<ResponseList<"
|
|
3
|
+
interface GetSitooDocumentosProps extends UseQueryOptions<ResponseList<"Items", SitooDocumentoResponse>> {
|
|
4
4
|
fields?: string;
|
|
5
5
|
externalid?: string;
|
|
6
6
|
num?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const getSitooDocumentos: ({ fields, externalid, num, ...options }: GetSitooDocumentosProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"
|
|
8
|
+
export declare const getSitooDocumentos: ({ fields, externalid, num, ...options }: GetSitooDocumentosProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Items", SitooDocumentoResponse>, unknown>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import { ResponseList, GiftCards } from '../../../../interfaces';
|
|
3
|
-
interface GetGNGVoucherProps extends UseQueryOptions<ResponseList<"
|
|
3
|
+
interface GetGNGVoucherProps extends UseQueryOptions<ResponseList<"GiftCards", GiftCards>> {
|
|
4
4
|
page?: number;
|
|
5
5
|
records?: number;
|
|
6
6
|
query?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const getGNGVoucher: ({ page, records, query, ...options }: GetGNGVoucherProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"
|
|
8
|
+
export declare const getGNGVoucher: ({ page, records, query, ...options }: GetGNGVoucherProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"GiftCards", GiftCards>, unknown>;
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import { get } from "../../../../services/ApiService";
|
|
3
3
|
import { ResponseList, SitooDocumentoResponse } from '../../../../interfaces';
|
|
4
4
|
|
|
5
|
-
interface GetSitooDocumentosProps extends UseQueryOptions<ResponseList<"
|
|
5
|
+
interface GetSitooDocumentosProps extends UseQueryOptions<ResponseList<"Items", SitooDocumentoResponse>> {
|
|
6
6
|
fields?: string;
|
|
7
7
|
externalid?: string;
|
|
8
8
|
num?: number;
|
|
@@ -11,7 +11,7 @@ interface GetSitooDocumentosProps extends UseQueryOptions<ResponseList<"SitooDoc
|
|
|
11
11
|
export const getSitooDocumentos = ({ fields, externalid, num, ...options}: GetSitooDocumentosProps) => {
|
|
12
12
|
return useQuery(
|
|
13
13
|
['SITOO_DOCUMENTOS', fields, externalid, num],
|
|
14
|
-
() => get<ResponseList<"
|
|
14
|
+
() => get<ResponseList<"Items", SitooDocumentoResponse>>('/Sitoo/Orders', {
|
|
15
15
|
pFields: fields || "externalid,orderid",
|
|
16
16
|
pExternalid: externalid ,
|
|
17
17
|
pNum: num
|
|
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import { get } from "../../../../services/ApiService";
|
|
3
3
|
import { ResponseList, GiftCards } from '../../../../interfaces';
|
|
4
4
|
|
|
5
|
-
interface GetGNGVoucherProps extends UseQueryOptions<ResponseList<"
|
|
5
|
+
interface GetGNGVoucherProps extends UseQueryOptions<ResponseList<"GiftCards", GiftCards>> {
|
|
6
6
|
page?: number;
|
|
7
7
|
records?: number;
|
|
8
8
|
query?: string;
|
|
@@ -11,7 +11,7 @@ interface GetGNGVoucherProps extends UseQueryOptions<ResponseList<"GNGVoucher",
|
|
|
11
11
|
export const getGNGVoucher = ({ page, records, query, ...options}: GetGNGVoucherProps) => {
|
|
12
12
|
return useQuery(
|
|
13
13
|
['GNG_VOUCHER', page, records, query],
|
|
14
|
-
() => get<ResponseList<"
|
|
14
|
+
() => get<ResponseList<"GiftCards", GiftCards>>('/GNG/Document/GiftCards', {
|
|
15
15
|
pPage: page || 1,
|
|
16
16
|
pRecords: records || 50,
|
|
17
17
|
pQuery: query
|