@omniumretail/shared-resources 0.3.3 → 0.3.5

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,3 @@
1
1
  import { UseQueryOptions } from "@tanstack/react-query";
2
2
  import { Instances } from "../../../interfaces";
3
- export declare const getMacrosUserQueryHook: (instanceId: string, userId: string, { ...options }: UseQueryOptions<Instances>) => import("@tanstack/react-query").UseQueryResult<Instances, unknown>;
3
+ export declare const getMacrosUserQueryHook: (instanceId: string, { ...options }: UseQueryOptions<Instances>) => import("@tanstack/react-query").UseQueryResult<Instances, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.03",
3
+ "version": "0.3.05",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -2,12 +2,10 @@ import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
2
  import { Instances } from "../../../interfaces";
3
3
  import { getAuth0 } from "../../../services/ApiService";
4
4
 
5
- export const getMacrosUserQueryHook = (instanceId: string, userId: string, { ...options }: UseQueryOptions<Instances>) => {
5
+ export const getMacrosUserQueryHook = (instanceId: string, { ...options }: UseQueryOptions<Instances>) => {
6
6
  return useQuery(
7
- ['MACROS_USER_QUERY', instanceId, userId, options],
8
- () => getAuth0<Instances>(`/ORQ/Instances/${instanceId}/User`, {
9
- pUserId: userId
10
- }),
7
+ ['MACROS_USER_QUERY', instanceId, options],
8
+ () => getAuth0<Instances>(`/ORQ/Instances/${instanceId}/User`, undefined),
11
9
  options
12
10
  );
13
11
  }