/*! * 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 { ImperativeError } from "@zowe/imperative"; import { Endpoints } from "../../constants"; import { IApiMessage } from "../doc/DSRestUtils/IDSResponse"; import { IDSRestClient, IResponseMap } from "../doc/DSRestUtils/IDSRestClient"; import { IDSJobCheckDdl, IDSJobCompareDdl, IDSJobDeployDdl, IDSJobExCompareScript, IDSJobExScript, IDSJobGenerateDdl, IDSJobPrepMigration } from "../doc/DSRestUtils/IDSJob"; import { ICheckDdlPayload, ICompareDdlPayload, IDeployDdlPayload, IExecuteCompareScriptPayload, IExecuteMigrationScriptPayload, IPrepareMigrationPayload, IExecuteScriptPayload, IGenerateDdlPayload, IStreamDataPayloads } from "../doc/DSRestUtils/IDSRequestPayload"; import { BaseHandler } from "../../cli/Base.handler"; import { IRunSQLResult } from "../doc/DSRestUtils/IRunSQLResult"; export declare class DSRestClient implements IDSRestClient { private handler; private reportConnectionErrors; restartToken: string; private _session; constructor(handler: BaseHandler, reportConnectionErrors?: boolean); request(endpoint: Endpoints.CHECK, payload: ICheckDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.GENERATE, payload: IGenerateDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.DEPLOY, payload: IDeployDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.COMPARE, payload: ICompareDdlPayload, modification?: string): Promise; request(endpoint: Endpoints.EXECUTE_COMPARE, payload: IExecuteCompareScriptPayload, modification?: string): Promise; request(endpoint: Endpoints.EXECUTE, payload: IExecuteScriptPayload, modification?: string): Promise; request(endpoint: Endpoints.EXECUTE_MIGRATE, payload: IExecuteMigrationScriptPayload, modification?: string): Promise; request(endpoint: Endpoints.MIGRATE, payload: IPrepareMigrationPayload, modification?: string): Promise; about(): Promise; private processRequest; processError(errorData: ImperativeError | IResponseMap | IApiMessage): never; private fail; private mapData; private getRequestStatus; getActiveSubsystems(): Promise; streamData(resource: string, payload: IStreamDataPayloads, processStreamData: (data: string) => Generator): AsyncGenerator; }