11
11
12
12
"use strict" ;
13
13
14
- import { IHandlerParameters , Logger , ImperativeError , Session , ITaskWithStatus , TaskStage , TaskProgress } from "@brightside/imperative" ;
14
+ import { IHandlerParameters , Logger , ImperativeError , AbstractSession , ITaskWithStatus ,
15
+ TaskStage , TaskProgress } from "@brightside/imperative" ;
15
16
import { ZosmfSession , SubmitJobs , List } from "@brightside/core" ;
16
17
import { ParmValidator } from "./ParmValidator" ;
17
18
@@ -166,7 +167,7 @@ export class BundleDeployer {
166
167
}
167
168
168
169
169
- private async createZosMFSession ( ) : Promise < Session > {
170
+ private async createZosMFSession ( ) : Promise < AbstractSession > {
170
171
// Create a zosMF session
171
172
const zosmfProfile = this . params . profiles . get ( "zosmf" ) ;
172
173
@@ -176,7 +177,7 @@ export class BundleDeployer {
176
177
return ZosmfSession . createBasicZosmfSession ( zosmfProfile ) ;
177
178
}
178
179
179
- private async checkHLQDatasets ( session : Session ) {
180
+ private async checkHLQDatasets ( session : AbstractSession ) {
180
181
// Check that the CICS dataset value looks valid and can be viewed
181
182
// Access errors will trigger an Exception
182
183
const cicspds = this . params . arguments . cicshlq + ".SDFHLOAD" ;
@@ -218,7 +219,7 @@ export class BundleDeployer {
218
219
}
219
220
}
220
221
221
- private async submitJCL ( jcl : string , session : Session ) : Promise < string > {
222
+ private async submitJCL ( jcl : string , session : AbstractSession ) : Promise < string > {
222
223
let spoolOutput : any ;
223
224
const status : ITaskWithStatus = { percentComplete : TaskProgress . TEN_PERCENT ,
224
225
statusMessage : "Submitting DFHDPLOY JCL" ,
0 commit comments