@omniumretail/shared-resources 0.2.51 → 0.2.53
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/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.d.ts +8 -5
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.d.ts +1 -3
- package/dist/types/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.d.ts +2 -0
- package/dist/types/hooks/Asgt/get/getProductsListingASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getProductsListingQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getReportsBuilderQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Asgt/get/getTransferAllProductsQuery.hook.d.ts +10 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsByIdQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsByPackageQuery.hook.d.ts +3 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsPackagesQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Asgt/get/getTransferDocumentsQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Asgt/get/getTransferReportDiff.hook.d.ts +12 -0
- package/dist/types/hooks/Asgt/get/getTransferReportDiffASGT.hook.d.ts +12 -0
- package/dist/types/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Asgt/mutate/postTransferDocumentsMutateQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/Asgt/mutate/putTransferDocumentsStateMutateQuery.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/MIMO/get/useErrorHistory.hook.d.ts +7 -0
- package/dist/types/hooks/OSUA/MIMO/get/useIntegrationDataQuery.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +15 -15
- package/package.json +1 -1
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummarySearch.hook.ts +22 -13
- package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +9 -20
- package/src/hooks/ATIM/BackOffice/mutate/useAttendancesById.hook.ts +21 -0
- package/src/hooks/Asgt/get/getProductsListingASGTQuery.hook.ts +14 -0
- package/src/hooks/Asgt/get/getReportsBuilderASGTQuery.hook.ts +12 -0
- package/src/hooks/Asgt/get/getTransferAllProductsASGTQuery.hook.ts +25 -0
- package/src/hooks/Asgt/get/getTransferDocumentsASGTQuery.hook.ts +27 -0
- package/src/hooks/Asgt/get/getTransferDocumentsByIdASGTQuery.hook.ts +12 -0
- package/src/hooks/Asgt/get/getTransferDocumentsByPackageASGTQuery.hook.ts +13 -0
- package/src/hooks/Asgt/get/getTransferDocumentsPackagesASGTQuery.hook.ts +23 -0
- package/src/hooks/Asgt/get/getTransferReportDiffASGT.hook.ts +17 -0
- package/src/hooks/Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook.ts +23 -0
- package/src/hooks/Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook.ts +21 -0
- package/src/hooks/OSUA/MIMO/mutate/updateErrorHistory.hook.ts +25 -0
- package/src/hooks/index.ts +20 -15
- /package/src/hooks/OSUA/{get/mimo → MIMO/get}/useErrorHistory.hook.ts +0 -0
- /package/src/hooks/OSUA/{get/mimo → MIMO/get}/useIntegrationDataQuery.hook.ts +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { TransferPickProducts } from '../../../interfaces/TransferPickProducts';
|
|
3
|
+
import { postAuth0 } from '../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface TransferDocumentsASGTMutateProps extends UseQueryOptions<TransferPickProducts> {
|
|
6
|
+
transferDocumentId: string;
|
|
7
|
+
packageId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const postTransferDocumentsASGTMutateQueryHook = ({ transferDocumentId, packageId }: TransferDocumentsASGTMutateProps) => {
|
|
11
|
+
const queryClient = useQueryClient();
|
|
12
|
+
return useMutation<TransferPickProducts, unknown, TransferPickProducts>((data: TransferPickProducts) => {
|
|
13
|
+
return postAuth0(`/ASGT/TransferDocuments/Products/Picking?`, {
|
|
14
|
+
pTransferDocumentId: transferDocumentId,
|
|
15
|
+
pPackageId: packageId
|
|
16
|
+
}, data);
|
|
17
|
+
}, {
|
|
18
|
+
onSuccess: (data: TransferPickProducts) => {
|
|
19
|
+
queryClient.setQueryData(
|
|
20
|
+
['ASGT_TRANSFER_PICKED_PRODUCTS_QUERY'], data);
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { TransferDocumentState } from '../../../interfaces/TransferDocumentState';
|
|
3
|
+
import { putAuth0 } from '../../../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface TransferDocumentsStateASGTMutateProps extends UseQueryOptions<TransferDocumentState> {
|
|
6
|
+
transferDocumentId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const putTransferDocumentsStateASGTMutateQueryHook = ({ transferDocumentId }: TransferDocumentsStateASGTMutateProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<TransferDocumentState, unknown, TransferDocumentState>((data: TransferDocumentState) => {
|
|
12
|
+
return putAuth0(`/ASGT/TransferDocuments?`, {
|
|
13
|
+
pTransferDocumentId: transferDocumentId
|
|
14
|
+
}, data);
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: (data: TransferDocumentState) => {
|
|
17
|
+
queryClient.setQueryData(
|
|
18
|
+
['ASGT_TRANSFER_PACKAGE_STATE_QUERY'], data);
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
2
|
+
import { putWithParameters } from "../../../../services/ApiService";
|
|
3
|
+
import { ErrorHistoryItem } from "../../../../interfaces";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const updateErrorHistory = () => {
|
|
7
|
+
const queryClient = useQueryClient();
|
|
8
|
+
|
|
9
|
+
return useMutation<ErrorHistoryItem, unknown, ErrorHistoryItem>(
|
|
10
|
+
(data: ErrorHistoryItem) => {
|
|
11
|
+
return putWithParameters(`/MIMO/ErrorHistory?`, {
|
|
12
|
+
pId: data.Id,
|
|
13
|
+
pFlow: data.Flow,
|
|
14
|
+
pMessage: data.ErrorMessage,
|
|
15
|
+
pDate: data.CreateDate,
|
|
16
|
+
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
onSuccess: (data: ErrorHistoryItem) => {
|
|
21
|
+
queryClient.setQueryData(["INTEGRATION_DATA_QUERY"], data);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
package/src/hooks/index.ts
CHANGED
|
@@ -143,18 +143,18 @@ export * from "./Astt/mutate/putTransferDocumentsStateMutateQuery.hook";
|
|
|
143
143
|
export * from "./Astt/get/getReportsBuilderQuery.hook";
|
|
144
144
|
export * from "./Astt/get/getRfidQuery.hook";
|
|
145
145
|
export * from "./Astt/get/getProductsListingQuery.hook";
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
export * from "./
|
|
149
|
-
export * from "./
|
|
150
|
-
export * from "./
|
|
151
|
-
export * from "./
|
|
152
|
-
export * from "./
|
|
153
|
-
export * from "./
|
|
154
|
-
export * from "./
|
|
155
|
-
export * from "./
|
|
156
|
-
export * from "./
|
|
157
|
-
export * from "./
|
|
146
|
+
|
|
147
|
+
//Asgt
|
|
148
|
+
export * from "./Asgt/get/getTransferDocumentsASGTQuery.hook";
|
|
149
|
+
export * from "./Asgt/get/getTransferDocumentsByIdASGTQuery.hook";
|
|
150
|
+
export * from "./Asgt/get/getTransferDocumentsByPackageASGTQuery.hook";
|
|
151
|
+
export * from "./Asgt/get/getTransferDocumentsPackagesASGTQuery.hook";
|
|
152
|
+
export * from "./Asgt/get/getTransferReportDiffASGT.hook";
|
|
153
|
+
export * from "./Asgt/get/getTransferAllProductsASGTQuery.hook";
|
|
154
|
+
export * from "./Asgt/mutate/postTransferDocumentsASGTMutateQuery.hook";
|
|
155
|
+
export * from "./Asgt/mutate/putTransferDocumentsStateASGTMutateQuery.hook";
|
|
156
|
+
export * from "./Asgt/get/getReportsBuilderASGTQuery.hook";
|
|
157
|
+
export * from "./Asgt/get/getProductsListingASGTQuery.hook";
|
|
158
158
|
|
|
159
159
|
//ATIM
|
|
160
160
|
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
|
@@ -282,18 +282,22 @@ export * from "./OSUA/get/vouchers/getSitooVouchers.hook";
|
|
|
282
282
|
export * from "./OSUA/get/vouchers/getVoucherIntegrationRequestStatus.hook";
|
|
283
283
|
export * from "./OSUA/get/orders/getOrderDocuments.hook";
|
|
284
284
|
export * from "./OSUA/get/faqs/getFaqsQuery.hook";
|
|
285
|
-
export * from "./OSUA/get/mimo/useIntegrationDataQuery.hook";
|
|
286
|
-
export * from "./OSUA/get/mimo/useErrorHistory.hook";
|
|
287
285
|
|
|
288
286
|
export * from "./OSUA/mutate/postCreateIntegrationRequest.hook";
|
|
289
287
|
export * from "./OSUA/mutate/useSetIntegrationToFinished.hook";
|
|
288
|
+
export * from "./OSUA/mutate/postCreateIntegrationRequest.hook";
|
|
290
289
|
|
|
291
290
|
//MIMO
|
|
292
291
|
export * from "./OSUA/MIMO/get/getIntegrationByName.hook";
|
|
293
292
|
export * from "./OSUA/MIMO/get/getProductIntegrationHistory.hook";
|
|
293
|
+
export * from "./OSUA/MIMO/get/useIntegrationDataQuery.hook";
|
|
294
|
+
export * from "./OSUA/MIMO/get/useErrorHistory.hook";
|
|
295
|
+
|
|
294
296
|
export * from "./OSUA/MIMO/mutate/postProductVendusIntegration.hook";
|
|
295
297
|
export * from "./OSUA/MIMO/mutate/postDagsAdjustStock.hook";
|
|
296
|
-
export * from "./OSUA/mutate/
|
|
298
|
+
export * from "./OSUA/MIMO/mutate/updateErrorHistory.hook";
|
|
299
|
+
|
|
300
|
+
|
|
297
301
|
|
|
298
302
|
//MIMO
|
|
299
303
|
export * from "./OSUA/MIMO/get/getIntegrationByName.hook";
|
|
@@ -329,6 +333,7 @@ export * from "./ATIM/BackOffice/get/useAttendancesSummary.hook";
|
|
|
329
333
|
export * from "./ATIM/BackOffice/get/useAttendancesSummarySearch.hook";
|
|
330
334
|
export * from "./ATIM/BackOffice/get/useWorkMonths.hook";
|
|
331
335
|
export * from "./ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook";
|
|
336
|
+
export * from "./ATIM/BackOffice/mutate/useAttendancesById.hook";
|
|
332
337
|
|
|
333
338
|
//Others
|
|
334
339
|
export * from "./Others/useJobTitlesQuery.hook";
|
|
File without changes
|
|
File without changes
|