I want to make use of the @zowe/cics API in a new plug-in, I'm struggling to do so as the CicsSession class isn't part of the exported API. CicsSession is what's used to create the session object that is then referenced in the API functions, without it the API isn't very accessible.
I have been able to copy the logic from CicsSession.createBasicCicsSession() into my own code, it just seems an odd requirement to have to do that. Perhaps the logic for creating the session instance could be moved into a utility class that is part of the API? That would make it consistent with the equivalent code in the zosmf API.
On a related note, there may be a bug in CicsSession.createBasicCicsSession(); I found the following line of code:
password: profile.pass,
only worked in my copy of the code when I changed it to:
password: profile.password,
I imagine this is related to issue zowe/zowe-cli-cics-plugin#13.
I want to make use of the @zowe/cics API in a new plug-in, I'm struggling to do so as the CicsSession class isn't part of the exported API. CicsSession is what's used to create the session object that is then referenced in the API functions, without it the API isn't very accessible.
I have been able to copy the logic from CicsSession.createBasicCicsSession() into my own code, it just seems an odd requirement to have to do that. Perhaps the logic for creating the session instance could be moved into a utility class that is part of the API? That would make it consistent with the equivalent code in the zosmf API.
On a related note, there may be a bug in CicsSession.createBasicCicsSession(); I found the following line of code:
password: profile.pass,
only worked in my copy of the code when I changed it to:
password: profile.password,
I imagine this is related to issue zowe/zowe-cli-cics-plugin#13.