import { createJob } from '@your-package/api';
// Create a job for processing bank statements
const job = await createJob({
model: 'BANK_STATEMENT',
files: [/* your files */]
});
// Example response structure
const statementData = {
bankAddress: '123 Main St, Redmond, WA 98052',
bankName: 'Contoso Bank',
accountHolderAddress: '456 Main St, Redmond, WA 98052',
accountHolderName: 'JOHN DOE',
statementStartDate: '2024-01-01T00:00:00.000Z',
statementEndDate: '2024-01-31T00:00:00.000Z',
accounts: [
{
accountNumber: '987-654-3210',
accountType: 'Checking',
beginningBalance: 1488.03,
endingBalance: 1488.03,
totalServiceFees: 0.0,
transactions: [
{
date: '2024-01-17T00:00:00.000Z',
description: 'OnlineTransfer From Chk...6609 Transaction#: 6373187418',
checkNumber: '6609',
depositAmount: 1500.0
}
],
checks: [
{
number: '7175',
date: '2024-01-11T00:00:00.000Z',
amount: 150.0
}
]
}
]
};
## Date Handling
The model accepts dates in two formats:
- ISO 8601 datetime strings
- YYYY-MM-DD format strings
All dates are automatically converted to ISO format during processing.
## Type Definitions
You can import the following TypeScript types for use in your application:
```typescript
import type {
Document,
DocumentTypeBase
} from '@your-package/models';
type BankStatement = Document<'BANK_STATEMENT'>;