feat(webhook): add webhook application

This commit is contained in:
Ali BARIN
2022-12-07 23:41:46 +01:00
parent 67964192de
commit 3c62f182ab
13 changed files with 107 additions and 20 deletions

View File

@@ -54,6 +54,7 @@ export interface IStep {
key?: string;
appKey?: string;
iconUrl: string;
webhookUrl: string;
type: 'action' | 'trigger';
connectionId?: string;
status: string;
@@ -180,23 +181,16 @@ export interface IDynamicData {
export interface IAuth {
generateAuthUrl?($: IGlobalVariable): Promise<void>;
verifyCredentials($: IGlobalVariable): Promise<void>;
isStillVerified($: IGlobalVariable): Promise<boolean>;
verifyCredentials?($: IGlobalVariable): Promise<void>;
isStillVerified?($: IGlobalVariable): Promise<boolean>;
refreshToken?($: IGlobalVariable): Promise<void>;
verifyWebhook?($: IGlobalVariable): Promise<boolean>;
isRefreshTokenRequested?: boolean;
fields: IField[];
fields?: IField[];
authenticationSteps?: IAuthenticationStep[];
reconnectionSteps?: IAuthenticationStep[];
}
export interface IService {
authenticationClient?: IAuthentication;
triggers?: any;
actions?: any;
data?: any;
}
export interface ITriggerOutput {
data: ITriggerItem[];
error?: IJSONObject;
@@ -300,6 +294,7 @@ export type IGlobalVariable = {
id: string;
testRun: boolean;
};
lastExecutionStep?: IExecutionStep;
webhookUrl?: string;
triggerOutput?: ITriggerOutput;
actionOutput?: IActionOutput;