@go-avro/avro-js 0.0.72 → 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.
@@ -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({
@@ -2,6 +2,7 @@ import { BillUser } from '../../types/api/BillUser';
2
2
  import { Chat } from '../../types/api/Chat';
3
3
  import { PaymentMethod } from '../../types/api/PaymentMethod';
4
4
  import { PaymentType } from '../../types/api/PaymentType';
5
+ import { NotificationLevel } from '../../types/api/UserCompanyAssociation';
5
6
  export interface User {
6
7
  id: string;
7
8
  username: string;
@@ -14,6 +15,7 @@ export interface User {
14
15
  time_created: number;
15
16
  time_updated: number | null;
16
17
  share_location: boolean;
18
+ notification_setting: NotificationLevel[] | null;
17
19
  can_send_emails: boolean | null;
18
20
  payment_methods: PaymentMethod[];
19
21
  autopay_payment_types: PaymentType[];
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const AVRO_JS_VERSION = "0.0.72";
1
+ export declare const AVRO_JS_VERSION = "0.0.74";
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 = '0.0.72';
3
+ export const AVRO_JS_VERSION = '0.0.74';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",