> For the complete documentation index, see [llms.txt](https://changelog.airship.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.airship.co.uk/september-2025/22-09-2025-flight-assist-major-release.md).

# 22/09/2025 - Flight assist major release

:top: **Ordering and Limiting for Customer Queries (to facilitate 'best customer')**<br>

* Ability to order customer query results by metrics (visit\_count, purchase\_count, accumulative\_spend, booking\_count, booking\_covers, stay\_total\_guests, reward\_code\_count).
* Results can be limited and paginated.
* Human-friendly pseudo-SQL summaries with min/max/avg/total for the sorting metric.<br>

:hotel: **Extended “Stays” Support**<br>

* Customer queries now support new “stay” filters for overnight bookings, including location, booking status, room type, booker/guest distinction, used voucher, pets, and date windows.
* “Stays” are handled as a distinct dataset alongside visits, with dual querying if enabled.<br>

:trophy: **Reward (Unique Code) Filtering**<br>

* Filter customers by reward/unique code: redeemed status, validity, location, time windows.
* New pseudo templates and API for listing reward campaigns.<br>

:ballot\_box: **Groups/Folders Filtering**<br>

* Filter customers by group/folder membership, match mode (any/all/none), added between dates, include/exclude mode.
* New pseudo templates and API for listing groups/folders.<br>

:receipt: **get\_forms** Functionality (NEW)<br>

* **New get\_forms API function enables listing and filtering forms (e.g., feedback or data collection forms) with parameters:**
* limit (pagination)
* location\_id (filter by location)
* active (active/inactive)
* name\_like (search by form name)
* created\_between (date range)
* form\_type\_id (filter by form type)
* is\_zonal\_form (boolean)
* include\_deleted (boolean)
* order\_by\_created\_at\_desc (sort order)
* Results are to be presented in a table format by default.<br>

:robot: **Other Improvements & Additions**<br>

* Pseudo-SQL/humanisation updates for new keys and clearer summaries.
* Improved date/time phrase handling.
* Larger chat log storage (LONGTEXT migration).
* Results for all list-type queries (groups, forms, reward campaigns) must be shown in tables.<br>

**In summary:**

\
This release adds advanced segmentation/ranking features, rich “stay” and reward filters, group and form listing/filtering, and makes list data more user-friendly with tables. It also improves pseudo-SQL summaries and increases system scalability.

🧑🏻‍💻 Jules
