@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.
@@ -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";
@@ -0,0 +1,8 @@
1
+ export interface PickedProducts {
2
+ id: string;
3
+ barcode: string;
4
+ description: string;
5
+ packageName: string;
6
+ imageUrl?: string;
7
+ updateDate: string;
8
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.2.65",
3
+ "version": "0.2.66",
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,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
+ }
@@ -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";
@@ -0,0 +1,8 @@
1
+ export interface PickedProducts {
2
+ id: string;
3
+ barcode: string;
4
+ description: string;
5
+ packageName: string;
6
+ imageUrl?: string;
7
+ updateDate: string;
8
+ }
@@ -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';