@omniumretail/shared-resources 0.3.44 → 0.3.46
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.
- package/dist/bundle.js +1 -1
- package/dist/types/hooks/Astt/get/getBarcodesListingQuery.hook.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/interfaces/TransferPackage.d.ts +3 -1
- package/package.json +1 -1
- package/src/hooks/Astt/get/getBarcodesListingQuery.hook.ts +13 -0
- package/src/hooks/index.ts +1 -0
- package/src/interfaces/TransferPackage.ts +3 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TransferPackage } from '../../..';
|
|
2
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
export declare const getBarcodesListingQueryHook: (transferId: string, { ...options }: UseQueryOptions<TransferPackage>) => import("@tanstack/react-query").UseQueryResult<TransferPackage, unknown>;
|
|
@@ -133,6 +133,7 @@ export * from "./Astt/get/getReportsBuilderQuery.hook";
|
|
|
133
133
|
export * from "./Astt/get/getRfidQuery.hook";
|
|
134
134
|
export * from "./Astt/get/getProductsListingQuery.hook";
|
|
135
135
|
export * from "./Astt/get/getBarcodesPrintQuery.hook";
|
|
136
|
+
export * from "./Astt/get/getBarcodesListingQuery.hook";
|
|
136
137
|
export * from "./Astt/Asgt/get/getTransferDocumentsASTTQuery.hook";
|
|
137
138
|
export * from "./Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook";
|
|
138
139
|
export * from "./Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook";
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getAuth0, TransferPackage } from '../../..';
|
|
2
|
+
import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export const getBarcodesListingQueryHook = (transferId: string, { ...options }: UseQueryOptions<TransferPackage>) => {
|
|
5
|
+
return useQuery(
|
|
6
|
+
['ASTT_BARCODES_LISTING', transferId, options],
|
|
7
|
+
() => getAuth0<TransferPackage>(`/ASTT/TransferDocuments/BarcodesListing`, {
|
|
8
|
+
pTransferDocumentId: transferId,
|
|
9
|
+
}),
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
|
package/src/hooks/index.ts
CHANGED
|
@@ -156,6 +156,7 @@ export * from "./Astt/get/getReportsBuilderQuery.hook";
|
|
|
156
156
|
export * from "./Astt/get/getRfidQuery.hook";
|
|
157
157
|
export * from "./Astt/get/getProductsListingQuery.hook";
|
|
158
158
|
export * from "./Astt/get/getBarcodesPrintQuery.hook";
|
|
159
|
+
export * from "./Astt/get/getBarcodesListingQuery.hook";
|
|
159
160
|
|
|
160
161
|
//Astt Asgt
|
|
161
162
|
export * from "./Astt/Asgt/get/getTransferDocumentsASTTQuery.hook";
|