32 lines
594 B
TypeScript
32 lines
594 B
TypeScript
export const maximumAttachmentSize = 100 * 1024 * 1024; // 100 MB
|
|
|
|
export type FileMeta = {
|
|
name: string;
|
|
lastModified: number;
|
|
contentType: string;
|
|
size: number;
|
|
perm: "ro" | "rw";
|
|
} & Record<string, any>;
|
|
|
|
export type PageMeta = {
|
|
name: string;
|
|
lastModified: number;
|
|
lastOpened?: number;
|
|
perm: "ro" | "rw";
|
|
} & Record<string, any>;
|
|
|
|
export type AttachmentMeta = {
|
|
name: string;
|
|
contentType: string;
|
|
lastModified: number;
|
|
size: number;
|
|
perm: "ro" | "rw";
|
|
};
|
|
|
|
// Used by FilterBox
|
|
export type FilterOption = {
|
|
name: string;
|
|
orderId?: number;
|
|
hint?: string;
|
|
};
|