@broadcom/ops-for-zowe-cli 4.1.2 → 5.0.0-next.202401221923

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +8 -12
  3. package/lib/api/OpsProfilesConfig.js +10 -6
  4. package/lib/api/OpsProfilesConfig.js.map +1 -1
  5. package/lib/api/Show.d.ts +4 -3
  6. package/lib/api/Show.js +20 -6
  7. package/lib/api/Show.js.map +1 -1
  8. package/lib/api/Update.d.ts +2 -2
  9. package/lib/api/Update.js +40 -14
  10. package/lib/api/Update.js.map +1 -1
  11. package/lib/api/constants/Ops.constants.js +7 -5
  12. package/lib/api/constants/Ops.constants.js.map +1 -1
  13. package/lib/api/constants/PluginConstants.js +1 -1
  14. package/lib/api/constants/index.js +7 -3
  15. package/lib/api/constants/index.js.map +1 -1
  16. package/lib/api/doc/IShowResourceResponse.js +1 -1
  17. package/lib/api/doc/IShowRuleResponse.js +1 -1
  18. package/lib/api/doc/IShowRulesetResponse.d.ts +12 -0
  19. package/lib/api/doc/IShowRulesetResponse.js +25 -0
  20. package/lib/api/doc/IShowRulesetResponse.js.map +1 -0
  21. package/lib/api/index.js +7 -3
  22. package/lib/api/index.js.map +1 -1
  23. package/lib/api/utils/IOpsRestResponse.js +1 -1
  24. package/lib/api/utils/OpsRestClient.js +1 -1
  25. package/lib/api/utils/OpsRestUtils.d.ts +3 -2
  26. package/lib/api/utils/OpsRestUtils.js +20 -9
  27. package/lib/api/utils/OpsRestUtils.js.map +1 -1
  28. package/lib/api/utils/OpsTextUtils.js +14 -5
  29. package/lib/api/utils/OpsTextUtils.js.map +1 -1
  30. package/lib/api/utils/RuleListUtils.d.ts +1 -0
  31. package/lib/api/utils/RuleListUtils.js +36 -9
  32. package/lib/api/utils/RuleListUtils.js.map +1 -1
  33. package/lib/api/utils/RuleUtils.d.ts +4 -4
  34. package/lib/api/utils/RuleUtils.js +29 -13
  35. package/lib/api/utils/RuleUtils.js.map +1 -1
  36. package/lib/api/utils/RulesetListUtils.d.ts +4 -0
  37. package/lib/api/utils/RulesetListUtils.js +41 -0
  38. package/lib/api/utils/RulesetListUtils.js.map +1 -0
  39. package/lib/api/utils/RulesetUtils.d.ts +5 -0
  40. package/lib/api/utils/RulesetUtils.js +51 -0
  41. package/lib/api/utils/RulesetUtils.js.map +1 -0
  42. package/lib/api/utils/SSMResourceListUtils.js +21 -5
  43. package/lib/api/utils/SSMResourceListUtils.js.map +1 -1
  44. package/lib/api/utils/SSMUtils.d.ts +5 -4
  45. package/lib/api/utils/SSMUtils.js +80 -20
  46. package/lib/api/utils/SSMUtils.js.map +1 -1
  47. package/lib/api/utils/index.d.ts +4 -2
  48. package/lib/api/utils/index.js +11 -5
  49. package/lib/api/utils/index.js.map +1 -1
  50. package/lib/cli/OpsBaseHandler.js +1 -1
  51. package/lib/cli/ResourceParameterDefinitions.d.ts +1 -1
  52. package/lib/cli/ResourceParameterDefinitions.js +12 -7
  53. package/lib/cli/ResourceParameterDefinitions.js.map +1 -1
  54. package/lib/cli/RuleParameterDefinitions.js +2 -2
  55. package/lib/cli/RuleParameterDefinitions.js.map +1 -1
  56. package/lib/cli/RulesetParameterDefinitions.d.ts +5 -0
  57. package/lib/cli/RulesetParameterDefinitions.js +37 -0
  58. package/lib/cli/RulesetParameterDefinitions.js.map +1 -0
  59. package/lib/cli/disable/Disable.definition.js +3 -3
  60. package/lib/cli/disable/Disable.definition.js.map +1 -1
  61. package/lib/cli/disable/rule/Rule.definition.js +2 -2
  62. package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
  63. package/lib/cli/disable/rule/Rule.handler.js +3 -3
  64. package/lib/cli/disable/rule/Rule.handler.js.map +1 -1
  65. package/lib/cli/enable/Enable.definition.js +3 -4
  66. package/lib/cli/enable/Enable.definition.js.map +1 -1
  67. package/lib/cli/enable/rule/Rule.definition.js +2 -2
  68. package/lib/cli/enable/rule/Rule.definition.js.map +1 -1
  69. package/lib/cli/enable/rule/Rule.handler.js +2 -2
  70. package/lib/cli/enable/rule/Rule.handler.js.map +1 -1
  71. package/lib/cli/show/Show.definition.js +5 -4
  72. package/lib/cli/show/Show.definition.js.map +1 -1
  73. package/lib/cli/show/resource/Resource.definition.js +15 -5
  74. package/lib/cli/show/resource/Resource.definition.js.map +1 -1
  75. package/lib/cli/show/resource/Resource.handler.js +2 -2
  76. package/lib/cli/show/resource/Resource.handler.js.map +1 -1
  77. package/lib/cli/show/rule/Rule.definition.js +12 -2
  78. package/lib/cli/show/rule/Rule.definition.js.map +1 -1
  79. package/lib/cli/show/rule/Rule.handler.js +9 -4
  80. package/lib/cli/show/rule/Rule.handler.js.map +1 -1
  81. package/lib/cli/show/ruleset/Ruleset.definition.d.ts +17 -0
  82. package/lib/cli/show/ruleset/Ruleset.definition.js +70 -0
  83. package/lib/cli/show/ruleset/Ruleset.definition.js.map +1 -0
  84. package/lib/cli/show/ruleset/Ruleset.handler.d.ts +5 -0
  85. package/lib/cli/show/ruleset/Ruleset.handler.js +50 -0
  86. package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -0
  87. package/lib/cli/start/Start.definition.js +3 -3
  88. package/lib/cli/start/Start.definition.js.map +1 -1
  89. package/lib/cli/start/resource/Resource.definition.js +9 -9
  90. package/lib/cli/start/resource/Resource.definition.js.map +1 -1
  91. package/lib/cli/start/resource/Resource.handler.js +2 -2
  92. package/lib/cli/start/resource/Resource.handler.js.map +1 -1
  93. package/lib/cli/stop/Stop.definition.js +3 -3
  94. package/lib/cli/stop/Stop.definition.js.map +1 -1
  95. package/lib/cli/stop/resource/Resource.definition.js +9 -9
  96. package/lib/cli/stop/resource/Resource.definition.js.map +1 -1
  97. package/lib/cli/stop/resource/Resource.handler.js +2 -2
  98. package/lib/cli/stop/resource/Resource.handler.js.map +1 -1
  99. package/lib/healthCheck.handler.js +1 -1
  100. package/lib/imperative.js +17 -10
  101. package/lib/imperative.js.map +1 -1
  102. package/lib/index.d.ts +6 -4
  103. package/lib/index.js +13 -7
  104. package/lib/index.js.map +1 -1
  105. package/package.json +36 -38
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ruleset.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mDAAmD;IAC5D,WAAW,EAAE,6EAA6E;QACtF,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+DAA+D;SAC/E;QACD;YACI,OAAO,EAAE,gBAAgB;YACzB,WAAW,EAAE,kEAAkE;SAClF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,sDAAsD;SACtE;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE,EACZ;IACD,OAAO,EAAE;QACL,yDAA2B,CAAC,aAAa;KAC5C;CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IHandlerParameters } from "@zowe/imperative";
2
+ import { OpsBaseHandler } from "../../OpsBaseHandler";
3
+ export default class RulesetHandler extends OpsBaseHandler {
4
+ processOps(params: IHandlerParameters): Promise<void>;
5
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ const RulesetListUtils_1 = require("../../../api/utils/RulesetListUtils");
35
+ const Show_1 = require("../../../api/Show");
36
+ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
37
+ class RulesetHandler extends OpsBaseHandler_1.OpsBaseHandler {
38
+ processOps(params) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const response = yield (0, Show_1.showRuleset)(this.session, params.arguments.ruleset, params.arguments.restApi, params.arguments.subsystem, params);
41
+ // No need to process response to 'show ruleset' as not supported with web services
42
+ if (params.arguments.restApi) {
43
+ params.response.data.setObj(response);
44
+ RulesetListUtils_1.RulesetListUtils.printShowRulesetResponse(response, params);
45
+ }
46
+ });
47
+ }
48
+ }
49
+ exports.default = RulesetHandler;
50
+ //# sourceMappingURL=Ruleset.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0EAAuE;AACvE,4CAAgD;AAChD,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAClE,mFAAmF;YACnF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,mCAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aAC/D;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -25,8 +25,8 @@ const Resource_definition_1 = require("./resource/Resource.definition");
25
25
  const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
