@go-avro/avro-js 0.0.2-beta.101 → 0.0.2-beta.102
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.
|
@@ -376,10 +376,5 @@ export declare class AvroQueryClient {
|
|
|
376
376
|
offset?: number;
|
|
377
377
|
}, cancelToken?: CancelToken, headers?: Record<string, string>): Promise<any>;
|
|
378
378
|
sendEmail(emailId: string, formData: FormData, progressUpdateCallback?: (loaded: number, total: number) => void): Promise<void>;
|
|
379
|
-
createBill(data:
|
|
380
|
-
line_items: LineItem[];
|
|
381
|
-
due_date: number;
|
|
382
|
-
users: string[];
|
|
383
|
-
custom_emails: [string, string][];
|
|
384
|
-
}, cancelToken?: CancelToken): Promise<any>;
|
|
379
|
+
createBill(data: Partial<Bill>, cancelToken?: CancelToken): Promise<any>;
|
|
385
380
|
}
|
|
@@ -385,11 +385,11 @@ export class AvroQueryClient {
|
|
|
385
385
|
throw new StandardError(400, 'Company ID is required');
|
|
386
386
|
}
|
|
387
387
|
const body = {
|
|
388
|
-
events: data.
|
|
389
|
-
months: data.
|
|
390
|
-
line_items: data.line_items
|
|
391
|
-
manual_emails: data.
|
|
392
|
-
users: data.users,
|
|
388
|
+
events: data.events ?? [],
|
|
389
|
+
months: data.months ?? [],
|
|
390
|
+
line_items: data.line_items ?? [],
|
|
391
|
+
manual_emails: data.manual_emails ?? [],
|
|
392
|
+
users: data.users ?? [],
|
|
393
393
|
due_date: data.due_date,
|
|
394
394
|
};
|
|
395
395
|
try {
|