expiries_list
Lists company and vehicle document expiry items soonest first, including expired and upcoming renewals, with filters for kind, vehicle, company-level items, and closed history.
Instructions
Expiry items of the company, soonest first (expired ones come first): vehicle documents and company-level items. Each item carries daysLeft, status (ok | due — within remindDaysBefore — | expired | renewed), vehicle {id, plate, displayName} (null for company-level items) and renewedFromId. Filters: kind, vehicleId, companyLevel (items without a vehicle), includeClosed (renewed items, for the history).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| vehicleId | No | ||
| companyLevel | No | ||
| includeClosed | No |