|
|
@ -1,8 +1,8 @@
|
|
|
|
use crate::client_api::error::ApiResult;
|
|
|
|
use crate::client_api::error::ApiResult;
|
|
|
|
use crate::client_api::IPCApi;
|
|
|
|
use crate::client_api::IPCApi;
|
|
|
|
use crate::types::files::{
|
|
|
|
use crate::types::files::{
|
|
|
|
AddFileRequestHeader, FileMetadataResponse, FileOSMetadata, FindFilesByTagsRequest,
|
|
|
|
AddFileRequestHeader, FileMetadataResponse, FileOSMetadata, FilterExpression, FindFilesRequest,
|
|
|
|
GetFileThumbnailOfSizeRequest, GetFileThumbnailsRequest, ReadFileRequest, SortKey, TagQuery,
|
|
|
|
GetFileThumbnailOfSizeRequest, GetFileThumbnailsRequest, ReadFileRequest, SortKey,
|
|
|
|
ThumbnailMetadataResponse, UpdateFileNameRequest,
|
|
|
|
ThumbnailMetadataResponse, UpdateFileNameRequest,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
use crate::types::identifier::FileIdentifier;
|
|
|
|
use crate::types::identifier::FileIdentifier;
|
|
|
@ -64,13 +64,13 @@ where
|
|
|
|
#[tracing::instrument(level = "debug", skip(self))]
|
|
|
|
#[tracing::instrument(level = "debug", skip(self))]
|
|
|
|
pub async fn find_files(
|
|
|
|
pub async fn find_files(
|
|
|
|
&self,
|
|
|
|
&self,
|
|
|
|
tags: Vec<TagQuery>,
|
|
|
|
filters: Vec<FilterExpression>,
|
|
|
|
sort_expression: Vec<SortKey>,
|
|
|
|
sort_expression: Vec<SortKey>,
|
|
|
|
) -> ApiResult<Vec<FileMetadataResponse>> {
|
|
|
|
) -> ApiResult<Vec<FileMetadataResponse>> {
|
|
|
|
self.emit_and_get(
|
|
|
|
self.emit_and_get(
|
|
|
|
"find_files",
|
|
|
|
"find_files",
|
|
|
|
FindFilesByTagsRequest {
|
|
|
|
FindFilesRequest {
|
|
|
|
tags,
|
|
|
|
filters,
|
|
|
|
sort_expression,
|
|
|
|
sort_expression,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|