This commit is contained in:
Benjamin Toby
2024-12-28 18:23:30 +01:00
parent 26a29ed741
commit 29fd6e6203
4 changed files with 68 additions and 19 deletions
+12 -7
View File
@@ -923,18 +923,23 @@ export type ServerQueryParam = {
fieldName: string;
};
join?: ServerQueryParamsJoin[];
} & {
[key: string]: any;
};
export type ServerQueryObject<T extends object = {
[key: string]: any;
}> = {
value?: string | string[];
operator?: "AND" | "OR";
equality?: "EQUAL" | "LIKE" | "NOT EQUAL";
tableName?: string;
__query?: {
[key in keyof T]: Omit<ServerQueryObject<T>, "__query">;
};
};
export type ServerQueryQueryObject<T extends object = {
[key: string]: any;
}> = {
[key in keyof T]: {
value: string | string[];
operator?: "AND" | "OR";
equality?: "EQUAL" | "LIKE" | "NOT EQUAL";
tableName?: string;
};
[key in keyof T]: ServerQueryObject<T>;
};
export type FetchDataParams = {
path: string;
+11 -7
View File
@@ -1101,18 +1101,22 @@ export type ServerQueryParam = {
fieldName: string;
};
join?: ServerQueryParamsJoin[];
} & {
[key: string]: any;
};
export type ServerQueryObject<T extends object = { [key: string]: any }> = {
value?: string | string[];
operator?: "AND" | "OR";
equality?: "EQUAL" | "LIKE" | "NOT EQUAL";
tableName?: string;
__query?: {
[key in keyof T]: Omit<ServerQueryObject<T>, "__query">;
};
};
export type ServerQueryQueryObject<T extends object = { [key: string]: any }> =
{
[key in keyof T]: {
value: string | string[];
operator?: "AND" | "OR";
equality?: "EQUAL" | "LIKE" | "NOT EQUAL";
tableName?: string;
};
[key in keyof T]: ServerQueryObject<T>;
};
export type FetchDataParams = {