Merged in feature/support-more-types (pull request #219)

support new types for import

* tests pass

* missing file

* bug fixes
This commit is contained in:
Jay Brown
2026-03-31 17:40:42 +00:00
parent 8e9889accc
commit b71a28d3c0
144 changed files with 28352 additions and 91 deletions
+9 -5
View File
@@ -327,7 +327,7 @@ Uploads a document for a specific client.
**Form Parameters**:
- `file` (required): Document file (PDF)
- `file` (required): Document file. Accepted types: PDF, TIFF, JPEG, PNG, BMP, DOCX, XLSX, PPTX, TXT, EML
- `filename` (optional): Custom filename (max 4096 chars)
**Response**: `200` Document uploaded
@@ -463,16 +463,20 @@ Permanently deletes a document and all dependent data: document entries, cleans
### `POST /client/{id}/document/batch`
Uploads a ZIP archive containing multiple PDF documents for asynchronous batch processing.
Uploads a ZIP archive containing multiple documents for asynchronous batch processing.
**Security**: Requires JWT authentication
**Content Type**: `multipart/form-data`
**Max Archive Size**: 1GB
**Supported Archive Type**: ZIP only
**Accepted File Extensions**: `.pdf`, `.tiff`, `.tif`, `.jpeg`, `.jpg`, `.png`, `.bmp`, `.docx`, `.xlsx`, `.pptx`, `.txt`, `.eml`
Note: Macro-enabled Office formats (`.docm`, `.xlsm`, `.pptm`) are intentionally excluded because documents containing macros are rejected during validation.
**Form Parameters**:
- `archive` (required): ZIP file containing PDF documents
- `archive` (required): ZIP file containing documents
**Response** (`202 Accepted`):
@@ -578,7 +582,7 @@ Retrieves detailed status information for a specific batch upload, including per
"updated_at": "2024-01-01T00:04:55Z"
},
{
"filename": "spreadsheet.xlsx",
"filename": "macro_enabled.xlsm",
"outcome": "invalid_type",
"error_detail": null,
"document_id": null,
@@ -601,7 +605,7 @@ The `document_outcomes` array provides per-file tracking through the entire proc
| `failed_read` | Could not read file content from ZIP archive | Yes |
| `failed_s3_upload` | Could not upload extracted file to S3 | Yes |
| `failed_upload` | Upload handler returned an error | Yes |
| `invalid_type` | File is not a PDF | Yes |
| `invalid_type` | File type is not in the accepted extensions list | Yes |
| `init_complete` | Document record created, forwarded to sync | No |
| `init_duplicate` | Duplicate detected during init processing | Yes |
| `sync_complete` | Sync check passed, forwarded to clean | No |