@go-avro/avro-js 0.0.2-beta.176 → 0.0.2-beta.177
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/types/api.d.ts +9 -12
- package/package.json +1 -1
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;
|
|
@@ -566,8 +567,8 @@ export interface Job {
|
|
|
566
567
|
export interface Prepayment extends LineItem {
|
|
567
568
|
id: string;
|
|
568
569
|
task_id: string | null;
|
|
570
|
+
line_item_type: "PREPAYMENT";
|
|
569
571
|
type: "SERVICE" | "MONTH";
|
|
570
|
-
time_created: number;
|
|
571
572
|
time_updated: number | null;
|
|
572
573
|
num_events: number;
|
|
573
574
|
num_service_months: number;
|
|
@@ -652,15 +653,11 @@ export interface _Event extends LineItem {
|
|
|
652
653
|
time_ended: number | null;
|
|
653
654
|
time_started: number;
|
|
654
655
|
time_updated: number | null;
|
|
655
|
-
job_id: string;
|
|
656
|
-
job_name: string;
|
|
657
|
-
job_address: string;
|
|
658
656
|
bill_id: string;
|
|
659
657
|
billed_amount: number;
|
|
660
658
|
additional_charges: AdditionalCharge[];
|
|
661
659
|
users: UserEvent[];
|
|
662
660
|
autostart: boolean;
|
|
663
|
-
job_labels: string[];
|
|
664
661
|
}
|
|
665
662
|
export interface FinancialInsightData {
|
|
666
663
|
start: number;
|