@go-avro/avro-js 0.0.73 → 0.0.74
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/client/QueryClient.d.ts +6 -0
- package/dist/client/hooks/bills.js +13 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -392,6 +392,12 @@ declare module '../client/QueryClient' {
|
|
|
392
392
|
}, StandardError, {
|
|
393
393
|
billId: string;
|
|
394
394
|
}>>;
|
|
395
|
+
useCancelBillPayment(): ReturnType<typeof useMutation<{
|
|
396
|
+
msg: string;
|
|
397
|
+
}, StandardError, {
|
|
398
|
+
billId: string;
|
|
399
|
+
paymentId: string;
|
|
400
|
+
}>>;
|
|
395
401
|
useUpdateUserSession(): ReturnType<typeof useMutation<{
|
|
396
402
|
msg: string;
|
|
397
403
|
}, StandardError, {
|
|
@@ -195,6 +195,19 @@ AvroQueryClient.prototype.useDeleteBill = function () {
|
|
|
195
195
|
},
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
+
AvroQueryClient.prototype.useCancelBillPayment = function () {
|
|
199
|
+
const queryClient = this.getQueryClient();
|
|
200
|
+
return useMutation({
|
|
201
|
+
mutationFn: async ({ billId, paymentId }) => {
|
|
202
|
+
return this.put({
|
|
203
|
+
path: `/bill/${billId}/payment/${paymentId}`,
|
|
204
|
+
});
|
|
205
|
+
},
|
|
206
|
+
onSuccess: () => {
|
|
207
|
+
queryClient.invalidateQueries({ queryKey: ['bills'] });
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
};
|
|
198
211
|
AvroQueryClient.prototype.useSyncBillToIntuit = function () {
|
|
199
212
|
const queryClient = this.getQueryClient();
|
|
200
213
|
return useMutation({
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "0.0.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "0.0.74";
|
package/dist/version.js
CHANGED