liveperson-functions-cli
Version:
LivePerson Functions CLI
48 lines (47 loc) • 1.56 kB
TypeScript
import { PrettyPrintableError } from '@oclif/core/lib/interfaces';
import { LogMessage, ErrorMessage } from './printer';
import { IFunctionConfig } from '../service/defaultStructure.service';
import { IPromptAnswer } from './printer/prompt';
interface ICreateViewConfig {
log?: LogMessage;
error?: ErrorMessage;
chalk?: any;
prompt?: any;
}
export declare class CreateView {
private log;
private error;
private chalk;
private prompt;
constructor({ log, error, chalk, prompt, }?: ICreateViewConfig);
/**
* Show when a function has been created
* @memberof CreateView
* @param functionParameters
*/
showFunctionIsCreated(functionParameters: IFunctionConfig): void;
/**
* Show when a function has been created
* @memberof CreateView
* @param schedule
*/
showScheduleIsCreated(nextExecution: string): void;
/**
* Shows an error message
* @param {string|PrettyPrintableError} message - message
* @memberof CreateView
*/
showErrorMessage(message: string | PrettyPrintableError): void;
/**
* Shows a message
* @param {string} message - message
* @memberof CreateView
*/
showMessage(message: string): void;
askForFunctionName(): Promise<IPromptAnswer[]>;
askForFunctionDescription(): Promise<IPromptAnswer[]>;
askForEventID(eventIDs?: any[]): Promise<IPromptAnswer[]>;
askForDeployedLambda(lambdaNames?: any[]): Promise<IPromptAnswer>;
askForCronExpression(): Promise<IPromptAnswer>;
}
export {};