feat(quickbooks): add documents and attachments - #6200
feat(quickbooks): add documents and attachments#6200BillLeoutsakosvl346 wants to merge 11 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Workflow block gains conditional sub-blocks for transaction types, explicit email send confirmation, attachment targets, file/note modes, and file outputs ( New authenticated API routes handle bounded PDF and attachment transfer: workspace file authorization on upload, 100 MiB caps, PDF/MIME validation, and pinned-IP fetches for short-lived Intuit attachment URLs (auth stripped on redirect). Zod route contracts define request/response shapes for the three file-oriented endpoints; attachment add enforces file-vs-note mode in validation. Reviewed by Cursor Bugbot for commit af5a745. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryAdds five QuickBooks document-delivery and attachment operations with authenticated, bounded file-transfer routes.
Confidence Score: 5/5The PR appears safe to merge from the reviewed follow-up scope. No blocking failure remains; the previously reported download response-cap mismatch is addressed for both file-producing tools.
|
| Filename | Overview |
|---|---|
| apps/sim/tools/quickbooks/download_attachment.ts | Defines the attachment-download tool and applies a response cap sized for a base64-encoded 100 MiB file plus JSON overhead. |
| apps/sim/tools/quickbooks/download_transaction_pdf.ts | Defines bounded transaction-PDF downloads using the same corrected executor response limit. |
| apps/sim/tools/quickbooks/documents_utils.ts | Centralizes QuickBooks document mappings, validation helpers, error handling, and transfer-size constants. |
| apps/sim/app/api/tools/quickbooks/download-attachment/route.ts | Implements authenticated attachment transfer through DNS validation and pinned-IP fetching with bounded streaming. |
| apps/sim/app/api/tools/quickbooks/download-transaction-pdf/route.ts | Implements authenticated, size-bounded PDF retrieval and safe execution-file serialization. |
| apps/sim/app/api/tools/quickbooks/add-attachment/route.ts | Implements authorized workspace-file and note attachment creation with MIME, filename, and size validation. |
| apps/sim/blocks/blocks/quickbooks.ts | Exposes the five new document and attachment operations through the QuickBooks block. |
Sequence Diagram
sequenceDiagram
participant Workflow
participant Tool as QuickBooks Tool
participant Route as Authenticated File Route
participant QBO as QuickBooks API
participant Storage as Execution Files
Workflow->>Tool: Run document operation
Tool->>Route: Authenticated bounded request
Route->>QBO: Request PDF, attachment metadata, or temporary URL
QBO-->>Route: Document response
Route->>Route: Validate size, MIME, filename, and URL
Route-->>Tool: Base64 file response
Tool-->>Storage: Store execution file
Storage-->>Workflow: File reference and metadata
Reviews (3): Last reviewed commit: "test(quickbooks): cover attachment MIME ..." | Re-trigger Greptile
|
@greptile-apps please review the latest commit 8e35624. The prior response-size finding was fixed by setting both file tools to a base64-aware bounded response cap with regression coverage. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8e35624. Configure here.
|
@greptile-apps please review the latest commit 371586c. The only change since your 5/5 review makes the attachment MIME fallback explicit and adds a missing-Content-Type regression test. |
1edbb50 to
33d4ad2
Compare
43119de to
3df14ef
Compare
33d4ad2 to
fc1bfdc
Compare
3df14ef to
af5a745
Compare

Summary
Validation
Stack
Targets
feat/quickbooks-05-reportsat frozen parent1edbb5010e9bce820268202c57078d42bcf23a67. This PR must not be merged automatically.