liveperson-functions-cli
Version:
LivePerson Functions CLI
31 lines (30 loc) • 1 kB
TypeScript
import { FileService } from '../service/file.service';
import { InvokeView } from '../view/invoke.view';
import { InitController } from './init.controller';
interface IInvokeConfig {
lambdaFunctions: string[];
inputFlags?: {
local?: boolean;
};
}
interface IInvokeControllerConfig {
invokeView?: InvokeView;
fileService?: FileService;
initController?: InitController;
}
export declare class InvokeController {
private invokeView;
private fileService;
private lambdaToInvoke;
private initController;
constructor({ invokeView, fileService, initController, }?: IInvokeControllerConfig);
/**
* Invokes the passed function remote or local depending on the --local flag.
* @param {IInvokeConfig} - lambda function and flags
* @returns {Promise<void>} - invocation local or remote
* @memberof InvokeController
*/
invoke({ lambdaFunctions, inputFlags, }: IInvokeConfig): Promise<void>;
private invokeRemote;
}
export {};