@omniumretail/shared-resources 0.2.65 → 0.2.66
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/Asgt/get/getProductsPickedASGTQuery.hook.d.ts +6 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/interfaces/ProductsPickedTransfers.d.ts +8 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/hooks/Asgt/get/getProductsPickedASGTQuery.hook.ts +19 -0
- package/src/hooks/index.ts +1 -0
- package/src/interfaces/ProductsPickedTransfers.ts +8 -0
- package/src/interfaces/index.ts +2 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { PickedProducts, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface ProductsPickedASGTProps extends UseQueryOptions<ResponseList<"PickedProducts", PickedProducts>> {
|
|
4
|
+
query?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const getProductsPickedASGT: ({ query, ...options }: ProductsPickedASGTProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"PickedProducts", PickedProducts>, unknown>;
|
|
@@ -134,6 +134,7 @@ export * from "./Asgt/get/getReportsBuilderASGTQuery.hook";
|
|
|
134
134
|
export * from "./Asgt/get/getProductsListingASGTQuery.hook";
|
|
135
135
|
export * from "./Asgt/mutate/createPackageASGTMutateQuery.hook";
|
|
136
136
|
export * from "./Asgt/mutate/createTransferASGTMutateQuery.hook";
|
|
137
|
+
export * from "./Asgt/get/getProductsPickedASGTQuery.hook";
|
|
137
138
|
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
|
138
139
|
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
|
139
140
|
export * from "./ATIM/PicaPonto/mutate/postVerifyUserQuery.hook";
|
|
@@ -12,6 +12,7 @@ export * from './Answer';
|
|
|
12
12
|
export * from './AnalyticsUserId';
|
|
13
13
|
export * from './Cart';
|
|
14
14
|
export * from './ProductsHierarchies';
|
|
15
|
+
export * from './ProductsPickedTransfers';
|
|
15
16
|
export * from './Brand';
|
|
16
17
|
export * from './Countries';
|
|
17
18
|
export * from './Roles';
|
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { PickedProducts, ResponseList } from "../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface ProductsPickedASGTProps extends UseQueryOptions<ResponseList<"PickedProducts", PickedProducts>> {
|
|
6
|
+
query?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const getProductsPickedASGT = ({ query, ...options }: ProductsPickedASGTProps) => {
|
|
10
|
+
return useQuery(
|
|
11
|
+
['ASGT_PICKED_PRODUCTS', query, options],
|
|
12
|
+
() => getAuth0<ResponseList<"PickedProducts", PickedProducts>>('/ASGT/TransferDocuments/Products/Picked', {
|
|
13
|
+
|
|
14
|
+
pQuery: query
|
|
15
|
+
}),
|
|
16
|
+
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
package/src/hooks/index.ts
CHANGED
|
@@ -159,6 +159,7 @@ export * from "./Asgt/get/getReportsBuilderASGTQuery.hook";
|
|
|
159
159
|
export * from "./Asgt/get/getProductsListingASGTQuery.hook";
|
|
160
160
|
export * from "./Asgt/mutate/createPackageASGTMutateQuery.hook";
|
|
161
161
|
export * from "./Asgt/mutate/createTransferASGTMutateQuery.hook";
|
|
162
|
+
export * from "./Asgt/get/getProductsPickedASGTQuery.hook";
|
|
162
163
|
|
|
163
164
|
//ATIM
|
|
164
165
|
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
package/src/interfaces/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './Answer';
|
|
|
12
12
|
export * from './AnalyticsUserId';
|
|
13
13
|
export * from './Cart';
|
|
14
14
|
export * from './ProductsHierarchies';
|
|
15
|
+
export * from './ProductsPickedTransfers';
|
|
15
16
|
export * from './Brand';
|
|
16
17
|
export * from './Countries';
|
|
17
18
|
export * from './Roles';
|
|
@@ -59,4 +60,4 @@ export * from './MIMO';
|
|
|
59
60
|
export * from './Bulk';
|
|
60
61
|
export * from './AttendanceIssues';
|
|
61
62
|
export * from './Bwg';
|
|
62
|
-
export * from './ReasonCodes';
|
|
63
|
+
export * from './ReasonCodes';
|