first commit
This commit is contained in:
5
src/types/config.ts
Normal file
5
src/types/config.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface ClientConfig {
|
||||
baseUrl: string;
|
||||
timeout?: number;
|
||||
retries?: number;
|
||||
}
|
||||
12
src/types/errors.ts
Normal file
12
src/types/errors.ts
Normal 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
8
src/types/validation.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface ValidationResult {
|
||||
valid: boolean;
|
||||
conformanceLevel?: string;
|
||||
structureErrors?: string[];
|
||||
pdfErrors?: string[];
|
||||
}
|
||||
|
||||
export type FileContent = Uint8Array | Blob | File;
|
||||
Reference in New Issue
Block a user