1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-17 03:47:45 +02:00

chore: build metadata (#10612)

feat: build metadata
This commit is contained in:
Jason Rasmussen
2024-06-26 08:25:09 -04:00
committed by GitHub
parent 15c1cd6449
commit 8a445cac07
24 changed files with 905 additions and 18 deletions

View File

@ -787,6 +787,24 @@ export type SmartSearchDto = {
withDeleted?: boolean;
withExif?: boolean;
};
export type ServerAboutResponseDto = {
build?: string;
buildImage?: string;
buildImageUrl?: string;
buildUrl?: string;
exiftool?: string;
ffmpeg?: string;
imagemagick?: string;
libvips?: string;
nodejs?: string;
repository?: string;
repositoryUrl?: string;
sourceCommit?: string;
sourceRef?: string;
sourceUrl?: string;
version: string;
versionUrl: string;
};
export type ServerConfigDto = {
externalDomain: string;
isInitialized: boolean;
@ -2363,6 +2381,14 @@ export function getSearchSuggestions({ country, make, model, state, $type }: {
...opts
}));
}
export function getAboutInfo(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: ServerAboutResponseDto;
}>("/server-info/about", {
...opts
}));
}
export function getServerConfig(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;