chore: Use get app helper to get application data

This commit is contained in:
Faruk AYDIN
2022-10-06 15:49:05 +03:00
parent a58a59788d
commit 0825eb36e4
52 changed files with 139 additions and 1761 deletions

View File

@@ -158,14 +158,18 @@ export interface IApp {
primaryColor: string;
supportsConnections: boolean;
baseUrl: string;
auth: IAuth;
connectionCount: number;
flowCount: number;
triggers: ITrigger[];
actions: IAction[];
connections: IConnection[];
}
export interface IAuth {
fields: IField[];
authenticationSteps: IAuthenticationStep[];
reconnectionSteps: IAuthenticationStep[];
connectionCount: number;
flowCount: number;
triggers: any[];
actions: any[];
connections: IConnection[];
}
export interface IService {
@@ -176,10 +180,23 @@ export interface IService {
}
export interface ITrigger {
name: string;
key: string,
pollInterval: number;
description: string;
substeps: ISubstep[];
run(startTime?: Date): Promise<IJSONValue>;
testRun(startTime?: Date): Promise<IJSONValue>;
}
export interface IAction {
name: string;
key: string,
description: string;
substeps: ISubstep[];
run(startTime?: Date): Promise<IJSONValue>;
}
export interface IAuthentication {
client: unknown;
verifyCredentials(): Promise<IJSONObject>;