@go-avro/avro-js 1.7.1 → 1.7.2
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.
|
@@ -232,6 +232,13 @@ declare module './QueryClient.js' {
|
|
|
232
232
|
}, StandardError, {
|
|
233
233
|
accountId: string;
|
|
234
234
|
}>>;
|
|
235
|
+
/** Fold `sourceIds` into `accountId` and delete them. */
|
|
236
|
+
useMergeAccounts(): ReturnType<typeof useMutation<{
|
|
237
|
+
msg: string;
|
|
238
|
+
}, StandardError, {
|
|
239
|
+
accountId: string;
|
|
240
|
+
sourceIds: string[];
|
|
241
|
+
}>>;
|
|
235
242
|
useGetWaivers(body: {
|
|
236
243
|
amt?: number;
|
|
237
244
|
known_ids?: string[];
|
|
@@ -50,3 +50,15 @@ AvroQueryClient.prototype.useDeleteAccount = function () {
|
|
|
50
50
|
},
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
+
AvroQueryClient.prototype.useMergeAccounts = function () {
|
|
54
|
+
return useMutation({
|
|
55
|
+
mutationFn: ({ accountId, sourceIds }) => this.post({
|
|
56
|
+
path: `/account/${accountId}/merge`,
|
|
57
|
+
data: JSON.stringify({ accounts: sourceIds }),
|
|
58
|
+
headers: { 'Content-Type': 'application/json' },
|
|
59
|
+
}),
|
|
60
|
+
onSuccess: () => {
|
|
61
|
+
this.syncAfterMutation('account', 'job', 'bill');
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "1.7.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "1.7.2";
|
package/dist/version.js
CHANGED