26
26
  const StartDefinition = {
27
27
  name: "start",
28
- summary: "Starts an ssm resource in OPS/MVS",
29
- description: "Start OPS/MVS resources.",
28
+ summary: "Start an SSM resource.",
29
+ description: "Start a System State Manager resource.",
30
30
  type: "group",
31
31
  children: [Resource_definition_1.ResourceDefinition],
32
32
  passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
@@ -1 +1 @@
1
- {"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/cli/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,eAAe,GAAuB;IACxC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,eAAe,CAAC"}
1
+ {"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/cli/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,eAAe,GAAuB;IACxC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,wBAAwB;IACjC,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,eAAe,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -28,16 +28,16 @@ exports.ResourceDefinition = {
28
28
  name: "resource",
29
29
  aliases: [],
30
30
  summary: "Start the specified resource.",
31
- description: "Start the specified resource. The desired state of the resource will" +
32
- "be set to the appropriate UP state and SSM will take actions to start the resource.",
31
+ description: "Start the specified resource. The desired state of the resource is " +
32
+ "set to the appropriate UP state and SSM takes action to start the resource.",
33
33
  examples: [
34
34
  {
35
- options: "RESOURCE1 --tablename MYTABLE --subsystem OPSS",
36
- description: "Start RESOURCE1 on table MYTABLE on subsystem OPSS."
35
+ options: "RESOURCE1 MYTABLE --subsystem OPSS",
36
+ description: "Start the resource RESOURCE1 in the table MYTABLE for subsystem OPSS."
37
37
  },
38
38
  {
39
- options: "RESOURCE1 --tablename MYTABLE --subsystem OPSS -w 120",
40
- description: "Start RESOURCE1 on table MYTABLE on subsystem OPSS and wait for up to 2 minutes " +
39
+ options: "RESOURCE1 MYTABLE --subsystem OPSS -w 120",
40
+ description: "Start the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem, and wait for up to 2 minutes " +
41
41
  "for RESOURCE1 to have a current state of UP."
42
42
  }
43
43
  ],
@@ -45,10 +45,10 @@ exports.ResourceDefinition = {
45
45
  handler: __dirname + "/Resource.handler",
46
46
  profile: { optional: ["ops"] },
47
47
  positionals: [
48
- ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
48
+ ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
49
+ ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameUpdatePositional
49
50
  ],
50
51
  options: [
51
- ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
52
52
  ResourceParameterDefinitions_1.ResourceParameterDefinitions.waitOption
53
53
  ]
54
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,sEAAsE;QAClF,qFAAqF;IACtF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,gDAAgD;YACzD,WAAW,EAAE,qDAAqD;SACrE;QACD;YACI,OAAO,EAAE,uDAAuD;YAChE,WAAW,EAAE,kFAAkF;gBAC3F,8CAA8C;SACrD;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;KACtD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,eAAe;QAC5C,2DAA4B,CAAC,UAAU;KAC1C;CACJ,CAAC"}
1
+ {"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,qEAAqE;QACjF,6EAA6E;IAC9E,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,uEAAuE;SACvF;QACD;YACI,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,yGAAyG;gBAClH,8CAA8C;SACrD;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;QACnD,2DAA4B,CAAC,yBAAyB;KACzD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,UAAU;KAC1C;CACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -37,7 +37,7 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
37
37
  class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
38
38
  processOps(params) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
- const response = yield Update_1.updateResource(this.session, params.arguments.resourcename, "UP", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
40
+ const response = yield (0, Update_1.updateResource)(this.session, params.arguments.resourcename, params.arguments.restApi, "UP", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
41
41
  params.response.data.setObj(response);
42
42
  SSMResourceListUtils_1.SSMResourceListUtils.printResourceList(response, params);
43
43
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAoD;AAEpD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,uBAAc,CAAC,IAAI,CAAC,OAAO,EACnD,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EACnC,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
1
+ {"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAoD;AAEpD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,uBAAc,EAAC,IAAI,CAAC,OAAO,EACnD,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAC7D,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -25,8 +25,8 @@ const Resource_definition_1 = require("./resource/Resource.definition");
25
25
  const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
26
26
  const StopDefinition = {
27
27
  name: "stop",
28
- summary: "Stop OPS/MVS resources.",
29
- description: "Stop OPS/MVS resources.",
28
+ summary: "Stop an SSM resource.",
29
+ description: "Stop a System State Manager resource.",
30
30
  type: "group",
31
31
  children: [Resource_definition_1.ResourceDefinition],
32
32
  passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
@@ -1 +1 @@
1
- {"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/cli/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,yBAAyB;IACtC,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
1
+ {"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/cli/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,uBAAuB;IAChC,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -28,16 +28,16 @@ exports.ResourceDefinition = {
28
28
  name: "resource",
29
29
  aliases: [],
30
30
  summary: "Stop the specified resource.",
31
- description: "Stop the specified resource. The desired state of the resource will" +
32
- "be set to the appropriate DOWN state and SSM will take actions to start the resource.",
31
+ description: "Stop the specified resource. The desired state of the resource is " +
32
+ "set to the appropriate DOWN state and SSM takes action to stop the resource.",
33
33
  examples: [
34
34
  {
35
- options: "RESOURCE1 --tablename MYTABLE --subsystem OPSS",
36
- description: "Stop RESOURCE1 on table MYTABLE on subsystem OPSS."
35
+ options: "RESOURCE1 MYTABLE --subsystem OPSS",
36
+ description: "Stop the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem."
37
37
  },
38
38
  {
39
- options: "RESOURCE1 --tablename MYTABLE --subsystem OPSS -w 120",
40
- description: "Start RESOURCE1 on table MYTABLE on subsystem OPSS and wait for up to 2 minutes " +
39
+ options: "RESOURCE1 MYTABLE --subsystem OPSS -w 120",
40
+ description: "Stop the RESOURCE1 in the table MYTABLE for the OPSS subsystem, and wait for up to 2 minutes " +
41
41
  "for RESOURCE1 to have a current state of DOWN."
42
42
  }
43
43
  ],
@@ -45,10 +45,10 @@ exports.ResourceDefinition = {
45
45
  handler: __dirname + "/Resource.handler",
46
46
  profile: { optional: ["ops"] },
47
47
  positionals: [
48
- ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
48
+ ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
49
+ ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameUpdatePositional
49
50
  ],
50
51
  options: [
51
- ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
52
52
  ResourceParameterDefinitions_1.ResourceParameterDefinitions.waitOption
53
53
  ]
54
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,qEAAqE;QACjF,uFAAuF;IACxF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,gDAAgD;YACzD,WAAW,EAAE,oDAAoD;SACpE;QACD;YACI,OAAO,EAAE,uDAAuD;YAChE,WAAW,EAAE,kFAAkF;gBAC3F,gDAAgD;SACvD;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;KACtD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,eAAe;QAC5C,2DAA4B,CAAC,UAAU;KAC1C;CACJ,CAAC"}
1
+ {"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,oEAAoE;QAChF,8EAA8E;IAC/E,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,0EAA0E;SAC1F;QACD;YACI,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,+FAA+F;gBACxG,gDAAgD;SACvD;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;QACnD,2DAA4B,CAAC,yBAAyB;KACzD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,UAAU;KAC1C;CACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -37,7 +37,7 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
37
37
  class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
38
38
  processOps(params) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
- const response = yield Update_1.updateResource(this.session, params.arguments.resourcename, "DOWN", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
40
+ const response = yield (0, Update_1.updateResource)(this.session, params.arguments.resourcename, params.arguments.restApi, "DOWN", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
41
41
  params.response.data.setObj(response);
42
42
  SSMResourceListUtils_1.SSMResourceListUtils.printResourceList(response, params);
43
43
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAsD;AAEtD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,IAAI,CAAC,OAAO,EAC9C,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,EACrC,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
1
+ {"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAsD;AAEtD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,CAAC,OAAO,EAC9C,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAC/D,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
package/lib/imperative.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -23,14 +23,16 @@
23
23
  */
24
24
  const PluginConstants_1 = require("./api/constants/PluginConstants");
25
25
  const OpsProfilesConfig_1 = require("./api/OpsProfilesConfig");
26
+ // import HealthCheckHandler from "./healthCheck.handler";
26
27
  const config = {
27
28
  commandModuleGlobs: ["**/cli/*/*.definition!(.d).*s"],
28
29
  rootCommandDescription: PluginConstants_1.PluginConstants.PLUGIN_DESCRIPTION,
29
30
  productDisplayName: PluginConstants_1.PluginConstants.PLUGIN_NAME,
30
- pluginHealthCheck: __dirname + "/healthCheck.handler",
31
- pluginSummary: "Zowe CLI Plug-in for OPS/MVS®",
31
+ pluginSummary: PluginConstants_1.PluginConstants.PLUGIN_NAME,
32
32
  name: PluginConstants_1.PluginConstants.PLUGIN_GROUP_NAME,
33
33
  // TODO - when the plugin moves to using the OPS/MVS REST API (APIML conformant) then enable
34
+ // TODO - based on the previous TODO, if the plugin is successfully tested with the 'apimlConnLookup' below
35
+ // then remove both TODOs and comment below
34
36
  //Per Timothy Johnson: You are correct that those Zowe v2 conformance criteria are not currently applicable to the
35
37
  // OPS plug-in for Zowe CLI, as long as it is intended to be used with the old OPS API.
36
38
  //I would suggest removing the apimlConnLookup definition until you support base paths.
@@ -38,13 +40,18 @@ const config = {
38
40
  // OPS profile with a basePath property auto-created in their zowe.config.json.
39
41
  //Whenever you update the OPS plug-in to support the new APIML-conformant OPS API, you should address those
40
42
  // conformance criteria and add the apimlConnLookup property.
41
- // apimlConnLookup: [
42
- // {
43
- // apiId: "bcm.opsmvs",
44
- // gatewayUrl: "api/v1",
45
- // connProfType: "ops"
46
- // }
47
- // ],
43
+ apimlConnLookup: [
44
+ {
45
+ apiId: "bcm.opsmvs",
46
+ gatewayUrl: "api/v1",
47
+ connProfType: "ops"
48
+ },
49
+ {
50
+ apiId: "bcm.opsmvs",
51
+ gatewayUrl: "api/v2",
52
+ connProfType: "ops"
53
+ }
54
+ ],
48
55
  profiles: OpsProfilesConfig_1.OpsProfilesConfig
49
56
  };
50
57
  module.exports = config;
@@ -1 +1 @@
1
- {"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAkE;AAClE,+DAA4D;AAE5D,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,CAAC,+BAA+B,CAAC;IACrD,sBAAsB,EAAE,iCAAe,CAAC,kBAAkB;IAC1D,kBAAkB,EAAE,iCAAe,CAAC,WAAW;IAC/C,iBAAiB,EAAE,SAAS,GAAG,sBAAsB;IACrD,aAAa,EAAE,+BAA+B;IAC9C,IAAI,EAAE,iCAAe,CAAC,iBAAiB;IACvC,4FAA4F;IAC5F,kHAAkH;IAClH,uFAAuF;IACvF,uFAAuF;IACvF,4GAA4G;IAC5G,+EAA+E;IAC/E,2GAA2G;IAC3G,6DAA6D;IAC7D,qBAAqB;IACrB,QAAQ;IACR,+BAA+B;IAC/B,gCAAgC;IAChC,8BAA8B;IAC9B,QAAQ;IACR,KAAK;IACL,QAAQ,EAAE,qCAAiB;CAC9B,CAAC;AAEF,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAkE;AAClE,+DAA4D;AAC5D,0DAA0D;AAE1D,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,CAAC,+BAA+B,CAAC;IACrD,sBAAsB,EAAE,iCAAe,CAAC,kBAAkB;IAC1D,kBAAkB,EAAE,iCAAe,CAAC,WAAW;IAC/C,aAAa,EAAE,iCAAe,CAAC,WAAW;IAC1C,IAAI,EAAE,iCAAe,CAAC,iBAAiB;IACvC,4FAA4F;IAC5F,2GAA2G;IAC3G,2CAA2C;IAC3C,kHAAkH;IAClH,uFAAuF;IACvF,uFAAuF;IACvF,4GAA4G;IAC5G,+EAA+E;IAC/E,2GAA2G;IAC3G,6DAA6D;IAC7D,eAAe,EAAE;QACb;YACI,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,KAAK;SACtB;QACD;YACI,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,KAAK;SACtB;KACJ;IACD,QAAQ,EAAE,qCAAiB;CAC9B,CAAC;AAEF,iBAAS,MAAM,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,16 +1,18 @@
1
1
  /**
2
- * Use the index.ts to export any public facing APIs/intefaces/etc.
2
+ * Use the index.ts to export any public facing APIs/interfaces/etc.
3
3
  *
4
4
  * If your plugin introduces a set of APIs/functions that others would find useful when building node apps
5
5
  * (or editor extensions, etc.) export them here.
6
6
  *
7
- * For example, Zowe CLI offers Jobs APIs that can be invoke programmatically from a VS code extension to create
7
+ * For example, Zowe CLI offers Jobs APIs that can be invoked programmatically from a VS code extension to create
8
8
  * a Job viewer/tree extension.
9
9
  */
10
10
  export * from "./api";
11
11
  export * from "./api/utils/OpsRestUtils";
12
- export * from "./api/utils/SSMUtils";
13
12
  export * from "./api/utils/OpsTextUtils";
13
+ export * from "./api/utils/RuleListUtils";
14
14
  export * from "./api/utils/RuleUtils";
15
+ export * from "./api/utils/RulesetListUtils";
16
+ export * from "./api/utils/RulesetUtils";
15
17
  export * from "./api/utils/SSMResourceListUtils";
16
- export * from "./api/utils/RuleListUtils";
18
+ export * from "./api/utils/SSMUtils";
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2024 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -23,29 +23,35 @@
23
23
  */
24
24
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
25
25
  if (k2 === undefined) k2 = k;
26
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
26
+ var desc = Object.getOwnPropertyDescriptor(m, k);
27
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
28
+ desc = { enumerable: true, get: function() { return m[k]; } };
29
+ }
30
+ Object.defineProperty(o, k2, desc);
27
31
  }) : (function(o, m, k, k2) {
28
32
  if (k2 === undefined) k2 = k;
29
33
  o[k2] = m[k];
30
34
  }));
31
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
37
  };
34
38
  Object.defineProperty(exports, "__esModule", { value: true });
35
39
  /**
36
- * Use the index.ts to export any public facing APIs/intefaces/etc.
40
+ * Use the index.ts to export any public facing APIs/interfaces/etc.
37
41
  *
38
42
  * If your plugin introduces a set of APIs/functions that others would find useful when building node apps
39
43
  * (or editor extensions, etc.) export them here.
40
44
  *
41
- * For example, Zowe CLI offers Jobs APIs that can be invoke programmatically from a VS code extension to create
45
+ * For example, Zowe CLI offers Jobs APIs that can be invoked programmatically from a VS code extension to create
42
46
  * a Job viewer/tree extension.
43
47
  */
44
48
  __exportStar(require("./api"), exports);
45
49
  __exportStar(require("./api/utils/OpsRestUtils"), exports);
46
- __exportStar(require("./api/utils/SSMUtils"), exports);
47
50
  __exportStar(require("./api/utils/OpsTextUtils"), exports);
51
+ __exportStar(require("./api/utils/RuleListUtils"), exports);
48
52
  __exportStar(require("./api/utils/RuleUtils"), exports);
53
+ __exportStar(require("./api/utils/RulesetListUtils"), exports);
54
+ __exportStar(require("./api/utils/RulesetUtils"), exports);
49
55
  __exportStar(require("./api/utils/SSMResourceListUtils"), exports);
50
- __exportStar(require("./api/utils/RuleListUtils"), exports);
56
+ __exportStar(require("./api/utils/SSMUtils"), exports);
51
57
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH;;;;;;;;GAQG;AACH,wCAAsB;AACtB,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,wDAAsC;AACtC,mEAAiD;AACjD,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;AAEH;;;;;;;;GAQG;AACH,wCAAsB;AACtB,2DAAyC;AACzC,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,uDAAqC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broadcom/ops-for-zowe-cli",
3
- "version": "4.1.2",
3
+ "version": "5.0.0-next.202401221923",
4
4
  "description": "OPS/MVS® Plug-in for Zowe CLI",
5
5
  "author": "Broadcom",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -41,62 +41,58 @@
41
41
  "imperative": {
42
42
  "configurationModule": "lib/imperative.js"
43
43
  },
44
- "dependencies": {},
45
44
  "peerDependencies": {
46
- "@zowe/imperative": "^5.1.0"
45
+ "@zowe/imperative": "^5.18.1"
47
46
  },
48
47
  "devDependencies": {
49
- "@types/fs-extra": "^8.0.0",
50
- "@types/jest": "^26.0.0",
51
- "@types/node": "^12.12.24",
48
+ "@types/fs-extra": "^8.1.2",
49
+ "@types/jest": "^27.5.2",
50
+ "@types/node": "^18.17.1",
52
51
  "@types/yargs": "^15.0.0",
53
52
  "@typescript-eslint/eslint-plugin": "^4.29.0",
54
53
  "@typescript-eslint/parser": "^4.29.0",
55
- "@zowe/cli-test-utils": "^7.1.0",
56
- "@zowe/core-for-zowe-sdk": "^7.1.0",
57
- "@zowe/imperative": "5.5.4",
58
- "@zowe/zosmf-for-zowe-sdk": "^7.1.0",
54
+ "@zowe/cli-test-utils": "7.16.5",
55
+ "@zowe/core-for-zowe-sdk": "7.16.5",
56
+ "@zowe/imperative": "^5.21.0",
57
+ "@zowe/zosmf-for-zowe-sdk": "7.16.5",
59
58
  "env-cmd": "^8.0.2",
60
59
  "eslint": "^7.32.0",
61
60
  "eslint-plugin-jest": "^24.4.0",
62
61
  "eslint-plugin-unused-imports": "^1.1.2",
63
62
  "fs-extra": "^8.1.0",
64
- "jest": "^26.1.0",
65
- "jest-environment-node": "^26.1.0",
63
+ "jest": "^27.5.1",
64
+ "jest-cli": "^27.5.1",
65
+ "jest-environment-node": "^27.5.1",
66
66
  "jest-environment-node-debug": "^2.0.0",
67
- "jest-junit": "^6.3.0",
68
- "jest-stare": "^1.0.5",
69
- "madge": "^5.0.1",
67
+ "jest-html-reporter": "^3.7.0",
68
+ "jest-junit": "^6.4.0",
69
+ "jest-stare": "^2.5.0",
70
+ "madge": "^5.0.2",
70
71
  "rimraf": "^2.7.1",
71
- "ts-jest": "^26.5.1",
72
+ "ts-jest": "^27.1.5",
72
73
  "ts-node": "^7.0.1",
73
- "typedoc": "^0.20.0",
74
- "typescript": "^3.8.0",
75
- "uuid": "^3.2.1"
74
+ "typedoc": "^0.25.4",
75
+ "typescript": "^4.9.5",
76
+ "uuid": "^9.0.0"
76
77
  },
77
78
  "jest": {
78
- "setupFilesAfterEnv": [
79
- "./__tests__/setUpJest.js"
80
- ],
81
79
  "modulePathIgnorePatterns": [
82
80
  "__tests__/__snapshots__/"
83
81
  ],
82
+ "watchPathIgnorePatterns": [
83
+ ".*jest-stare.*\\.js"
84
+ ],
84
85
  "testResultsProcessor": "jest-stare",
85
86
  "transform": {
86
87
  ".(ts)": "ts-jest"
87
88
  },
88
- "transformIgnorePatterns": [
89
- "\\.js$",
90
- "\\.json"
91
- ],
92
89
  "testRegex": "(test|spec)\\.ts$",
93
90
  "moduleFileExtensions": [
94
91
  "ts",
95
92
  "js"
96
93
  ],
97
94
  "testPathIgnorePatterns": [
98
- "<rootDir>/__tests__/__results__",
99
- "./__tests__/setUpJest.js"
95
+ "<rootDir>/__tests__/__results__"
100
96
  ],
101
97
  "testEnvironment": "node",
102
98
  "collectCoverageFrom": [
@@ -110,23 +106,25 @@
110
106
  "json",
111
107
  "lcov",
112
108
  "text",
113
- "cobertura"
109
+ "cobertura",
110
+ "html"
114
111
  ],
115
- "coverageDirectory": "<rootDir>/__tests__/__results__/unit/coverage",
116
- "globals": {
117
- "ts-jest": {
118
- "diagnostics": false
119
- }
120
- }
112
+ "coverageDirectory": "<rootDir>/__tests__/__results__/unit/coverage"
121
113
  },
122
114
  "jest-stare": {
123
- "resultDir": "__tests__/__results__/jest-stare",
115
+ "resultDir": "__tests__/__results__/unit/jest-stare",
124
116
  "additionalResultsProcessors": [
125
- "jest-junit"
117
+ "jest-junit",
118
+ "jest-html-reporter"
126
119
  ],
127
120
  "coverageLink": "../coverage/lcov-report/index.html"
128
121
  },
129
122
  "jest-junit": {
130
- "output": "__tests__/__results__/junit.xml"
123
+ "output": "__tests__/__results__/unit/junit.xml"
124
+ },
125
+ "jest-html-reporter": {
126
+ "pageTitle": "Zowe CLI Sample Plugin Test Results",
127
+ "outputPath": "__tests__/__results__/results.html",
128
+ "includeFailureMsg": true
131
129
  }
132
130
  }