@go-avro/avro-js 1.6.4-rc2 → 1.6.5

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.
@@ -652,14 +652,6 @@ declare module './QueryClient.js' {
652
652
  user_id: string;
653
653
  data: Partial<UserCompanyAssociation>;
654
654
  }>>;
655
- useAddUserCompany(): ReturnType<typeof useMutation<{
656
- msg: string;
657
- id: string;
658
- }, StandardError, {
659
- userId: string;
660
- groupId?: string;
661
- companyId?: string;
662
- }>>;
663
655
  useRemoveUserCompany(): ReturnType<typeof useMutation<{
664
656
  msg: string;
665
657
  }, StandardError, {
@@ -151,24 +151,6 @@ AvroQueryClient.prototype.useCreateUserCompany = function () {
151
151
  },
152
152
  });
153
153
  };
154
- /**
155
- * Add an existing user to a company (the current one by default), optionally
156
- * straight into a group such as a user type, in a single request.
157
- */
158
- AvroQueryClient.prototype.useAddUserCompany = function () {
159
- return useMutation({
160
- mutationFn: async ({ userId, groupId, companyId, }) => {
161
- return this.post({
162
- path: `/company/${companyId ?? this.companyId}/user/${userId}`,
163
- data: JSON.stringify({ user_id: userId, ...(groupId ? { group: groupId } : {}) }),
164
- headers: { 'Content-Type': 'application/json' },
165
- });
166
- },
167
- onSuccess: () => {
168
- this.syncAfterMutation('member', 'company', 'group');
169
- },
170
- });
171
- };
172
154
  AvroQueryClient.prototype.useRemoveUserCompany = function () {
173
155
  const queryClient = this.getQueryClient();
174
156
  return useMutation({
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "1.6.4-rc2";
1
+ export declare const AVRO_JS_VERSION = "1.6.5";
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.6.4-rc2';
3
+ export const AVRO_JS_VERSION = '1.6.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "1.6.4-rc2",
3
+ "version": "1.6.5",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",