Skip to content

Add DocumentAI parsing wrappers#30

Open
maxrross wants to merge 1 commit into
idea2app:mainfrom
maxrross:codex/document-ai-parsing-wrappers
Open

Add DocumentAI parsing wrappers#30
maxrross wants to merge 1 commit into
idea2app:mainfrom
maxrross:codex/document-ai-parsing-wrappers

Conversation

@maxrross
Copy link
Copy Markdown

@maxrross maxrross commented May 12, 2026

PR-30 PR-30 PR-30 Powered by Pull Request Badge

Summary

Fixes #27.

  • Add DocumentAIModel.recognizeImageText() for Feishu OCR basic image text recognition.
  • Add recognizeBankCard(), parseResumes(), and extractContractFields() wrappers for the requested DocumentAI endpoints.
  • Add exported TypeScript response models for bank cards, resumes, and contract field extraction while leaving the existing invoice APIs unchanged.

Docs referenced:

Validation

  • ./node_modules/.bin/prettier --write src/module/DocumentAI/index.ts src/module/DocumentAI/type.ts
  • ./node_modules/.bin/tsc --noEmit

Note: the repo pre-commit hook runs npm test, which invokes the live Feishu integration suite. That failed locally because this environment has no APP_ID / APP_SECRET, producing Feishu invalid param while requesting a tenant access token. I committed with the hook disabled after the focused TypeScript validation passed.

Disclosure

This PR was created with AI-assisted development and human review/validation before submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

封装飞书【智能文档解析】非证照、票据类接口

1 participant