fix(IAuth): add missing func signatures
This commit is contained in:
15
packages/types/index.d.ts
vendored
15
packages/types/index.d.ts
vendored
@@ -161,12 +161,20 @@ export interface IApp {
|
|||||||
auth: IAuth;
|
auth: IAuth;
|
||||||
connectionCount: number;
|
connectionCount: number;
|
||||||
flowCount: number;
|
flowCount: number;
|
||||||
|
data: IData;
|
||||||
triggers: ITrigger[];
|
triggers: ITrigger[];
|
||||||
actions: IAction[];
|
actions: IAction[];
|
||||||
connections: IConnection[];
|
connections: IConnection[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IData {
|
||||||
|
[index: string]: any;
|
||||||
|
}
|
||||||
|
|
||||||
export interface IAuth {
|
export interface IAuth {
|
||||||
|
createAuthData($: IGlobalVariable): Promise<void>,
|
||||||
|
verifyCredentials($: IGlobalVariable): Promise<any>,
|
||||||
|
isStillVerified($: IGlobalVariable): Promise<boolean>,
|
||||||
fields: IField[];
|
fields: IField[];
|
||||||
authenticationSteps: IAuthenticationStep[];
|
authenticationSteps: IAuthenticationStep[];
|
||||||
reconnectionSteps: IAuthenticationStep[];
|
reconnectionSteps: IAuthenticationStep[];
|
||||||
@@ -185,8 +193,9 @@ export interface ITrigger {
|
|||||||
pollInterval: number;
|
pollInterval: number;
|
||||||
description: string;
|
description: string;
|
||||||
substeps: ISubstep[];
|
substeps: ISubstep[];
|
||||||
run(startTime?: Date): Promise<IJSONValue>;
|
getInterval(parameters: IGlobalVariable["db"]["step"]["parameters"]): string;
|
||||||
testRun(startTime?: Date): Promise<IJSONValue>;
|
run($: IGlobalVariable): Promise<{ data: IJSONObject[], error: IJSONObject | null }>;
|
||||||
|
testRun($: IGlobalVariable, startTime?: Date): Promise<{ data: IJSONObject[], error: IJSONObject | null }>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IAction {
|
export interface IAction {
|
||||||
@@ -194,7 +203,7 @@ export interface IAction {
|
|||||||
key: string,
|
key: string,
|
||||||
description: string;
|
description: string;
|
||||||
substeps: ISubstep[];
|
substeps: ISubstep[];
|
||||||
run(startTime?: Date): Promise<IJSONValue>;
|
run($: IGlobalVariable): Promise<{ data: IJSONObject, error: IJSONObject | null }>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IAuthentication {
|
export interface IAuthentication {
|
||||||
|
Reference in New Issue
Block a user