/*! * Copyright (c) 2026 Broadcom. All Rights Reserved. The term * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * This software and all information contained therein is * confidential and proprietary and shall not be duplicated, * used, disclosed, or disseminated in any way except as * authorized by the applicable license agreement, without the * express written permission of Broadcom. All authorized * reproductions must be marked with this language. * * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE, * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE. */ import { AbstractSession, ICommandArguments, ICommandDefinition, IHandlerParameters, IHandlerResponseConsoleApi, IHandlerResponseDataApi, IProfile, ISession } from "@zowe/imperative"; import { IDSJob } from "../api/doc/DSRestUtils/IDSJob"; import { IInputFiles } from "../api/doc/IHandlerFile"; import { IBaseHandler, IHandlerMessage } from "../api/doc/IBaseHandler"; import { VscodeDataFiles } from "../api/doc/IVscodeJSONResponse"; import { ErrorFile } from "../api/ErrorFile"; import { IRunSQLResult } from "../api/doc/DSRestUtils/IRunSQLResult"; type JSONResponseDataFiles = { ddlFile?: string; summaryFile?: string; impactFile?: string; compareScript?: string; recoveryScript?: string; migrateScript?: string; resultsetFile?: string; errorFile?: string; scriptLog?: string; }; type JSONResponseDataAttributes = { restartToken?: string; hasObjectChanges?: boolean; hasDb2Objects?: boolean; SQLResults?: IRunSQLResult[]; }; export declare abstract class BaseHandler implements IBaseHandler { session: AbstractSession | undefined; profile: IProfile | undefined; args: ICommandArguments | undefined; protected inputFiles: IInputFiles | undefined; errorFile: ErrorFile | undefined; static params: IHandlerParameters; static console: IHandlerResponseConsoleApi; static messages: IHandlerMessage[]; static fileValidationArgs: [ICommandArguments, boolean] | undefined; private _commandName; private _definition; set commandName(value: string); get commandName(): string | undefined; set definition(value: ICommandDefinition); get definition(): ICommandDefinition | undefined; process(commandParameters: IHandlerParameters, inputFiles?: IInputFiles): Promise; protected getSessionCfg(): ISession; protected checkLoadedProfile(): void; private checkRequiredCLIParameters; reportExecutionError(restartToken?: string): void; private checkRequestedProfilesExist; private static getProfileArg; private static checkRequestedProfileExistV2; private static reportMissingProfile; private static errExecution; protected static filterAndThrow(...errors: (string | undefined)[]): void | never; protected setJSONResponseData(files?: JSONResponseDataFiles | VscodeDataFiles, attributes?: JSONResponseDataAttributes, rfj?: boolean | undefined, data?: IHandlerResponseDataApi): void; protected displayWorkDatasetsLocation(job: IDSJob): void; protected displayWorkDatasetsLocation(locations: string[]): void; protected getWorkDatasetLocation(): string; static printMessages(throwOnError?: boolean): void | never; private loadOptions; protected static mergeOptions(target?: IProfile, profileOptions?: IProfile, commandOptionNames?: string[]): void; private _hasNonEmptyProfileProperty; } export {};