This commit is contained in:
2025-12-03 06:21:14 +01:00
parent 0858b18344
commit 7959014721
15 changed files with 165 additions and 117 deletions
+19 -2
View File
@@ -1012,9 +1012,24 @@ export type ServerQueryParam<
};
join?: ServerQueryParamsJoin<K>[];
group?: (keyof T)[];
countSubQueries?: ServerQueryParamsCount[];
[key: string]: any;
};
export type ServerQueryParamsCount = {
table: string;
srcTrgMap: {
src: string;
trg: string | ServerQueryParamsCountSrcTrgMap;
}[];
alias: string;
};
export type ServerQueryParamsCountSrcTrgMap = {
table: string;
field: string;
};
export type TableSelectFieldsObject<
T extends { [k: string]: any } = { [k: string]: any }
> = {
@@ -1858,7 +1873,11 @@ export const ImageMimeTypes: (keyof sharp.FormatEnum)[] = [
"jpg",
] as const;
export const VideoMimeTypes = ["mp4", "wav"] as const;
export const FileMimeTypes = [
...ImageMimeTypes,
...VideoMimeTypes,
"pdf",
"csv",
"json",
@@ -1879,8 +1898,6 @@ export const FileMimeTypes = [
"css",
] as const;
export const VideoMimeTypes = ["mp4", "wav"] as const;
export const CurrentlyEditedFieldActions = [
"edit-field",
"edit-index",