wip: Restructure twitter integration

This commit is contained in:
Faruk AYDIN
2022-10-04 23:09:50 +03:00
parent dc0e03245f
commit 8308265a62
21 changed files with 358 additions and 136 deletions

View File

@@ -1,5 +1,6 @@
import createHttpClient from '../http-client';
import Connection from '../../models/connection';
import Flow from '../../models/flow';
import {
IJSONObject,
IApp,
@@ -8,7 +9,8 @@ import {
const prepareGlobalVariableForConnection = (
connection: Connection,
appData: IApp
appData: IApp,
flow?: Flow
): IGlobalVariableForConnection => {
return {
auth: {
@@ -24,6 +26,9 @@ const prepareGlobalVariableForConnection = (
},
app: appData,
http: createHttpClient({ baseURL: appData.baseUrl }),
db: {
flow: flow,
},
};
};