Major refactoring: Add user id to API routes
This commit is contained in:
Vendored
+11
@@ -335,6 +335,7 @@ export interface GetSchemaRequestQuery {
|
||||
database?: string;
|
||||
table?: string;
|
||||
field?: string;
|
||||
user_id?: string | number;
|
||||
}
|
||||
|
||||
export interface GetSchemaAPICredentialsParam {
|
||||
@@ -1095,6 +1096,7 @@ export type CheckApiCredentialsFnParam = {
|
||||
key?: string;
|
||||
database?: string;
|
||||
table?: string;
|
||||
user_id?: string | number;
|
||||
};
|
||||
|
||||
export type FetchApiFn = (
|
||||
@@ -1218,3 +1220,12 @@ export type SqlGeneratorFn = (Param0: {
|
||||
values: string[];
|
||||
}
|
||||
| undefined;
|
||||
|
||||
export type ApiConnectBody = {
|
||||
url: string;
|
||||
key: string;
|
||||
database: DSQL_MYSQL_user_databases_Type;
|
||||
dbSchema: DSQL_DatabaseSchemaType;
|
||||
type: "pull" | "push";
|
||||
user_id?: string | number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user