first commit

This commit is contained in:
Raul Lugo
2024-12-25 20:30:57 +01:00
commit 6ef22531bb
165 changed files with 53426 additions and 0 deletions

5
src/types/config.ts Normal file
View File

@@ -0,0 +1,5 @@
export interface ClientConfig {
baseUrl: string;
timeout?: number;
retries?: number;
}

12
src/types/errors.ts Normal file
View File

@@ -0,0 +1,12 @@
export class ValidationError extends Error {
constructor(message: string, public statusCode?: number) {
super(message);
this.name = "ValidationError";
}
}
export interface ApiError {
status: string;
message: string;
details?: string;
}

8
src/types/validation.ts Normal file
View File

@@ -0,0 +1,8 @@
export interface ValidationResult {
valid: boolean;
conformanceLevel?: string;
structureErrors?: string[];
pdfErrors?: string[];
}
export type FileContent = Uint8Array | Blob | File;