Updates
This commit is contained in:
Vendored
+7
-4
@@ -908,6 +908,8 @@ export type FetchApiReturn = {
|
||||
msg?: string;
|
||||
[key: string]: any;
|
||||
};
|
||||
export declare const ServerQueryOperators: readonly ["AND", "OR"];
|
||||
export declare const ServerQueryEqualities: readonly ["EQUAL", "LIKE", "NOT EQUAL"];
|
||||
export type ServerQueryParam = {
|
||||
selectFields?: string[];
|
||||
query?: ServerQueryQueryObject;
|
||||
@@ -917,8 +919,8 @@ export type ServerQueryParam = {
|
||||
field: string;
|
||||
strategy: "ASC" | "DESC";
|
||||
};
|
||||
searchOperator?: "AND" | "OR";
|
||||
searchEquality?: "EQUAL" | "LIKE" | "NOT EQUAL";
|
||||
searchOperator?: (typeof ServerQueryOperators)[number];
|
||||
searchEquality?: (typeof ServerQueryEqualities)[number];
|
||||
addUserId?: {
|
||||
fieldName: string;
|
||||
};
|
||||
@@ -929,8 +931,8 @@ export type ServerQueryObject<T extends object = {
|
||||
[key: string]: any;
|
||||
}> = {
|
||||
value?: string | string[];
|
||||
operator?: "AND" | "OR";
|
||||
equality?: "EQUAL" | "LIKE" | "NOT EQUAL";
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
equality?: (typeof ServerQueryEqualities)[number];
|
||||
tableName?: string;
|
||||
__query?: {
|
||||
[key in keyof T]: Omit<ServerQueryObject<T>, "__query">;
|
||||
@@ -963,6 +965,7 @@ export type ServerQueryParamsJoin<Table extends string = string, Field extends o
|
||||
alias?: string;
|
||||
count?: boolean;
|
||||
})[];
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
};
|
||||
export type ServerQueryParamsJoinMatchObject<Field extends object = {
|
||||
[key: string]: any;
|
||||
|
||||
@@ -1086,6 +1086,9 @@ export type FetchApiReturn = {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export const ServerQueryOperators = ["AND", "OR"] as const;
|
||||
export const ServerQueryEqualities = ["EQUAL", "LIKE", "NOT EQUAL"] as const;
|
||||
|
||||
export type ServerQueryParam = {
|
||||
selectFields?: string[];
|
||||
query?: ServerQueryQueryObject;
|
||||
@@ -1095,8 +1098,8 @@ export type ServerQueryParam = {
|
||||
field: string;
|
||||
strategy: "ASC" | "DESC";
|
||||
};
|
||||
searchOperator?: "AND" | "OR";
|
||||
searchEquality?: "EQUAL" | "LIKE" | "NOT EQUAL";
|
||||
searchOperator?: (typeof ServerQueryOperators)[number];
|
||||
searchEquality?: (typeof ServerQueryEqualities)[number];
|
||||
addUserId?: {
|
||||
fieldName: string;
|
||||
};
|
||||
@@ -1106,8 +1109,8 @@ export type ServerQueryParam = {
|
||||
|
||||
export type ServerQueryObject<T extends object = { [key: string]: any }> = {
|
||||
value?: string | string[];
|
||||
operator?: "AND" | "OR";
|
||||
equality?: "EQUAL" | "LIKE" | "NOT EQUAL";
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
equality?: (typeof ServerQueryEqualities)[number];
|
||||
tableName?: string;
|
||||
__query?: {
|
||||
[key in keyof T]: Omit<ServerQueryObject<T>, "__query">;
|
||||
@@ -1149,6 +1152,7 @@ export type ServerQueryParamsJoin<
|
||||
count?: boolean;
|
||||
}
|
||||
)[];
|
||||
operator?: (typeof ServerQueryOperators)[number];
|
||||
};
|
||||
|
||||
export type ServerQueryParamsJoinMatchObject<
|
||||
|
||||
Reference in New Issue
Block a user