@go-avro/avro-js 0.0.6 → 0.0.7

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.
@@ -2,6 +2,13 @@ import { BillPayment } from "../../types/api/BillPayment";
2
2
  import { BillUser } from "../../types/api/BillUser";
3
3
  import { CustomLineItem } from "../../types/api/CustomLineItem";
4
4
  import { PaymentType } from "../../types/api/PaymentType";
5
+ export declare const BillStatus: {
6
+ readonly SENT: "SENT";
7
+ readonly PAID: "PAID";
8
+ readonly PARTIALLY_PAID: "PARTIALLY_PAID";
9
+ readonly MANUALLY_PAID: "MANUALLY_PAID";
10
+ };
11
+ export type BillStatus = typeof BillStatus[keyof typeof BillStatus];
5
12
  export interface Bill {
6
13
  id: string;
7
14
  invoice_id: number;
@@ -12,7 +19,7 @@ export interface Bill {
12
19
  customer_email: string | null;
13
20
  manual_emails: string[][];
14
21
  users: BillUser[];
15
- status: "SENT" | "PAID" | "PARTIALLY_PAID" | "MANUALLY_PAID";
22
+ status: BillStatus;
16
23
  enabled_payment_methods: PaymentType[];
17
24
  time_created: number;
18
25
  time_updated: number;
@@ -1 +1,6 @@
1
- export {};
1
+ export const BillStatus = {
2
+ SENT: "SENT",
3
+ PAID: "PAID",
4
+ PARTIALLY_PAID: "PARTIALLY_PAID",
5
+ MANUALLY_PAID: "MANUALLY_PAID"
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",