sfdx-hardis
Version:
Swiss-army-knife Toolbox for Salesforce. Allows you to define a complete CD/CD Pipeline. Orchestrate base commands and assist users with interactive wizards
37 lines (36 loc) • 1.88 kB
TypeScript
export declare const LOG_TYPES: readonly ["log", "action", "warning", "error", "success", "table", "other"];
export type LogType = typeof LOG_TYPES[number];
export declare class WebSocketClient {
private ws;
private wsContext;
private promptResponse;
private isDead;
private isInitialized;
constructor(context: any);
static isInitialized(): Promise<boolean>;
static isAlive(): boolean;
static isAliveWithLwcUI(): boolean;
static sendMessage(data: any): void;
static requestOpenFile(file: string): void;
static sendRefreshStatusMessage(): void;
static sendRefreshCommandsMessage(): void;
static sendProgressStartMessage(title: string, totalSteps?: number): void;
static sendProgressStepMessage(step: number, totalSteps?: number): void;
static sendProgressEndMessage(totalSteps?: number): void;
static sendRefreshPluginsMessage(): void;
static sendCommandSubCommandStartMessage(command: string, cwd: string, options: any): void;
static sendCommandSubCommandEndMessage(command: string, cwd: string, options: any, success: boolean, result: any): void;
static sendCommandLogLineMessage(message: string, logType?: LogType, isQuestion?: boolean): void;
static sendRunSfdxHardisCommandMessage(sfdxHardisCommand: string): void;
static sendRefreshPipelineMessage(): void;
static sendReportFileMessage(file: string, title: string, type: "actionCommand" | "actionUrl" | "report" | "docUrl"): void;
static sendPrompts(prompts: any): Promise<any>;
static sendCloseClientMessage(status?: string, error?: any): void;
static closeClient(status?: string): void;
private getCommandDocUrl;
start(): Promise<void>;
receiveMessage(data: any): void;
sendMessageToServer(data: any): void;
promptServer(prompts: any): Promise<any>;
dispose(status?: string, error?: any): void;
}