UNPKG

@zowe/cics-for-zowe-cli

Version:
52 lines 2.26 kB
"use strict"; /** * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v2.0 which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v20.html * * SPDX-License-Identifier: EPL-2.0 * * Copyright Contributors to the Zowe Project. * */ Object.defineProperty(exports, "__esModule", { value: true }); const cics_for_zowe_sdk_1 = require("@zowe/cics-for-zowe-sdk"); const imperative_1 = require("@zowe/imperative"); const CicsBaseHandler_1 = require("../../CicsBaseHandler"); // Does not use the import in anticipation of some internationalization work to be done later. const strings = require("../../-strings-/en").default.DEFINE.RESOURCES.URIMAP; /** * Command handler for defining CICS URIMaps via CMCI * @export * @class UrimapPipelineHandler * @implements {ICommandHandler} */ class UrimapPipelineHandler extends CicsBaseHandler_1.CicsBaseHandler { async processWithSession(params, session) { const status = { statusMessage: "Defining URIMAP of type Pipeline to CICS", percentComplete: 0, stageName: imperative_1.TaskStage.IN_PROGRESS, }; params.response.progress.startBar({ task: status }); const response = await (0, cics_for_zowe_sdk_1.defineUrimapPipeline)(session, { name: params.arguments.urimapName, csdGroup: params.arguments.csdGroup, path: params.arguments.urimapPath, host: params.arguments.urimapHost, pipelineName: params.arguments.pipelineName, scheme: params.arguments.urimapScheme, description: params.arguments.description, enable: params.arguments.enable, transactionName: params.arguments.transactionName, webserviceName: params.arguments.webserviceName, regionName: params.arguments.regionName, cicsPlex: params.arguments.cicsPlex, tcpipservice: params.arguments.tcpipservice, }); params.response.console.log(strings.MESSAGES.SUCCESS, params.arguments.urimapName); return response; } } exports.default = UrimapPipelineHandler; //# sourceMappingURL=UrimapPipeline.handler.js.map