@omniumretail/shared-resources 0.3.65 → 0.3.67
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/mutate/deleteManualPackageQuery.hook.d.ts +7 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/a2ai.scss +2 -2
- package/src/hooks/Astt/mutate/deleteManualPackageQuery.hook.ts +23 -0
- package/src/hooks/index.ts +1 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface DeleteManualPackageProps {
|
|
2
|
+
transferDocumentId: string;
|
|
3
|
+
packageId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const deleteManualPackageQueryHook: ({ transferDocumentId, packageId }: DeleteManualPackageProps) => import("@tanstack/react-query").UseMutationResult<{
|
|
6
|
+
Success: boolean;
|
|
7
|
+
}, unknown, void, unknown>;
|
|
@@ -143,6 +143,7 @@ export * from "./Astt/mutate/postAsttActionsQuery.hook";
|
|
|
143
143
|
export * from "./Astt/get/getReconciliationDocumentsQuery.hook";
|
|
144
144
|
export * from "./Astt/get/getManualPackagesListQuery.hook";
|
|
145
145
|
export * from "./Astt/mutate/updateDocumentIdQuery.hook";
|
|
146
|
+
export * from "./Astt/mutate/deleteManualPackageQuery.hook";
|
|
146
147
|
export * from "./Astt/Asgt/get/getTransferDocumentsASTTQuery.hook";
|
|
147
148
|
export * from "./Astt/Asgt/get/getTransferDocumentsByIdASTTQuery.hook";
|
|
148
149
|
export * from "./Astt/Asgt/get/getTransferDocumentsByPackageASTTQuery.hook";
|
package/package.json
CHANGED
package/src/a2ai.scss
CHANGED
|
@@ -52,8 +52,8 @@ body.a2aiStyle {
|
|
|
52
52
|
|
|
53
53
|
--color-grey-light: #D9D9D9;
|
|
54
54
|
--color-grey-light-rgb: 217, 217, 217;
|
|
55
|
-
--color-grey: #
|
|
56
|
-
--color-grey-rgb:
|
|
55
|
+
--color-grey: #C7CAC9;
|
|
56
|
+
--color-grey-rgb: 199, 202, 201;
|
|
57
57
|
--color-grey-dark: #797979;
|
|
58
58
|
--color-grey-dark-rgb: 121, 121, 121;
|
|
59
59
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { toDeleteAuth0 } from '../../../services/ApiService';
|
|
3
|
+
|
|
4
|
+
export interface DeleteManualPackageProps {
|
|
5
|
+
transferDocumentId: string;
|
|
6
|
+
packageId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const deleteManualPackageQueryHook = ({ transferDocumentId, packageId }: DeleteManualPackageProps) => {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
return useMutation<{ Success: boolean }, unknown, void>(() => {
|
|
12
|
+
return toDeleteAuth0<{ Success: boolean }>(`/ASTT/TransferDocuments/Manual/Package?`, {
|
|
13
|
+
pTransferDocumentId: transferDocumentId,
|
|
14
|
+
pPackageId: packageId
|
|
15
|
+
});
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: (data: { Success: boolean }) => {
|
|
18
|
+
queryClient.setQueryData(
|
|
19
|
+
['DELETE_MANUAL_PACKAGE_QUERY'], data);
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
package/src/hooks/index.ts
CHANGED
|
@@ -166,6 +166,7 @@ export * from "./Astt/mutate/postAsttActionsQuery.hook";
|
|
|
166
166
|
export * from "./Astt/get/getReconciliationDocumentsQuery.hook";
|
|
167
167
|
export * from "./Astt/get/getManualPackagesListQuery.hook";
|
|
168
168
|
export * from "./Astt/mutate/updateDocumentIdQuery.hook";
|
|
169
|
+
export * from "./Astt/mutate/deleteManualPackageQuery.hook";
|
|
169
170
|
|
|
170
171
|
//Astt Asgt
|
|
171
172
|
export * from "./Astt/Asgt/get/getTransferDocumentsASTTQuery.hook";
|