organizrr/src/global.d.ts
RaviAnand Mohabir 2110d86129
Some checks reported errors
continuous-integration/drone/push Build encountered an error
fix: 🏷️ move types to global.d.ts to include in global function
2025-04-25 16:09:31 +02:00

34 lines
588 B
TypeScript

export interface Customer {
firstName: string;
lastName: string;
}
export interface Document {
id: string;
file: File;
}
export interface CustomerFile {
id: string;
documents: CustomerDocument[];
suffix: string;
}
export interface CustomerDocument {
id: string;
selectedPages: string[];
}
export interface CreateArchiveInput {
customer: Customer;
documents: Document[];
files: CustomerFile[];
}
export interface CreateArchiveResult {
resultArchive?: string;
error?: string;
}
declare function createArchive(payload: CreateArchiveInput): Promise<string>;