Add search filter for camera lens model.

Add a search filter next to the camera make to also allow filtering by
camera lens model. Update backend to support this. Add a test similar
to the other tests.
This commit is contained in:
Dag Stuan 2025-09-10 21:21:06 +02:00
parent 6a55c36762
commit 92b1c43c00
12 changed files with 133 additions and 15 deletions

View file

@ -3537,9 +3537,10 @@ export function searchAssetStatistics({ statisticsSearchDto }: {
/**
* This endpoint requires the `asset.read` permission.
*/
export function getSearchSuggestions({ country, includeNull, make, model, state, $type }: {
export function getSearchSuggestions({ country, includeNull, lensModel, make, model, state, $type }: {
country?: string;
includeNull?: boolean;
lensModel?: string;
make?: string;
model?: string;
state?: string;
@ -3551,6 +3552,7 @@ export function getSearchSuggestions({ country, includeNull, make, model, state,
}>(`/search/suggestions${QS.query(QS.explode({
country,
includeNull,
lensModel,
make,
model,
state,
@ -4883,7 +4885,8 @@ export enum SearchSuggestionType {
State = "state",
City = "city",
CameraMake = "camera-make",
CameraModel = "camera-model"
CameraModel = "camera-model",
CameraLensModel = "camera-lens-model"
}
export enum SharedLinkType {
Album = "ALBUM",