supported attachment upload

This commit is contained in:
2024-01-05 11:55:33 +01:00
parent 64c7ee4474
commit 8b7cd45087
3 changed files with 108 additions and 21 deletions

View File

@@ -1,5 +1,13 @@
import { ObjectId } from "mongodb";
export interface BillAttachment {
fileName: string;
fileSize: number;
fileType: string;
fileLastModified: number;
fileContentsBase64: string;
};
/** Bill basic data */
export interface LocationBase {
name: string;
@@ -25,7 +33,8 @@ export interface PlainLocation {
export interface BillBase {
name: string;
paid: boolean;
document?: string|null;
attachment?: BillAttachment|null;
notes?: string|null;
};
/** bill object in the form returned by MongoDB */