@go-avro/avro-js 0.0.2-beta.167 → 0.0.2-beta.169

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.
@@ -4,7 +4,7 @@ AvroQueryClient.prototype.useCreateCatalogItem = function () {
4
4
  const queryClient = this.getQueryClient();
5
5
  return useMutation({
6
6
  mutationFn: async ({ data }) => {
7
- return this.post(`/company/${this.companyId}/catalog`, JSON.stringify(data), undefined, { 'Content-Type': 'application/json' });
7
+ return this.post(`/company/${this.companyId}/catalog_item`, JSON.stringify(data), undefined, { 'Content-Type': 'application/json' });
8
8
  },
9
9
  onMutate: async () => {
10
10
  await queryClient.cancelQueries({ queryKey: ['catalog_items', this.companyId] });
@@ -421,14 +421,13 @@ export interface Bill {
421
421
  customer_email: string | null;
422
422
  manual_emails: string[][];
423
423
  users: BillUser[];
424
- paid: boolean;
425
- paid_at: number;
424
+ status: "SENT" | "PAID" | "PARTIALLY_PAID" | "MANUALLY_PAID";
426
425
  time_created: number;
427
426
  time_updated: number;
428
427
  events: string[];
429
428
  intent_created_at: number;
430
429
  intent_last_created_at: number;
431
- payment: BillPayment | null;
430
+ payments: BillPayment[];
432
431
  line_items: CustomLineItem[];
433
432
  months: string[];
434
433
  due_date: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.167",
3
+ "version": "0.0.2-beta.169",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",