Adds `listYachts`, `listYachtsForOwner`, and `autocomplete` to the yacht service so UIs can page/filter yachts per port, look up all yachts tied to a given client/company, and power search-as-you-type. `listYachts` delegates to the shared port-scoped `buildListQuery`, supporting search over name/hullNumber/registration plus ownerType, ownerId and status filters; `autocomplete` caps at 10 results and is tenant-scoped; `listYachtsForOwner` returns all yachts whose current owner matches, newest first. Extends `makeYacht` factory to accept flat `name`, `status`, `hullNumber`, `registration` overrides. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
11 KiB
11 KiB