@omniumretail/shared-resources 0.3.71 → 0.3.72

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.
@@ -0,0 +1,3 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { AnotInterface } from "../../../interfaces/Anot";
3
+ export declare const getNotificationTypeById: (id: string, { ...options }: UseQueryOptions<AnotInterface>) => import("@tanstack/react-query").UseQueryResult<AnotInterface, unknown>;
@@ -400,6 +400,7 @@ export * from "./ASAEGNG/get/getCustomersQuery.hook";
400
400
  export * from "./Anot/get/getNotificationsTypeQuery.hook";
401
401
  export * from "./Anot/mutate/createNotificationTypeQuery.hook";
402
402
  export * from "./Anot/mutate/editNotificationTypeQuery.hook";
403
+ export * from "./Anot/get/getNotificationTypeByIdQuery.hook";
403
404
  export * from "./Others/useJobTitlesQuery.hook";
404
405
  export * from "./Others/useContractStatesQuery.hook";
405
406
  export * from "./Others/useApplicationDataQuery.hook";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.71",
3
+ "version": "0.3.72",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -0,0 +1,11 @@
1
+ import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
+ import { getAuth0 } from "../../../services/ApiService";
3
+ import { AnotInterface } from "../../../interfaces/Anot";
4
+
5
+ export const getNotificationTypeById = (id: string, {...options} : UseQueryOptions<AnotInterface>) => {
6
+ return useQuery(
7
+ ['NOTIFICATION_TYPE_BY_ID_QUERY', id, options],
8
+ () => getAuth0<AnotInterface>(`/ANOT/NotificationTypes/${id}`),
9
+ options
10
+ );
11
+ }
@@ -469,6 +469,7 @@ export * from "./ASAEGNG/get/getCustomersQuery.hook";
469
469
  export * from "./Anot/get/getNotificationsTypeQuery.hook";
470
470
  export * from "./Anot/mutate/createNotificationTypeQuery.hook";
471
471
  export * from "./Anot/mutate/editNotificationTypeQuery.hook";
472
+ export * from "./Anot/get/getNotificationTypeByIdQuery.hook";
472
473
 
473
474
  //Others
474
475
  export * from "./Others/useJobTitlesQuery.hook";