mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
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:
parent
6a55c36762
commit
92b1c43c00
12 changed files with 133 additions and 15 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue