@omniumretail/shared-resources 0.3.75 → 0.3.76

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,3 +1,4 @@
1
1
  import { UseQueryOptions } from "@tanstack/react-query";
2
2
  import { NotificationApplication } from "../../../interfaces/Anot";
3
- export declare const getNotificationApplications: ({ ...options }: UseQueryOptions<NotificationApplication>) => import("@tanstack/react-query").UseQueryResult<NotificationApplication, unknown>;
3
+ import { ResponseList } from "../../../interfaces/ResponseList";
4
+ export declare const getNotificationApplications: ({ ...options }: Omit<UseQueryOptions<ResponseList<"Applications", NotificationApplication>>, "queryKey">) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Applications", NotificationApplication>, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.75",
3
+ "version": "0.3.76",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -1,11 +1,13 @@
1
1
  import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
2
  import { getAuth0 } from "../../../services/ApiService";
3
3
  import { NotificationApplication } from "../../../interfaces/Anot";
4
+ import { ResponseList } from "../../../interfaces/ResponseList";
4
5
 
5
- export const getNotificationApplications = ({...options} : UseQueryOptions<NotificationApplication>) => {
6
+ export const getNotificationApplications = ({...options} : Omit<UseQueryOptions<ResponseList<"Applications", NotificationApplication>>, "queryKey">) => {
6
7
  return useQuery(
7
8
  ['NOTIFICATION_APPLICATIONS', options],
8
- () => getAuth0<NotificationApplication>(`/AACP/Applications`),
9
+ () => getAuth0<ResponseList<"Applications", NotificationApplication>>(`/AACP/Applications`),
9
10
  options
10
11
  );
11
12
  }
13
+