@omniumretail/shared-resources 0.3.42 → 0.3.43
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 @@
|
|
|
1
|
+
export declare const oneSignalUserQuery: () => import("@tanstack/react-query").UseMutationResult<any, unknown, any, unknown>;
|
|
@@ -405,3 +405,4 @@ export * from "./Others/Vacation/others/rejectVacationPlanQuery.hook";
|
|
|
405
405
|
export * from "./Others/Vacation/get/getVacationTemplateQuery.hook";
|
|
406
406
|
export * from "./Others/changePasswordQuery.hook";
|
|
407
407
|
export * from "./Others/unblockUserQuery.hook";
|
|
408
|
+
export * from "./Others/oneSignalUserQuery.hook";
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { postAuth0 } from '../../services/ApiService';
|
|
3
|
+
|
|
4
|
+
export const oneSignalUserQuery = () => {
|
|
5
|
+
const queryClient = useQueryClient();
|
|
6
|
+
return useMutation<any, unknown, any>(() => {
|
|
7
|
+
return postAuth0('/ANOT/Users/Register', undefined);
|
|
8
|
+
}, {
|
|
9
|
+
onSuccess: (data) => {
|
|
10
|
+
queryClient.setQueryData(
|
|
11
|
+
['ONESIGNAL_USER_QUERY'], data);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
}
|
package/src/hooks/index.ts
CHANGED
|
@@ -472,3 +472,4 @@ export * from "./Others/Vacation/others/rejectVacationPlanQuery.hook";
|
|
|
472
472
|
export * from "./Others/Vacation/get/getVacationTemplateQuery.hook";
|
|
473
473
|
export * from "./Others/changePasswordQuery.hook";
|
|
474
474
|
export * from "./Others/unblockUserQuery.hook";
|
|
475
|
+
export * from "./Others/oneSignalUserQuery.hook";
|