@omniumretail/shared-resources 0.3.7 → 0.3.9

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 postAudioFileHook: (bodyType?: string) => import("@tanstack/react-query").UseMutationResult<any, unknown, any, unknown>;
@@ -0,0 +1 @@
1
+ export declare const reprocessingInstanceQueryHook: (instanceId: string[]) => import("@tanstack/react-query").UseMutationResult<any, unknown, string[], unknown>;
@@ -115,6 +115,7 @@ export * from "./Asts/get/getProductInfoQuery.hook";
115
115
  export * from "./Asts/get/getStockQuery.hook";
116
116
  export * from "./Asts/get/getProductInfoQuery.hook";
117
117
  export * from "./Asts/get/getStockQuery.hook";
118
+ export * from "./Asts/others/postAudioFileQuery.hook";
118
119
  export * from "./Astt/get/getTransferDocumentsQuery.hook";
119
120
  export * from "./Astt/get/getTransferDocumentsByIdQuery.hook";
120
121
  export * from "./Astt/get/getDocumentsFindByIdQuery.hook";
@@ -324,6 +325,7 @@ export * from './Orch/get/getInstancesQuery.hook';
324
325
  export * from './Orch/get/getMacrosQuery.hook';
325
326
  export * from './Orch/get/getInstanceByIdQuery.hook';
326
327
  export * from './Orch/others/runMacrosQuery.hook';
328
+ export * from './Orch/others/reprocessingInstanceQuery.hook';
327
329
  export * from './Orch/get/getMacrosUserQuery.hook';
328
330
  export * from "./ATIM/BackOffice/get/useEmployeeWorklogDetails.hook";
329
331
  export * from "./ATIM/BackOffice/get/useEmployeeQueryHook.hook";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.07",
3
+ "version": "0.3.09",
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,14 @@
1
+ import { useMutation, useQueryClient } from '@tanstack/react-query';
2
+ import { postAuth0 } from '../../../services/ApiService';
3
+
4
+ export const postAudioFileHook = (bodyType?: string) => {
5
+ const queryClient = useQueryClient();
6
+ return useMutation<any, unknown, any>((data: any) => {
7
+ return postAuth0(`/ASTS/Product/FindByAudio`, undefined, data, bodyType);
8
+ }, {
9
+ onSuccess: (data: string) => {
10
+ queryClient.setQueryData(
11
+ ['AUDIO_FILE_QUERY'], data);
12
+ },
13
+ });
14
+ }
@@ -0,0 +1,14 @@
1
+ import { useMutation, useQueryClient } from '@tanstack/react-query';
2
+ import { postAuth0 } from '../../../services/ApiService';
3
+
4
+ export const reprocessingInstanceQueryHook = (instanceId: string[]) => {
5
+ const queryClient = useQueryClient();
6
+ return useMutation<any, unknown, string[]>(() => {
7
+ return postAuth0(`/ORQ/Instances/Reprocessing?`, undefined, instanceId);
8
+ }, {
9
+ onSuccess: (data) => {
10
+ queryClient.setQueryData(
11
+ ['REPROCESSING_INSTANCE_QUERY'], data);
12
+ },
13
+ });
14
+ }
@@ -136,6 +136,7 @@ export * from "./Asts/get/getProductInfoQuery.hook";
136
136
  export * from "./Asts/get/getStockQuery.hook";
137
137
  export * from "./Asts/get/getProductInfoQuery.hook";
138
138
  export * from "./Asts/get/getStockQuery.hook";
139
+ export * from "./Asts/others/postAudioFileQuery.hook";
139
140
 
140
141
  //Astt
141
142
  export * from "./Astt/get/getTransferDocumentsQuery.hook";
@@ -381,6 +382,7 @@ export * from './Orch/get/getInstancesQuery.hook';
381
382
  export * from './Orch/get/getMacrosQuery.hook';
382
383
  export * from './Orch/get/getInstanceByIdQuery.hook';
383
384
  export * from './Orch/others/runMacrosQuery.hook';
385
+ export * from './Orch/others/reprocessingInstanceQuery.hook';
384
386
  export * from './Orch/get/getMacrosUserQuery.hook';
385
387
 
386
388
  //BackofficeAtim