UNPKG

liveperson-functions-cli

Version:
31 lines (30 loc) 1 kB
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 {};