Updates
This commit is contained in:
Vendored
+102
-53
@@ -1,4 +1,3 @@
|
||||
import type { ServerResponse } from "http";
|
||||
import { Editor } from "tinymce";
|
||||
export type DSQL_DatabaseFullName = string;
|
||||
export interface DSQL_DatabaseSchemaType {
|
||||
@@ -165,7 +164,8 @@ export interface SerializeQueryParams {
|
||||
query: any;
|
||||
}
|
||||
export type DATASQUIREL_LoggedInUser = {
|
||||
id?: number;
|
||||
id: number;
|
||||
uuid?: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
@@ -174,32 +174,13 @@ export type DATASQUIREL_LoggedInUser = {
|
||||
username?: string;
|
||||
image?: string;
|
||||
image_thumbnail?: string;
|
||||
address?: string;
|
||||
city?: string;
|
||||
state?: string;
|
||||
country?: string;
|
||||
zip_code?: string;
|
||||
social_login?: number;
|
||||
social_platform?: string;
|
||||
social_id?: string;
|
||||
more_user_data?: string;
|
||||
verification_status?: number;
|
||||
loan_officer_id?: number;
|
||||
is_admin?: number;
|
||||
admin_level?: number;
|
||||
admin_permissions?: string;
|
||||
uuid?: string;
|
||||
temp_login_code?: string;
|
||||
date_created?: string;
|
||||
date_created_code?: number;
|
||||
date_created_timestamp?: string;
|
||||
date_updated?: string;
|
||||
date_updated_code?: number;
|
||||
date_updated_timestamp?: string;
|
||||
csrf_k?: string;
|
||||
logged_in_status?: boolean;
|
||||
date?: number;
|
||||
more_data?: any;
|
||||
csrf_k: string;
|
||||
logged_in_status: boolean;
|
||||
date: number;
|
||||
} & {
|
||||
[key: string]: any;
|
||||
};
|
||||
@@ -208,6 +189,7 @@ export interface AuthenticatedUser {
|
||||
payload: DATASQUIREL_LoggedInUser | null;
|
||||
msg?: string;
|
||||
userId?: number;
|
||||
cookieNames?: any;
|
||||
}
|
||||
export interface SuccessUserObject {
|
||||
id: number;
|
||||
@@ -322,25 +304,7 @@ export interface PostInsertReturn {
|
||||
protocol41: boolean;
|
||||
changedRows: number;
|
||||
}
|
||||
export interface UserType {
|
||||
id: number;
|
||||
stripe_id?: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
bio?: string;
|
||||
username?: string;
|
||||
image: string;
|
||||
image_thumbnail: string;
|
||||
social_id?: string;
|
||||
verification_status?: number;
|
||||
social_platform?: string;
|
||||
social_login?: number;
|
||||
date?: number;
|
||||
phone?: number | string;
|
||||
csrf_k: string;
|
||||
logged_in_status: boolean;
|
||||
}
|
||||
export type UserType = DATASQUIREL_LoggedInUser;
|
||||
export interface ApiKeyDef {
|
||||
name: string;
|
||||
scope: string;
|
||||
@@ -1061,6 +1025,10 @@ export type APILoginFunctionReturn = {
|
||||
msg?: string;
|
||||
payload?: DATASQUIREL_LoggedInUser | null;
|
||||
userId?: number | string;
|
||||
key?: string;
|
||||
token?: string;
|
||||
csrf?: string;
|
||||
cookieNames?: any;
|
||||
};
|
||||
export type APILoginFunction = (params: APILoginFunctionParams) => Promise<APILoginFunctionReturn>;
|
||||
export type APICreateUserFunctionParams = {
|
||||
@@ -1085,14 +1053,9 @@ export type APIGetUserFunction = (params: APIGetUserFunctionParams) => Promise<G
|
||||
* API Google Login Function
|
||||
*/
|
||||
export type APIGoogleLoginFunctionParams = {
|
||||
clientId: string;
|
||||
token: string;
|
||||
database: string;
|
||||
userId: string | number;
|
||||
additionalFields?: {
|
||||
[key: string]: any;
|
||||
};
|
||||
res: any;
|
||||
additionalFields?: string[];
|
||||
};
|
||||
export type APIGoogleLoginFunctionReturn = {
|
||||
dsqlUserId?: number | string;
|
||||
@@ -1107,15 +1070,14 @@ export type HandleSocialDbFunctionParams = {
|
||||
email: string;
|
||||
social_platform: string;
|
||||
payload: any;
|
||||
res?: ServerResponse;
|
||||
invitation?: any;
|
||||
supEmail?: string;
|
||||
additionalFields?: object;
|
||||
additionalFields?: string[];
|
||||
useLocal?: boolean;
|
||||
};
|
||||
export type HandleSocialDbFunctionReturn = {
|
||||
success: boolean;
|
||||
user?: null;
|
||||
user?: DATASQUIREL_LoggedInUser | null;
|
||||
msg?: string;
|
||||
social_id?: string | number;
|
||||
social_platform?: string;
|
||||
@@ -1137,7 +1099,7 @@ export type HandleSocialDbFunctionReturn = {
|
||||
*
|
||||
* @returns {Promise<HandleSocialDbFunctionReturn>} - Response object
|
||||
*/
|
||||
export type HandleSocialDbFunction = (params: HandleSocialDbFunctionParams) => Promise<HandleSocialDbFunctionReturn>;
|
||||
export type HandleSocialDbFunction = (params: HandleSocialDbFunctionParams) => Promise<APILoginFunctionReturn>;
|
||||
export type ApiReauthUserReturn = {
|
||||
success: boolean;
|
||||
payload?: {
|
||||
@@ -1146,4 +1108,91 @@ export type ApiReauthUserReturn = {
|
||||
msg?: string;
|
||||
userId?: string | number;
|
||||
};
|
||||
export type GoogleAccessTokenObject = {
|
||||
access_token: string;
|
||||
token_type: "Bearer";
|
||||
expires_in: number;
|
||||
scope: string;
|
||||
authuser: string;
|
||||
prompt: string;
|
||||
};
|
||||
export type GoogleOauth2User = {
|
||||
sub: string;
|
||||
name: string;
|
||||
given_name: string;
|
||||
family_name: string;
|
||||
picture: string;
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
};
|
||||
export interface AceEditorOptions {
|
||||
animatedScroll?: boolean;
|
||||
autoScrollEditorIntoView?: boolean;
|
||||
behavioursEnabled?: boolean;
|
||||
copyWithEmptySelection?: boolean;
|
||||
cursorStyle?: "ace" | "slim" | "smooth" | "wide";
|
||||
customScrollbar?: boolean;
|
||||
displayIndentGuides?: boolean;
|
||||
dragDelay?: number;
|
||||
dragEnabled?: boolean;
|
||||
enableAutoIndent?: boolean;
|
||||
enableBasicAutocompletion?: boolean | any[];
|
||||
enableKeyboardAccessibility?: boolean;
|
||||
enableLiveAutocompletion?: boolean | any[];
|
||||
enableMobileMenu?: boolean;
|
||||
enableMultiselect?: boolean;
|
||||
enableSnippets?: boolean;
|
||||
fadeFoldWidgets?: boolean;
|
||||
firstLineNumber?: number;
|
||||
fixedWidthGutter?: boolean;
|
||||
focusTimeout?: number;
|
||||
foldStyle?: "markbegin" | "markbeginend" | "manual";
|
||||
fontFamily?: string;
|
||||
fontSize?: number;
|
||||
hScrollBarAlwaysVisible?: boolean;
|
||||
hasCssTransforms?: boolean;
|
||||
highlightActiveLine?: boolean;
|
||||
highlightGutterLine?: boolean;
|
||||
highlightIndentGuides?: boolean;
|
||||
highlightSelectedWord?: boolean;
|
||||
indentedSoftWrap?: boolean;
|
||||
keyboardHandler?: string;
|
||||
liveAutocompletionDelay?: number;
|
||||
liveAutocompletionThreshold?: number;
|
||||
maxLines?: number;
|
||||
maxPixelHeight?: number;
|
||||
mergeUndoDeltas?: boolean | "always";
|
||||
minLines?: number;
|
||||
mode?: string;
|
||||
navigateWithinSoftTabs?: boolean;
|
||||
newLineMode?: AceAjax.NewLineMode;
|
||||
overwrite?: boolean;
|
||||
placeholder?: string;
|
||||
printMargin?: number | boolean;
|
||||
printMarginColumn?: number;
|
||||
readOnly?: boolean;
|
||||
relativeLineNumbers?: boolean;
|
||||
scrollPastEnd?: number;
|
||||
scrollSpeed?: number;
|
||||
selectionStyle?: string;
|
||||
session?: any;
|
||||
showFoldWidgets?: boolean;
|
||||
showFoldedAnnotations?: boolean;
|
||||
showGutter?: boolean;
|
||||
showInvisibles?: boolean;
|
||||
showLineNumbers?: boolean;
|
||||
showPrintMargin?: boolean;
|
||||
tabSize?: number;
|
||||
textInputAriaLabel?: string;
|
||||
theme?: string;
|
||||
tooltipFollowsMouse?: boolean;
|
||||
useSoftTabs?: boolean;
|
||||
useSvgGutterIcons?: boolean;
|
||||
useWorker?: boolean;
|
||||
vScrollBarAlwaysVisible?: boolean;
|
||||
value?: string;
|
||||
wrap?: number | boolean | "off" | "free" | "printmargin";
|
||||
wrapBehavioursEnabled?: boolean;
|
||||
wrapMethod?: "code" | "text" | "auto";
|
||||
}
|
||||
export {};
|
||||
|
||||
+105
-68
@@ -3,12 +3,6 @@ import type { IncomingMessage, ServerResponse } from "http";
|
||||
import { Editor } from "tinymce";
|
||||
export type DSQL_DatabaseFullName = string;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
export interface DSQL_DatabaseSchemaType {
|
||||
dbName: string;
|
||||
dbSlug: string;
|
||||
@@ -26,8 +20,6 @@ export interface DSQL_ChildrenDatabaseObject {
|
||||
dbFullName: string;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
export interface DSQL_TableSchemaType {
|
||||
tableName: string;
|
||||
tableFullName: string;
|
||||
@@ -48,8 +40,6 @@ export interface DSQL_ChildrenTablesType {
|
||||
tableNameFull?: string;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
export interface DSQL_FieldSchemaType {
|
||||
fieldName?: string;
|
||||
originName?: string;
|
||||
@@ -92,8 +82,6 @@ export interface DSQL_ForeignKeyType {
|
||||
cascadeUpdate?: boolean;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
export interface DSQL_IndexSchemaType {
|
||||
indexName?: string;
|
||||
indexType?: string;
|
||||
@@ -118,8 +106,6 @@ export interface DSQL_MYSQL_SHOW_INDEXES_Type {
|
||||
Comment: string;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
export interface DSQL_MYSQL_SHOW_COLUMNS_Type {
|
||||
Field: string;
|
||||
Type: string;
|
||||
@@ -129,16 +115,12 @@ export interface DSQL_MYSQL_SHOW_COLUMNS_Type {
|
||||
Extra: string;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
export interface DSQL_MYSQL_FOREIGN_KEYS_Type {
|
||||
CONSTRAINT_NAME: string;
|
||||
CONSTRAINT_SCHEMA: string;
|
||||
TABLE_NAME: string;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
export interface DSQL_MYSQL_user_databases_Type {
|
||||
id: number;
|
||||
user_id: number;
|
||||
@@ -215,7 +197,8 @@ export interface SerializeQueryParams {
|
||||
// @ts-check
|
||||
|
||||
export type DATASQUIREL_LoggedInUser = {
|
||||
id?: number;
|
||||
id: number;
|
||||
uuid?: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
@@ -224,32 +207,13 @@ export type DATASQUIREL_LoggedInUser = {
|
||||
username?: string;
|
||||
image?: string;
|
||||
image_thumbnail?: string;
|
||||
address?: string;
|
||||
city?: string;
|
||||
state?: string;
|
||||
country?: string;
|
||||
zip_code?: string;
|
||||
social_login?: number;
|
||||
social_platform?: string;
|
||||
social_id?: string;
|
||||
more_user_data?: string;
|
||||
verification_status?: number;
|
||||
loan_officer_id?: number;
|
||||
is_admin?: number;
|
||||
admin_level?: number;
|
||||
admin_permissions?: string;
|
||||
uuid?: string;
|
||||
temp_login_code?: string;
|
||||
date_created?: string;
|
||||
date_created_code?: number;
|
||||
date_created_timestamp?: string;
|
||||
date_updated?: string;
|
||||
date_updated_code?: number;
|
||||
date_updated_timestamp?: string;
|
||||
csrf_k?: string;
|
||||
logged_in_status?: boolean;
|
||||
date?: number;
|
||||
more_data?: any;
|
||||
csrf_k: string;
|
||||
logged_in_status: boolean;
|
||||
date: number;
|
||||
} & {
|
||||
[key: string]: any;
|
||||
};
|
||||
@@ -259,6 +223,7 @@ export interface AuthenticatedUser {
|
||||
payload: DATASQUIREL_LoggedInUser | null;
|
||||
msg?: string;
|
||||
userId?: number;
|
||||
cookieNames?: any;
|
||||
}
|
||||
|
||||
export interface SuccessUserObject {
|
||||
@@ -391,25 +356,7 @@ export interface PostInsertReturn {
|
||||
changedRows: number;
|
||||
}
|
||||
|
||||
export interface UserType {
|
||||
id: number;
|
||||
stripe_id?: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
bio?: string;
|
||||
username?: string;
|
||||
image: string;
|
||||
image_thumbnail: string;
|
||||
social_id?: string;
|
||||
verification_status?: number;
|
||||
social_platform?: string;
|
||||
social_login?: number;
|
||||
date?: number;
|
||||
phone?: number | string;
|
||||
csrf_k: string;
|
||||
logged_in_status: boolean;
|
||||
}
|
||||
export type UserType = DATASQUIREL_LoggedInUser;
|
||||
|
||||
export interface ApiKeyDef {
|
||||
name: string;
|
||||
@@ -1278,6 +1225,10 @@ export type APILoginFunctionReturn = {
|
||||
msg?: string;
|
||||
payload?: DATASQUIREL_LoggedInUser | null;
|
||||
userId?: number | string;
|
||||
key?: string;
|
||||
token?: string;
|
||||
csrf?: string;
|
||||
cookieNames?: any;
|
||||
};
|
||||
export type APILoginFunction = (
|
||||
params: APILoginFunctionParams
|
||||
@@ -1313,12 +1264,9 @@ export type APIGetUserFunction = (
|
||||
* API Google Login Function
|
||||
*/
|
||||
export type APIGoogleLoginFunctionParams = {
|
||||
clientId: string;
|
||||
token: string;
|
||||
database: string;
|
||||
userId: string | number;
|
||||
additionalFields?: { [key: string]: any };
|
||||
res: any;
|
||||
additionalFields?: string[];
|
||||
};
|
||||
|
||||
export type APIGoogleLoginFunctionReturn = {
|
||||
@@ -1338,16 +1286,15 @@ export type HandleSocialDbFunctionParams = {
|
||||
email: string;
|
||||
social_platform: string;
|
||||
payload: any;
|
||||
res?: ServerResponse;
|
||||
invitation?: any;
|
||||
supEmail?: string;
|
||||
additionalFields?: object;
|
||||
additionalFields?: string[];
|
||||
useLocal?: boolean;
|
||||
};
|
||||
|
||||
export type HandleSocialDbFunctionReturn = {
|
||||
success: boolean;
|
||||
user?: null;
|
||||
user?: DATASQUIREL_LoggedInUser | null;
|
||||
msg?: string;
|
||||
social_id?: string | number;
|
||||
social_platform?: string;
|
||||
@@ -1372,7 +1319,7 @@ export type HandleSocialDbFunctionReturn = {
|
||||
*/
|
||||
export type HandleSocialDbFunction = (
|
||||
params: HandleSocialDbFunctionParams
|
||||
) => Promise<HandleSocialDbFunctionReturn>;
|
||||
) => Promise<APILoginFunctionReturn>;
|
||||
|
||||
export type ApiReauthUserReturn = {
|
||||
success: boolean;
|
||||
@@ -1380,3 +1327,93 @@ export type ApiReauthUserReturn = {
|
||||
msg?: string;
|
||||
userId?: string | number;
|
||||
};
|
||||
|
||||
export type GoogleAccessTokenObject = {
|
||||
access_token: string;
|
||||
token_type: "Bearer";
|
||||
expires_in: number;
|
||||
scope: string;
|
||||
authuser: string;
|
||||
prompt: string;
|
||||
};
|
||||
|
||||
export type GoogleOauth2User = {
|
||||
sub: string;
|
||||
name: string;
|
||||
given_name: string;
|
||||
family_name: string;
|
||||
picture: string;
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
};
|
||||
|
||||
export interface AceEditorOptions {
|
||||
animatedScroll?: boolean;
|
||||
autoScrollEditorIntoView?: boolean;
|
||||
behavioursEnabled?: boolean;
|
||||
copyWithEmptySelection?: boolean;
|
||||
cursorStyle?: "ace" | "slim" | "smooth" | "wide";
|
||||
customScrollbar?: boolean;
|
||||
displayIndentGuides?: boolean;
|
||||
dragDelay?: number;
|
||||
dragEnabled?: boolean;
|
||||
enableAutoIndent?: boolean;
|
||||
enableBasicAutocompletion?: boolean | any[];
|
||||
enableKeyboardAccessibility?: boolean;
|
||||
enableLiveAutocompletion?: boolean | any[];
|
||||
enableMobileMenu?: boolean;
|
||||
enableMultiselect?: boolean;
|
||||
enableSnippets?: boolean;
|
||||
fadeFoldWidgets?: boolean;
|
||||
firstLineNumber?: number;
|
||||
fixedWidthGutter?: boolean;
|
||||
focusTimeout?: number;
|
||||
foldStyle?: "markbegin" | "markbeginend" | "manual";
|
||||
fontFamily?: string;
|
||||
fontSize?: number;
|
||||
hScrollBarAlwaysVisible?: boolean;
|
||||
hasCssTransforms?: boolean;
|
||||
highlightActiveLine?: boolean;
|
||||
highlightGutterLine?: boolean;
|
||||
highlightIndentGuides?: boolean;
|
||||
highlightSelectedWord?: boolean;
|
||||
indentedSoftWrap?: boolean;
|
||||
keyboardHandler?: string;
|
||||
liveAutocompletionDelay?: number;
|
||||
liveAutocompletionThreshold?: number;
|
||||
maxLines?: number;
|
||||
maxPixelHeight?: number;
|
||||
mergeUndoDeltas?: boolean | "always";
|
||||
minLines?: number;
|
||||
mode?: string;
|
||||
navigateWithinSoftTabs?: boolean;
|
||||
newLineMode?: AceAjax.NewLineMode;
|
||||
overwrite?: boolean;
|
||||
placeholder?: string;
|
||||
printMargin?: number | boolean;
|
||||
printMarginColumn?: number;
|
||||
readOnly?: boolean;
|
||||
relativeLineNumbers?: boolean;
|
||||
scrollPastEnd?: number;
|
||||
scrollSpeed?: number;
|
||||
selectionStyle?: string;
|
||||
session?: any;
|
||||
showFoldWidgets?: boolean;
|
||||
showFoldedAnnotations?: boolean;
|
||||
showGutter?: boolean;
|
||||
showInvisibles?: boolean;
|
||||
showLineNumbers?: boolean;
|
||||
showPrintMargin?: boolean;
|
||||
tabSize?: number;
|
||||
textInputAriaLabel?: string;
|
||||
theme?: string;
|
||||
tooltipFollowsMouse?: boolean;
|
||||
useSoftTabs?: boolean;
|
||||
useSvgGutterIcons?: boolean;
|
||||
useWorker?: boolean;
|
||||
vScrollBarAlwaysVisible?: boolean;
|
||||
value?: string;
|
||||
wrap?: number | boolean | "off" | "free" | "printmargin";
|
||||
wrapBehavioursEnabled?: boolean;
|
||||
wrapMethod?: "code" | "text" | "auto";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user