# AddressListBatchResult

The AddressListBatchResult type of the TypeScript SDK, which accountAddressLists.addEntries and 3 more methods take or answer.

```ts
type AddressListBatchResult = {
  added: number
  invalid: string[]
  invalidCount?: number
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `added` | `number` | Count of new patterns added to the list |
| `invalid` | `string[]` | List of invalid pattern strings that could not be added (a CSV import reports at most the first 100) |
| `invalidCount` | `number` | Optional. Total invalid rows when the list above was truncated (CSV import only) |

## Used by

| Method | What it does |
| --- | --- |
| [`accountAddressLists.addEntries`](/docs/sdks/typescript/account-address-lists/add-entries) | Add multiple patterns to an address list |
| [`accountAddressLists.importEntries`](/docs/sdks/typescript/account-address-lists/import-entries) | Import patterns into an address list from CSV |
| [`mailboxAddressLists.addEntries`](/docs/sdks/typescript/mailbox-address-lists/add-entries) | Add multiple patterns to an address list |
| [`mailboxAddressLists.importEntries`](/docs/sdks/typescript/mailbox-address-lists/import-entries) | Import patterns into an address list from CSV |
