@go-avro/avro-js 0.0.2-beta.176 → 0.0.2-beta.178
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.
- package/dist/client/hooks/bills.js +2 -1
- package/dist/types/api.d.ts +10 -12
- package/package.json +1 -1
|
@@ -43,7 +43,8 @@ AvroQueryClient.prototype.useCreateBill = function () {
|
|
|
43
43
|
events: data.events ?? [],
|
|
44
44
|
months: data.months ?? [],
|
|
45
45
|
line_items: data.line_items ?? [],
|
|
46
|
-
manual_emails: data.manual_emails,
|
|
46
|
+
manual_emails: data.manual_emails ?? [],
|
|
47
|
+
prepayments: data.prepayments ?? [],
|
|
47
48
|
users: data.users,
|
|
48
49
|
due_date: data.due_date,
|
|
49
50
|
};
|
package/dist/types/api.d.ts
CHANGED
|
@@ -138,12 +138,17 @@ export declare const LineItemStatus: {
|
|
|
138
138
|
export type LineItemStatus = typeof LineItemStatus[keyof typeof LineItemStatus];
|
|
139
139
|
export interface LineItem {
|
|
140
140
|
id: string;
|
|
141
|
-
line_item_type: "CUSTOM" | "ADDITIONAL_CHARGE" | "EVENT" | "SERVICE_MONTH";
|
|
141
|
+
line_item_type: "CUSTOM" | "ADDITIONAL_CHARGE" | "EVENT" | "SERVICE_MONTH" | "PREPAYMENT";
|
|
142
142
|
name: string;
|
|
143
143
|
description: string;
|
|
144
|
-
cost: number
|
|
145
|
-
amount: number
|
|
144
|
+
cost: number;
|
|
145
|
+
amount: number;
|
|
146
146
|
status: LineItemStatus;
|
|
147
|
+
job_id: string;
|
|
148
|
+
job_name: string;
|
|
149
|
+
job_address: string;
|
|
150
|
+
job_labels: string[];
|
|
151
|
+
company_id: string;
|
|
147
152
|
time_created: number;
|
|
148
153
|
}
|
|
149
154
|
export interface CustomLineItem extends LineItem {
|
|
@@ -294,10 +299,6 @@ export interface Break {
|
|
|
294
299
|
}
|
|
295
300
|
export interface ServiceMonth extends LineItem {
|
|
296
301
|
line_item_type: "SERVICE_MONTH";
|
|
297
|
-
job_name: string;
|
|
298
|
-
job_id: string | null;
|
|
299
|
-
job_address: string;
|
|
300
|
-
job_labels: string[];
|
|
301
302
|
bill_id: string | null;
|
|
302
303
|
tasks: string[];
|
|
303
304
|
time_updated: number | null;
|
|
@@ -444,6 +445,7 @@ export interface Bill {
|
|
|
444
445
|
intent_last_created_at: number;
|
|
445
446
|
payments: BillPayment[];
|
|
446
447
|
line_items: CustomLineItem[];
|
|
448
|
+
prepayments: Prepayment[];
|
|
447
449
|
months: string[];
|
|
448
450
|
due_date: number;
|
|
449
451
|
}
|
|
@@ -566,8 +568,8 @@ export interface Job {
|
|
|
566
568
|
export interface Prepayment extends LineItem {
|
|
567
569
|
id: string;
|
|
568
570
|
task_id: string | null;
|
|
571
|
+
line_item_type: "PREPAYMENT";
|
|
569
572
|
type: "SERVICE" | "MONTH";
|
|
570
|
-
time_created: number;
|
|
571
573
|
time_updated: number | null;
|
|
572
574
|
num_events: number;
|
|
573
575
|
num_service_months: number;
|
|
@@ -652,15 +654,11 @@ export interface _Event extends LineItem {
|
|
|
652
654
|
time_ended: number | null;
|
|
653
655
|
time_started: number;
|
|
654
656
|
time_updated: number | null;
|
|
655
|
-
job_id: string;
|
|
656
|
-
job_name: string;
|
|
657
|
-
job_address: string;
|
|
658
657
|
bill_id: string;
|
|
659
658
|
billed_amount: number;
|
|
660
659
|
additional_charges: AdditionalCharge[];
|
|
661
660
|
users: UserEvent[];
|
|
662
661
|
autostart: boolean;
|
|
663
|
-
job_labels: string[];
|
|
664
662
|
}
|
|
665
663
|
export interface FinancialInsightData {
|
|
666
664
|
start: number;
|