@omniumretail/shared-resources 0.3.22 → 0.3.23

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.
@@ -3,6 +3,8 @@ import { Rfid } from '../../../../interfaces';
3
3
  export interface RfidInventoryRequest extends UseQueryOptions<Rfid> {
4
4
  transferDocumentId: string;
5
5
  packageId: string;
6
+ }
7
+ export interface RfidTag {
6
8
  Tag: string;
7
9
  }
8
- export declare const postRfidInventoryMutateQueryHook: ({ transferDocumentId, packageId }: RfidInventoryRequest) => import("@tanstack/react-query").UseMutationResult<Rfid, unknown, RfidInventoryRequest[], unknown>;
10
+ export declare const postRfidInventoryMutateQueryHook: ({ transferDocumentId, packageId }: RfidInventoryRequest) => import("@tanstack/react-query").UseMutationResult<Rfid, unknown, RfidTag[], unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -6,14 +6,16 @@ import { Rfid, RfidBarcodes } from '../../../../interfaces';
6
6
  export interface RfidInventoryRequest extends UseQueryOptions<Rfid> {
7
7
  transferDocumentId: string;
8
8
  packageId: string;
9
- Tag: string;
10
9
  }
11
10
 
11
+ export interface RfidTag {
12
+ Tag: string;
13
+ }
12
14
 
13
15
  export const postRfidInventoryMutateQueryHook = ({ transferDocumentId, packageId }: RfidInventoryRequest) => {
14
16
  const queryClient = useQueryClient();
15
- return useMutation<Rfid, unknown, RfidInventoryRequest[]>((data) => {
16
- return postAuth0<ResponseList<"Barcodes", RfidBarcodes>>(`/ASTT/RFID`, {
17
+ return useMutation<Rfid, unknown, RfidTag[]>((data) => {
18
+ return postAuth0<ResponseList<"Barcodes", RfidBarcodes>>(`/ASTT/RFID?`, {
17
19
  pTransferDocumentId: transferDocumentId,
18
20
  pPackageId: packageId
19
21
  }, data);