feat(web): add search filter for camera lens model. (#21792)

This commit is contained in:
Dag Stuan 2025-10-24 20:41:34 +02:00 committed by GitHub
parent d9cddeb0f1
commit 78fb815cdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 133 additions and 15 deletions

View file

@ -3566,9 +3566,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;
@ -3580,6 +3581,7 @@ export function getSearchSuggestions({ country, includeNull, make, model, state,
}>(`/search/suggestions${QS.query(QS.explode({
country,
includeNull,
lensModel,
make,
model,
state,
@ -4919,7 +4921,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",