@go-avro/avro-js 1.7.1 → 1.7.3
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/types/api/Avro.d.ts
CHANGED
|
@@ -183,6 +183,9 @@ export interface ErrorLogEntry {
|
|
|
183
183
|
client_version?: string | null;
|
|
184
184
|
js_version?: string | null;
|
|
185
185
|
user_agent?: string | null;
|
|
186
|
+
content_type?: string | null;
|
|
187
|
+
content_length?: number | null;
|
|
188
|
+
received?: string[] | string | null;
|
|
186
189
|
remote_addr?: string | null;
|
|
187
190
|
forwarded_for?: string | null;
|
|
188
191
|
source_ip?: string | null;
|
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.3";
|
package/dist/version.js
CHANGED