@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
+ };
@@ -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";
1
+ export declare const AVRO_JS_VERSION = "1.7.3";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Regenerated from package.json by the `prebuild` npm hook.
3
- export const AVRO_JS_VERSION = '1.7.1';
3
+ export const AVRO_JS_VERSION = '1.7.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",