Update Types
This commit is contained in:
parent
bf903d3524
commit
30f607ce8d
54
package-shared/types/index.d.ts
vendored
54
package-shared/types/index.d.ts
vendored
@ -1,6 +1,6 @@
|
|||||||
import http from "http";
|
import http from "http";
|
||||||
|
|
||||||
type DSQL_DatabaseFullName = string;
|
export type DSQL_DatabaseFullName = string;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -8,7 +8,7 @@ type DSQL_DatabaseFullName = string;
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_DatabaseSchemaType {
|
export interface DSQL_DatabaseSchemaType {
|
||||||
dbName: string;
|
dbName: string;
|
||||||
dbSlug: string;
|
dbSlug: string;
|
||||||
dbFullName: string;
|
dbFullName: string;
|
||||||
@ -21,13 +21,13 @@ interface DSQL_DatabaseSchemaType {
|
|||||||
updateData?: boolean;
|
updateData?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DSQL_ChildrenDatabaseObject {
|
export interface DSQL_ChildrenDatabaseObject {
|
||||||
dbFullName: string;
|
dbFullName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_TableSchemaType {
|
export interface DSQL_TableSchemaType {
|
||||||
tableName: string;
|
tableName: string;
|
||||||
tableFullName: string;
|
tableFullName: string;
|
||||||
tableDescription?: string;
|
tableDescription?: string;
|
||||||
@ -41,7 +41,7 @@ interface DSQL_TableSchemaType {
|
|||||||
tableNameOld?: string;
|
tableNameOld?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DSQL_ChildrenTablesType {
|
export interface DSQL_ChildrenTablesType {
|
||||||
dbNameFull: string;
|
dbNameFull: string;
|
||||||
tableName: string;
|
tableName: string;
|
||||||
tableNameFull?: string;
|
tableNameFull?: string;
|
||||||
@ -49,7 +49,7 @@ interface DSQL_ChildrenTablesType {
|
|||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_FieldSchemaType {
|
export interface DSQL_FieldSchemaType {
|
||||||
fieldName?: string;
|
fieldName?: string;
|
||||||
originName?: string;
|
originName?: string;
|
||||||
updatedField?: boolean;
|
updatedField?: boolean;
|
||||||
@ -82,7 +82,7 @@ interface DSQL_FieldSchemaType {
|
|||||||
cssFiles?: string[];
|
cssFiles?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DSQL_ForeignKeyType {
|
export interface DSQL_ForeignKeyType {
|
||||||
foreignKeyName?: string;
|
foreignKeyName?: string;
|
||||||
destinationTableName?: string;
|
destinationTableName?: string;
|
||||||
destinationTableColumnName?: string;
|
destinationTableColumnName?: string;
|
||||||
@ -93,7 +93,7 @@ interface DSQL_ForeignKeyType {
|
|||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_IndexSchemaType {
|
export interface DSQL_IndexSchemaType {
|
||||||
indexName?: string;
|
indexName?: string;
|
||||||
indexType?: string;
|
indexType?: string;
|
||||||
indexTableFields?: DSQL_IndexTableFieldType[];
|
indexTableFields?: DSQL_IndexTableFieldType[];
|
||||||
@ -101,12 +101,12 @@ interface DSQL_IndexSchemaType {
|
|||||||
newTempIndex?: boolean;
|
newTempIndex?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DSQL_IndexTableFieldType {
|
export interface DSQL_IndexTableFieldType {
|
||||||
value: string;
|
value: string;
|
||||||
dataType: string;
|
dataType: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DSQL_MYSQL_SHOW_INDEXES_Type {
|
export interface DSQL_MYSQL_SHOW_INDEXES_Type {
|
||||||
Key_name: string;
|
Key_name: string;
|
||||||
Table: string;
|
Table: string;
|
||||||
Column_name: string;
|
Column_name: string;
|
||||||
@ -119,7 +119,7 @@ interface DSQL_MYSQL_SHOW_INDEXES_Type {
|
|||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_MYSQL_SHOW_COLUMNS_Type {
|
export interface DSQL_MYSQL_SHOW_COLUMNS_Type {
|
||||||
Field: string;
|
Field: string;
|
||||||
Type: string;
|
Type: string;
|
||||||
Null: string;
|
Null: string;
|
||||||
@ -130,7 +130,7 @@ interface DSQL_MYSQL_SHOW_COLUMNS_Type {
|
|||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_MYSQL_FOREIGN_KEYS_Type {
|
export interface DSQL_MYSQL_FOREIGN_KEYS_Type {
|
||||||
CONSTRAINT_NAME: string;
|
CONSTRAINT_NAME: string;
|
||||||
CONSTRAINT_SCHEMA: string;
|
CONSTRAINT_SCHEMA: string;
|
||||||
TABLE_NAME: string;
|
TABLE_NAME: string;
|
||||||
@ -138,7 +138,7 @@ interface DSQL_MYSQL_FOREIGN_KEYS_Type {
|
|||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
|
||||||
interface DSQL_MYSQL_user_databases_Type {
|
export interface DSQL_MYSQL_user_databases_Type {
|
||||||
user_id: number;
|
user_id: number;
|
||||||
db_full_name: string;
|
db_full_name: string;
|
||||||
db_name: string;
|
db_name: string;
|
||||||
@ -149,7 +149,7 @@ interface DSQL_MYSQL_user_databases_Type {
|
|||||||
active_clone_parent_db: string;
|
active_clone_parent_db: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PackageUserLoginRequestBody {
|
export interface PackageUserLoginRequestBody {
|
||||||
encryptionKey: string;
|
encryptionKey: string;
|
||||||
payload: any;
|
payload: any;
|
||||||
database: string;
|
database: string;
|
||||||
@ -162,7 +162,7 @@ interface PackageUserLoginRequestBody {
|
|||||||
dbSchema?: DSQL_DatabaseSchemaType;
|
dbSchema?: DSQL_DatabaseSchemaType;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PackageUserLoginLocalBody {
|
export interface PackageUserLoginLocalBody {
|
||||||
payload: any;
|
payload: any;
|
||||||
additionalFields?: string[];
|
additionalFields?: string[];
|
||||||
email_login?: boolean;
|
email_login?: boolean;
|
||||||
@ -184,7 +184,7 @@ type ImageInputFileToBase64FunctionReturn = {
|
|||||||
imageSize: number;
|
imageSize: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface GetReqQueryObject {
|
export interface GetReqQueryObject {
|
||||||
db: string;
|
db: string;
|
||||||
query: string;
|
query: string;
|
||||||
queryValues?: string;
|
queryValues?: string;
|
||||||
@ -193,13 +193,13 @@ interface GetReqQueryObject {
|
|||||||
|
|
||||||
type SerializeQueryFnType = (param0: SerializeQueryParams) => string;
|
type SerializeQueryFnType = (param0: SerializeQueryParams) => string;
|
||||||
|
|
||||||
interface SerializeQueryParams {
|
export interface SerializeQueryParams {
|
||||||
query: any;
|
query: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
interface DATASQUIREL_LoggedInUser {
|
export interface DATASQUIREL_LoggedInUser {
|
||||||
id?: number;
|
id?: number;
|
||||||
first_name: string;
|
first_name: string;
|
||||||
last_name: string;
|
last_name: string;
|
||||||
@ -238,28 +238,28 @@ interface DATASQUIREL_LoggedInUser {
|
|||||||
more_data?: any;
|
more_data?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AuthenticatedUser {
|
export interface AuthenticatedUser {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
payload: DATASQUIREL_LoggedInUser | null;
|
payload: DATASQUIREL_LoggedInUser | null;
|
||||||
msg?: string;
|
msg?: string;
|
||||||
userId?: number;
|
userId?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SuccessUserObject {
|
export interface SuccessUserObject {
|
||||||
id: number;
|
id: number;
|
||||||
first_name: string;
|
first_name: string;
|
||||||
last_name: string;
|
last_name: string;
|
||||||
email: string;
|
email: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AddUserFunctionReturn {
|
export interface AddUserFunctionReturn {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
payload?: SuccessUserObject | null;
|
payload?: SuccessUserObject | null;
|
||||||
msg?: string;
|
msg?: string;
|
||||||
sqlResult?: any;
|
sqlResult?: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface GoogleIdentityPromptNotification {
|
export interface GoogleIdentityPromptNotification {
|
||||||
getMomentType: () => string;
|
getMomentType: () => string;
|
||||||
getDismissedReason: () => string;
|
getDismissedReason: () => string;
|
||||||
getNotDisplayedReason: () => string;
|
getNotDisplayedReason: () => string;
|
||||||
@ -271,7 +271,7 @@ interface GoogleIdentityPromptNotification {
|
|||||||
isSkippedMoment: () => boolean;
|
isSkippedMoment: () => boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserDataPayload {
|
export interface UserDataPayload {
|
||||||
first_name: string;
|
first_name: string;
|
||||||
last_name: string;
|
last_name: string;
|
||||||
email: string;
|
email: string;
|
||||||
@ -279,7 +279,7 @@ interface UserDataPayload {
|
|||||||
username: string;
|
username: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface GetUserFunctionReturn {
|
export interface GetUserFunctionReturn {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
payload: {
|
payload: {
|
||||||
id: number;
|
id: number;
|
||||||
@ -295,7 +295,7 @@ interface GetUserFunctionReturn {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ReauthUserFunctionReturn {
|
export interface ReauthUserFunctionReturn {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
payload: DATASQUIREL_LoggedInUser | null;
|
payload: DATASQUIREL_LoggedInUser | null;
|
||||||
msg?: string;
|
msg?: string;
|
||||||
@ -303,12 +303,12 @@ interface ReauthUserFunctionReturn {
|
|||||||
token?: string;
|
token?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UpdateUserFunctionReturn {
|
export interface UpdateUserFunctionReturn {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
payload?: Object[] | string;
|
payload?: Object[] | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface GetReturn {
|
export interface GetReturn {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
payload?: any;
|
payload?: any;
|
||||||
msg?: string;
|
msg?: string;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "2.1.6",
|
"version": "2.1.7",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user