@omniumretail/shared-resources 0.3.52 → 0.3.53

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,10 +1,10 @@
1
1
  import { UseQueryOptions } from "@tanstack/react-query";
2
2
  import { CustomerHistory, ResponseList } from "../../../interfaces";
3
- interface CustomerHistoryProps extends Omit<UseQueryOptions<ResponseList<"Histories", CustomerHistory>>, "queryKey"> {
3
+ interface CustomerHistoryProps extends Omit<UseQueryOptions<ResponseList<"CustomerHistories", CustomerHistory>>, "queryKey"> {
4
4
  page: number;
5
5
  records: number;
6
6
  sortBy: string;
7
7
  sortDirection: string;
8
8
  }
9
- export declare const getCustomerHistoryQueryHook: (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerHistoryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Histories", CustomerHistory>, unknown>;
9
+ export declare const getCustomerHistoryQueryHook: (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerHistoryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"CustomerHistories", CustomerHistory>, unknown>;
10
10
  export {};
@@ -1,10 +1,10 @@
1
1
  import { UseQueryOptions } from "@tanstack/react-query";
2
2
  import { CustomerVoucher, ResponseList } from "../../../interfaces";
3
- interface CustomerVoucherProps extends Omit<UseQueryOptions<ResponseList<"Vouchers", CustomerVoucher>>, "queryKey"> {
3
+ interface CustomerVoucherProps extends Omit<UseQueryOptions<ResponseList<"CustomerVouchers", CustomerVoucher>>, "queryKey"> {
4
4
  page: number;
5
5
  records: number;
6
6
  sortBy: string;
7
7
  sortDirection: string;
8
8
  }
9
- export declare const getCustomerVouchersQueryHook: (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerVoucherProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Vouchers", CustomerVoucher>, unknown>;
9
+ export declare const getCustomerVouchersQueryHook: (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerVoucherProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"CustomerVouchers", CustomerVoucher>, unknown>;
10
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.52",
3
+ "version": "0.3.53",
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 { CustomerHistory, ResponseList } from "../../../interfaces";
3
3
  import { get } from "../../../services/ApiService";
4
4
 
5
- interface CustomerHistoryProps extends Omit<UseQueryOptions<ResponseList<"Histories", CustomerHistory>>, "queryKey"> {
5
+ interface CustomerHistoryProps extends Omit<UseQueryOptions<ResponseList<"CustomerHistories", CustomerHistory>>, "queryKey"> {
6
6
  page: number;
7
7
  records: number;
8
8
  sortBy: string;
@@ -12,7 +12,7 @@ interface CustomerHistoryProps extends Omit<UseQueryOptions<ResponseList<"Histor
12
12
  export const getCustomerHistoryQueryHook = (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerHistoryProps) => {
13
13
  return useQuery(
14
14
  ['CUSTOMER_HISTORY_QUERY', customerId, page, records, sortBy, sortDirection, options],
15
- () => get<ResponseList<"Histories", CustomerHistory>>(`/GNG/Salesforce/CustomerHistories/${customerId}`, {
15
+ () => get<ResponseList<"CustomerHistories", CustomerHistory>>(`/GNG/Salesforce/CustomerHistories/${customerId}`, {
16
16
  pPage: page,
17
17
  pRecords: records,
18
18
  pSortBy: sortBy,
@@ -2,7 +2,7 @@ import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
2
  import { CustomerVoucher, ResponseList } from "../../../interfaces";
3
3
  import { get } from "../../../services/ApiService";
4
4
 
5
- interface CustomerVoucherProps extends Omit<UseQueryOptions<ResponseList<"Vouchers", CustomerVoucher>>, "queryKey"> {
5
+ interface CustomerVoucherProps extends Omit<UseQueryOptions<ResponseList<"CustomerVouchers", CustomerVoucher>>, "queryKey"> {
6
6
  page: number;
7
7
  records: number;
8
8
  sortBy: string;
@@ -12,7 +12,7 @@ interface CustomerVoucherProps extends Omit<UseQueryOptions<ResponseList<"Vouche
12
12
  export const getCustomerVouchersQueryHook = (customerId: string, { page, records, sortBy, sortDirection, ...options }: CustomerVoucherProps) => {
13
13
  return useQuery(
14
14
  ['CUSTOMER_VOUCHERS_QUERY', page, records, sortBy, sortDirection, customerId, options],
15
- () => get<ResponseList<"Vouchers", CustomerVoucher>>(`/GNG/Salesforce/CustomerVouchers/${customerId}`, {
15
+ () => get<ResponseList<"CustomerVouchers", CustomerVoucher>>(`/GNG/Salesforce/CustomerVouchers/${customerId}`, {
16
16
  pPage: page,
17
17
  pRecords: records,
18
18
  pSortBy: sortBy,