Major refactoring: Add user id to API routes

This commit is contained in:
Benjamin Toby
2024-11-27 11:02:03 +01:00
parent a529d0bd08
commit b047d6557c
21 changed files with 144 additions and 49 deletions
+11
View File
@@ -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;
};