Skip to content

feat: add DocumentAI module for intelligent document parsing#22

Open
HuiNeng6 wants to merge 1 commit intoidea2app:mainfrom
HuiNeng6:main
Open

feat: add DocumentAI module for intelligent document parsing#22
HuiNeng6 wants to merge 1 commit intoidea2app:mainfrom
HuiNeng6:main

Conversation

@HuiNeng6
Copy link
Copy Markdown

@HuiNeng6 HuiNeng6 commented Mar 25, 2026

PR-22 PR-22 PR-22 Powered by Pull Request Badge

Summary

This PR adds a new DocumentAI module to support FeiShu/Lark intelligent document parsing APIs.

Changes

  • Added \DocumentAIModel\ class with methods for recognizing:

    • VAT Invoice (增值税发票)
    • Taxi Invoice (出租车发票)
    • Train Invoice (火车票)
    • Vehicle Invoice (机动车发票)
  • Added corresponding TypeScript types:

    • \VATInvoice\
    • \TaxiInvoice\
    • \TrainInvoice\
    • \VehicleInvoice\
  • Added \documentAIStore\ instance to \LarkApp\ class

API References

Usage Example

\\ ypescript
const app = new LarkApp({ id: 'your_app_id', secret: 'your_secret' });

// Recognize VAT Invoice from file
const vatResult = await app.documentAIStore.recognizeVATInvoice(file);

// Recognize Taxi Invoice from file token
const taxiResult = await app.documentAIStore.recognizeTaxiInvoice({ file_token: 'token' });
\\

Closes #20

- Add VATInvoice, TaxiInvoice, TrainInvoice, VehicleInvoice types
- Add DocumentAIModel with recognize methods for each invoice type
- Add documentAIStore instance to LarkApp class
- Support file upload and file_token for invoice recognition

Closes idea2app#20
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