Updates
This commit is contained in:
@@ -188,13 +188,7 @@ export interface GetReqQueryObject {
|
||||
tableName?: string;
|
||||
}
|
||||
|
||||
export type SerializeQueryFnType = (param0: SerializeQueryParams) => string;
|
||||
|
||||
export interface SerializeQueryParams {
|
||||
query: any;
|
||||
}
|
||||
|
||||
// @ts-check
|
||||
export type SerializeQueryFnType = (query: any) => string;
|
||||
|
||||
export type DATASQUIREL_LoggedInUser = {
|
||||
id: number;
|
||||
@@ -1026,12 +1020,13 @@ export interface MYSQL_delegated_user_tables_table_def {
|
||||
}
|
||||
|
||||
export type ApiKeyObject = {
|
||||
user_id: string | number;
|
||||
user_id?: string | number;
|
||||
full_access?: boolean;
|
||||
sign: string;
|
||||
date_code: number;
|
||||
sign?: string;
|
||||
date_code?: number;
|
||||
target_database?: string;
|
||||
target_table?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export type AddApiKeyRequestBody = {
|
||||
@@ -1050,12 +1045,13 @@ export type CheckApiCredentialsFnParam = {
|
||||
database?: string;
|
||||
table?: string;
|
||||
user_id?: string | number;
|
||||
media?: boolean;
|
||||
};
|
||||
|
||||
export type FetchApiFn = (
|
||||
url: string,
|
||||
options?: FetchApiOptions,
|
||||
contentType?: "json" | "text" | "html" | "blob" | "file"
|
||||
csrf?: boolean
|
||||
) => Promise<any>;
|
||||
|
||||
export type FetchApiOptions = RequestInit & {
|
||||
@@ -1269,13 +1265,9 @@ export type APIGoogleLoginFunctionParams = {
|
||||
additionalFields?: string[];
|
||||
};
|
||||
|
||||
export type APIGoogleLoginFunctionReturn = {
|
||||
dsqlUserId?: number | string;
|
||||
} & HandleSocialDbFunctionReturn;
|
||||
|
||||
export type APIGoogleLoginFunction = (
|
||||
params: APIGoogleLoginFunctionParams
|
||||
) => Promise<APIGoogleLoginFunctionReturn>;
|
||||
) => Promise<APILoginFunctionReturn>;
|
||||
|
||||
/**
|
||||
* Handle Social DB Function
|
||||
@@ -1417,3 +1409,24 @@ export interface AceEditorOptions {
|
||||
wrapBehavioursEnabled?: boolean;
|
||||
wrapMethod?: "code" | "text" | "auto";
|
||||
}
|
||||
|
||||
export type SendOneTimeCodeEmailResponse = {
|
||||
success: boolean;
|
||||
code?: string;
|
||||
createdAt?: number;
|
||||
email?: string;
|
||||
msg?: string;
|
||||
};
|
||||
|
||||
export type CookieObject = {
|
||||
name: string;
|
||||
value: string;
|
||||
domain?: string;
|
||||
path?: string;
|
||||
expires?: Date;
|
||||
maxAge?: number;
|
||||
secure?: boolean;
|
||||
httpOnly?: boolean;
|
||||
sameSite?: "Strict" | "Lax" | "None";
|
||||
priority?: "Low" | "Medium" | "High";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user