@omniumretail/shared-resources 0.1.47 → 0.1.48

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,9 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { TransferReportDiff, ResponseList } from "../../interfaces";
3
+ export interface TransferReportDiffProps extends UseQueryOptions<ResponseList<"ProductsToBePicked", TransferReportDiff>> {
4
+ transferDocumentId?: string;
5
+ }
6
+ export declare const getTransferReportDiffQueryHook: ({ transferDocumentId }: TransferReportDiffProps) => import("@tanstack/react-query").UseQueryResult<{
7
+ ProductsToBePicked: TransferReportDiff[];
8
+ FalsePositiveProducts?: TransferReportDiff[];
9
+ }, unknown>;
@@ -48,6 +48,7 @@ export * from './Astt/getTransferDocumentsByIdQuery.hook';
48
48
  export * from './Astt/getTransferDocumentsByPackageQuery.hook';
49
49
  export * from './Astt/getTransferStatesQuery.hook';
50
50
  export * from './Astt/getTransferDocumentsPackagesQuery.hook';
51
+ export * from './Astt/getTransferReportDiff.hook';
51
52
  export * from './Others/useJobTitlesQuery.hook';
52
53
  export * from './Others/useContractStatesQuery.hook';
53
54
  export * from './Others/useApplicationDataQuery.hook';
@@ -0,0 +1,8 @@
1
+ export interface TransferReportDiff {
2
+ Barcode: string;
3
+ Reference: string;
4
+ Custom1: string;
5
+ Custom2: string;
6
+ Custom3: string;
7
+ Quantity: number;
8
+ }
@@ -34,3 +34,4 @@ export * from './TransferPackage';
34
34
  export * from './TransferStates';
35
35
  export * from './UserEmailStatus';
36
36
  export * from './PriceChange';
37
+ export * from './TransferReportDiff';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
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,18 @@
1
+ import { useQuery, UseQueryOptions } from "@tanstack/react-query";
2
+ import { TransferReportDiff, ResponseList } from "../../interfaces";
3
+ import { get } from "../../services/ApiService";
4
+
5
+ export interface TransferReportDiffProps extends UseQueryOptions<ResponseList<"ProductsToBePicked", TransferReportDiff>> {
6
+ transferDocumentId?: string;
7
+ }
8
+
9
+ export const getTransferReportDiffQueryHook = ({ transferDocumentId }: TransferReportDiffProps) => {
10
+ return useQuery(
11
+ ['ASTT_TRANSFER_REPORT_DIFF', transferDocumentId],
12
+ () => get<{ ProductsToBePicked: TransferReportDiff[]; FalsePositiveProducts?: TransferReportDiff[] }>(`/ASTT/TransferDocuments/${transferDocumentId}/DifferencesReport`,
13
+ {}),
14
+ {
15
+ keepPreviousData: true,
16
+ }
17
+ );
18
+ }
@@ -67,6 +67,7 @@ export * from './Astt/getTransferDocumentsByIdQuery.hook';
67
67
  export * from './Astt/getTransferDocumentsByPackageQuery.hook';
68
68
  export * from './Astt/getTransferStatesQuery.hook';
69
69
  export * from './Astt/getTransferDocumentsPackagesQuery.hook';
70
+ export * from './Astt/getTransferReportDiff.hook';
70
71
 
71
72
  //Others
72
73
  export * from './Others/useJobTitlesQuery.hook';
@@ -0,0 +1,9 @@
1
+
2
+ export interface TransferReportDiff {
3
+ Barcode: string;
4
+ Reference: string;
5
+ Custom1: string;
6
+ Custom2: string;
7
+ Custom3: string;
8
+ Quantity: number;
9
+ }
@@ -34,3 +34,4 @@ export * from './TransferPackage';
34
34
  export * from './TransferStates';
35
35
  export * from './UserEmailStatus';
36
36
  export * from './PriceChange';
37
+ export * from './TransferReportDiff';