@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.
@@ -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<"SitooDocumentos", SitooDocumentoResponse>> {
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<"SitooDocumentos", SitooDocumentoResponse>, unknown>;
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<"GNGVoucher", GiftCards>> {
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<"GNGVoucher", GiftCards>, unknown>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -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<"SitooDocumentos", SitooDocumentoResponse>> {
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<"SitooDocumentos", SitooDocumentoResponse>>('/Sitoo/Orders', {
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<"GNGVoucher", GiftCards>> {
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<"GNGVoucher", GiftCards>>('/GNG/Document/GiftCards', {
14
+ () => get<ResponseList<"GiftCards", GiftCards>>('/GNG/Document/GiftCards', {
15
15
  pPage: page || 1,
16
16
  pRecords: records || 50,
17
17
  pQuery: query