refactor: Use only arguments for action definitions

This commit is contained in:
Faruk AYDIN
2022-10-31 18:26:58 +01:00
parent bcfc9beb99
commit 1cfe84fc3d
10 changed files with 246 additions and 321 deletions

View File

@@ -232,14 +232,21 @@ export interface IActionItem {
raw: IJSONObject;
}
export interface IAction {
export interface IBaseAction {
name: string;
key: string;
description: string;
substeps: ISubstep[];
run($: IGlobalVariable): Promise<void>;
}
export interface IRawAction extends IBaseAction {
arguments?: IField[];
}
export interface IAction extends IBaseAction {
substeps?: ISubstep[];
}
export interface IAuthentication {
client: unknown;
verifyCredentials(): Promise<IJSONObject>;