@broadcom/ops-for-zowe-cli 5.1.0 → 5.2.0

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 (98) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +101 -70
  3. package/lib/api/Create.d.ts +14 -2
  4. package/lib/api/Create.js +13 -15
  5. package/lib/api/Create.js.map +1 -1
  6. package/lib/api/Execute.d.ts +13 -2
  7. package/lib/api/Execute.js +22 -110
  8. package/lib/api/Execute.js.map +1 -1
  9. package/lib/api/Show.d.ts +66 -8
  10. package/lib/api/Show.js +77 -75
  11. package/lib/api/Show.js.map +1 -1
  12. package/lib/api/Update.d.ts +2 -4
  13. package/lib/api/Update.js +4 -9
  14. package/lib/api/Update.js.map +1 -1
  15. package/lib/api/doc/IExecuteCommandCommandBody.d.ts +23 -0
  16. package/lib/api/doc/IExecuteCommandCommandBody.js +25 -0
  17. package/lib/api/doc/IExecuteCommandCommandBody.js.map +1 -0
  18. package/lib/api/doc/IShowRecordsCommandBody.d.ts +16 -0
  19. package/lib/api/doc/IShowRecordsCommandBody.js +25 -0
  20. package/lib/api/doc/IShowRecordsCommandBody.js.map +1 -0
  21. package/lib/api/doc/IShowRecordsResponse.d.ts +55 -0
  22. package/lib/api/doc/IShowRecordsResponse.js +25 -0
  23. package/lib/api/doc/IShowRecordsResponse.js.map +1 -0
  24. package/lib/api/doc/IShowTableResponse.d.ts +3 -0
  25. package/lib/api/doc/IShowTableResponse.js +25 -0
  26. package/lib/api/doc/IShowTableResponse.js.map +1 -0
  27. package/lib/api/doc/index.d.ts +1 -0
  28. package/lib/api/doc/index.js +1 -0
  29. package/lib/api/doc/index.js.map +1 -1
  30. package/lib/api/utils/CommandListUtils.js +8 -3
  31. package/lib/api/utils/CommandListUtils.js.map +1 -1
  32. package/lib/api/utils/LognameListUtils.js +0 -1
  33. package/lib/api/utils/LognameListUtils.js.map +1 -1
  34. package/lib/api/utils/OpsRestClient.js +0 -2
  35. package/lib/api/utils/OpsRestClient.js.map +1 -1
  36. package/lib/api/utils/OpsTextUtils.js +0 -1
  37. package/lib/api/utils/OpsTextUtils.js.map +1 -1
  38. package/lib/api/utils/RecordsListUtils.d.ts +53 -0
  39. package/lib/api/utils/RecordsListUtils.js +146 -0
  40. package/lib/api/utils/RecordsListUtils.js.map +1 -0
  41. package/lib/api/utils/RecordsUtils.d.ts +5 -0
  42. package/lib/api/utils/RecordsUtils.js +45 -0
  43. package/lib/api/utils/RecordsUtils.js.map +1 -0
  44. package/lib/api/utils/RexxListUtils.js +7 -6
  45. package/lib/api/utils/RexxListUtils.js.map +1 -1
  46. package/lib/api/utils/RuleUtils.js +2 -2
  47. package/lib/api/utils/RuleUtils.js.map +1 -1
  48. package/lib/api/utils/RulesetListUtils.js +0 -1
  49. package/lib/api/utils/RulesetListUtils.js.map +1 -1
  50. package/lib/api/utils/RulesetUtils.d.ts +1 -1
  51. package/lib/api/utils/RulesetUtils.js +1 -1
  52. package/lib/api/utils/RulesetUtils.js.map +1 -1
  53. package/lib/api/utils/SubsystemListUtils.js +0 -1
  54. package/lib/api/utils/SubsystemListUtils.js.map +1 -1
  55. package/lib/api/utils/TableUtils.d.ts +4 -1
  56. package/lib/api/utils/TableUtils.js +7 -7
  57. package/lib/api/utils/TableUtils.js.map +1 -1
  58. package/lib/api/utils/index.d.ts +3 -0
  59. package/lib/api/utils/index.js +3 -0
  60. package/lib/api/utils/index.js.map +1 -1
  61. package/lib/cli/OpsBaseHandler.js +0 -2
  62. package/lib/cli/OpsBaseHandler.js.map +1 -1
  63. package/lib/cli/RecordsParameterDefinitions.d.ts +18 -0
  64. package/lib/cli/RecordsParameterDefinitions.js +157 -0
  65. package/lib/cli/RecordsParameterDefinitions.js.map +1 -0
  66. package/lib/cli/create/event/Event.handler.js +12 -2
  67. package/lib/cli/create/event/Event.handler.js.map +1 -1
  68. package/lib/cli/execute/command/Command.handler.js +50 -5
  69. package/lib/cli/execute/command/Command.handler.js.map +1 -1
  70. package/lib/cli/show/Show.definition.js +4 -3
  71. package/lib/cli/show/Show.definition.js.map +1 -1
  72. package/lib/cli/show/logname/Logname.handler.js +4 -2
  73. package/lib/cli/show/logname/Logname.handler.js.map +1 -1
  74. package/lib/cli/show/parms/Parms.handler.js +4 -3
  75. package/lib/cli/show/parms/Parms.handler.js.map +1 -1
  76. package/lib/cli/show/records/Records.definition.d.ts +17 -0
  77. package/lib/cli/show/records/Records.definition.js +82 -0
  78. package/lib/cli/show/records/Records.definition.js.map +1 -0
  79. package/lib/cli/show/records/Records.handler.d.ts +5 -0
  80. package/lib/cli/show/records/Records.handler.js +67 -0
  81. package/lib/cli/show/records/Records.handler.js.map +1 -0
  82. package/lib/cli/show/ruleset/Ruleset.handler.js +8 -2
  83. package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -1
  84. package/lib/cli/show/status/Status.handler.js +4 -2
  85. package/lib/cli/show/status/Status.handler.js.map +1 -1
  86. package/lib/cli/show/subsystem/Subsystem.handler.js +4 -2
  87. package/lib/cli/show/subsystem/Subsystem.handler.js.map +1 -1
  88. package/lib/cli/show/table/Table.handler.js +8 -2
  89. package/lib/cli/show/table/Table.handler.js.map +1 -1
  90. package/lib/healthCheck.handler.js +0 -1
  91. package/lib/healthCheck.handler.js.map +1 -1
  92. package/lib/index.d.ts +2 -0
  93. package/lib/index.js +2 -0
  94. package/lib/index.js.map +1 -1
  95. package/package.json +4 -4
  96. package/imgs/zowe-conformant-v1.png +0 -0
  97. package/imgs/zowe-conformant-zowev2-cli-color.png +0 -0
  98. package/imgs/zowe-conformant-zowev3-cli-color.png +0 -0
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 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
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.RecordsParameterDefinitions = void 0;
26
+ class RecordsParameterDefinitions {
27
+ }
28
+ exports.RecordsParameterDefinitions = RecordsParameterDefinitions;
29
+ RecordsParameterDefinitions.FIND_STRING_MAX_LEN = 80;
30
+ RecordsParameterDefinitions.FIND_RANGE_MAX_LEN = 128;
31
+ RecordsParameterDefinitions.MAX_RECORDS_LEN = 100;
32
+ RecordsParameterDefinitions.logName = {
33
+ name: "logName",
34
+ type: "string",
35
+ description: "The name of the OPSLOG to search. If 'logName' is not specified, the current live OPSLOG is used. " +
36
+ "The value 'LIVE' is also valid to select the currently live OPSLOG.",
37
+ required: false,
38
+ aliases: ["log"]
39
+ };
40
+ RecordsParameterDefinitions.findString = {
41
+ name: "findString",
42
+ type: "string",
43
+ description: "A text string to search for in the OPSLOG column specified by 'findColumnName' (defaults to TEXT). " +
44
+ "The records that are returned are the next or previous records in OPSLOG that match your 'findString', in the direction " +
45
+ "specified by 'findDirection'. The length of the string cannot exceed 80 characters.",
46
+ required: false,
47
+ aliases: ["fs"],
48
+ stringLengthRange: [1, RecordsParameterDefinitions.FIND_STRING_MAX_LEN]
49
+ };
50
+ RecordsParameterDefinitions.findDirection = {
51
+ name: "findDirection",
52
+ type: "string",
53
+ description: "When 'findString' is specified, controls the direction in which OPSLOG is searched. Valid values are " +
54
+ "FIRST, LAST, NEXT, PREV. For NEXT and PREV, the search starts from the record specified by the 'msgNoStart' or " +
55
+ "'utcStartTime' parameters. For FIRST and LAST, the search starts from the first or last record in OPSLOG. Default is NEXT. " +
56
+ "If 'findString' is not specified, this parameter is ignored and the direction of the search is controlled by the " +
57
+ "'direction' parameter (defaults to FORWARD).",
58
+ required: false,
59
+ aliases: ["fd"]
60
+ };
61
+ RecordsParameterDefinitions.findColumnName = {
62
+ name: "findColumnName",
63
+ type: "string",
64
+ description: "When 'findString' is specified, the OPSLOG column to search for the specified 'findString'. Valid values " +
65
+ "are COLOR, EVENT, JOBNAME, MSGID, SYSNAME, TEXT and USER. The default is TEXT. If 'findString' is not specified, this parameter is ignored.",
66
+ required: false,
67
+ aliases: ["fcn"]
68
+ };
69
+ RecordsParameterDefinitions.findMaxEvents = {
70
+ name: "findMaxEvents",
71
+ type: "string",
72
+ description: "When 'findString' is specified, the maximum number of OPSLOG records to search through for this request before abandoning the " +
73
+ "search. The default value for this parameter is 5000.",
74
+ required: false,
75
+ aliases: ["fme"],
76
+ defaultValue: "5000",
77
+ };
78
+ RecordsParameterDefinitions.findRangeStart = {
79
+ name: "findRangeStart",
80
+ type: "string",
81
+ description: "When 'findString' is specified and 'findColumnName' is TEXT, specifies the start of a range of text columns within the OPSLOG " +
82
+ "TEXT column that is specified by 'findColumnName'. Must be less than or equal to the value of 'findRangeEnd'. The search for the string " +
83
+ "that is specified by 'findString' is restricted to this range of text columns. Valid ranges are within columns 1 to 128. " +
84
+ "If 'findString' is not specified, this parameter is ignored.",
85
+ required: false,
86
+ aliases: ["frs"],
87
+ stringLengthRange: [1, RecordsParameterDefinitions.FIND_RANGE_MAX_LEN]
88
+ };
89
+ RecordsParameterDefinitions.findRangeEnd = {
90
+ name: "findRangeEnd",
91
+ type: "string",
92
+ description: "When 'findString' is specified and 'findColumnName' is TEXT and 'findColumnName' is TEXT, specifies the end of a range of " +
93
+ "text columns within the OPSLOG TEXT column that is specified by 'findColumnName'. Must be greater than or equal to the value of " +
94
+ "'findRangeStart'. The search for the string that is specified by 'findString' is restricted to this range of text columns. " +
95
+ "Valid ranges are within columns 1 to 128. If 'findString' is not specified, this parameter is ignored.",
96
+ required: false,
97
+ aliases: ["fre"],
98
+ stringLengthRange: [1, RecordsParameterDefinitions.FIND_RANGE_MAX_LEN]
99
+ };
100
+ RecordsParameterDefinitions.findStringIsPrefix = {
101
+ name: "findStringIsPrefix",
102
+ type: "string",
103
+ description: "When 'findString' is specified, specifies whether or not 'findString' is used as a prefix when searching one of these " +
104
+ "OPSLOG columns, specified by 'findColumnName': JOBNAME, MSGID, SYSNAME, and USER. To search for the prefix specified by 'findString' " +
105
+ "in text column one of the specified OPSLOG column, specify 'true'. To search for an exact match between 'findString' and the entire " +
106
+ "contents of the specified OPSLOG column, specify 'false'. If 'findString' is not specified, this parameter is ignored. " +
107
+ "Note: This parameter is also ignored when searching these OPSLOG columns: COLOR, EVENT, and TEXT. When searching the COLOR or EVENT " +
108
+ "columns, the specified 'findString' must match the entire contents of the column. When searching the TEXT column, the presence of " +
109
+ "'findString' anywhere within column is considered a match.",
110
+ required: false,
111
+ aliases: ["fsip"],
112
+ };
113
+ RecordsParameterDefinitions.maxRecords = {
114
+ name: "maxRecords",
115
+ type: "string",
116
+ description: "Specifies the maximum number of OPSLOG records to return for this request. Valid range is 1 to 100. The default is 100.",
117
+ required: false,
118
+ aliases: ["mr"],
119
+ defaultValue: "100",
120
+ stringLengthRange: [1, RecordsParameterDefinitions.MAX_RECORDS_LEN]
121
+ };
122
+ RecordsParameterDefinitions.direction = {
123
+ name: "direction",
124
+ type: "string",
125
+ description: "When 'findString' is not specified, controls the direction in which OPSLOG is searched. Valid values are FORWARD and " +
126
+ "BACKWARD. Default is FORWARD. The search starts from the record specified by 'msgNoStart' or 'utcStartTime'. " +
127
+ "To search FORWARD starting from the first record in OPSLOG, specify zero for 'msgNoStart'. To search BACKWARD starting from the " +
128
+ "last record in OPSLOG, specify zero for 'msgNoStart'. If 'findString' is specified, this parameter is ignored and the direction " +
129
+ "of the search is controlled by the 'findDirection' parameter (defaults to NEXT).",
130
+ required: false,
131
+ aliases: ["dir"],
132
+ };
133
+ RecordsParameterDefinitions.msgNoStart = {
134
+ name: "msgNoStart",
135
+ type: "string",
136
+ description: "Indicates the location in OPSLOG from which to start this search request. This is the absolute message sequence number of " +
137
+ "a record in OPSLOG that is assigned by OPS/MVS and appears in the MSGNO column of an OPSLOG display. This number is not a relative " +
138
+ "position in the log. Valid range is 0 to 4294967295. (The next record in OPSLOG after the record with the sequence number 4294967295 " +
139
+ "is assigned the sequence number 1.) This parameter is mutually exclusive with the 'utcStartTime' parameter. Note: For special use cases " +
140
+ "of the value 0, see the 'direction' parameter. If no record in OPSLOG has the specified message number, the search starts from the " +
141
+ "message with the message number closest to the specified number. When searching FORWARD, NEXT, or FIRST, the closest record going " +
142
+ "forward in time is used. When searching BACKWARD, PREV, or LAST, the closest record going backward in time is used.",
143
+ required: false,
144
+ aliases: ["mns"],
145
+ };
146
+ RecordsParameterDefinitions.utcStartTime = {
147
+ name: "utcStartTime",
148
+ type: "string",
149
+ description: "Indicates the location in OPSLOG from which to start this search request. This is a date and time specified as Universal " +
150
+ "Coordinated Time (UTC) in the format \"yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ\". This parameter is mutually exclusive with the 'msgNoStart' " +
151
+ "parameter. If no record in OPSLOG has the specified timestamp, the search starts from the message with the timestamp closest to " +
152
+ "the specified timestamp. When searching FORWARD, NEXT, or FIRST, the closest record going forward in time is used. When searching " +
153
+ "BACKWARD, PREV, or LAST, the closest record going backward in time is used.",
154
+ required: false,
155
+ aliases: ["ust"],
156
+ };
157
+ //# sourceMappingURL=RecordsParameterDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordsParameterDefinitions.js","sourceRoot":"","sources":["../../src/cli/RecordsParameterDefinitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAKH,MAAa,2BAA2B;;AAAxC,kEA6IC;AA3I0B,+CAAmB,GAAG,EAAE,CAAC;AACzB,8CAAkB,GAAG,GAAG,CAAC;AACzB,2CAAe,GAAG,GAAG,CAAC;AAC/B,mCAAO,GAA6B;IAC9C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,oGAAoG;QACjH,qEAAqE;IACrE,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC;AAEY,sCAAU,GAA6B;IACjD,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,qGAAqG;QACjH,0HAA0H;QAC1H,qFAAqF;IACtF,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC;CAC1E,CAAC;AAEY,yCAAa,GAA6B;IACpD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uGAAuG;QAClH,iHAAiH;QACjH,6HAA6H;QAC7H,mHAAmH;QACnH,8CAA8C;IAChD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,IAAI,CAAC;CAClB,CAAC;AAEY,0CAAc,GAA6B;IACrD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2GAA2G;QACxH,6IAA6I;IAC7I,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC;AAEY,yCAAa,GAA6B;IACpD,IAAI,EAAE,eAAe;IACrB,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AC;AAEY,qCAAS,GAA6B;IAChD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,uHAAuH;QAClI,+GAA+G;QAC/G,kIAAkI;QAClI,kIAAkI;QAClI,kFAAkF;IACpF,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC;AAEY,sCAAU,GAA6B;IACjD,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,4HAA4H;QACvI,qIAAqI;QACrI,uIAAuI;QACvI,0IAA0I;QAC1I,qIAAqI;QACrI,oIAAoI;QACpI,qHAAqH;IACvH,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC;AAEY,wCAAY,GAA6B;IACnD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2HAA2H;QACtI,qIAAqI;QACrI,kIAAkI;QAClI,oIAAoI;QACpI,6EAA6E;IAC/E,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC"}
@@ -36,8 +36,18 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class EventHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- yield (0, index_1.createEvent)(this.session, params.arguments.eventCode, params.arguments.eventText, params.arguments.restApi, params.arguments.subsystem, params);
40
- params.response.console.log(index_1.EventListUtils.printCreateEventResponse(params.arguments.eventCode, params.arguments.eventText, params));
39
+ const body = {
40
+ eventCode: params.arguments.eventCode,
41
+ eventText: params.arguments.eventText,
42
+ subSystem: params.arguments.subsystem,
43
+ };
44
+ if (!params.arguments.restApi) {
45
+ params.response.console.log("Command 'create event' is only supported with the OPS/MVS REST API server");
46
+ }
47
+ else {
48
+ yield (0, index_1.createEvent)(this.session, body);
49
+ params.response.console.log(index_1.EventListUtils.printCreateEventResponse(params.arguments.eventCode, params.arguments.eventText, params));
50
+ }
41
51
  });
42
52
  }
43
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Event.handler.js","sourceRoot":"","sources":["../../../../src/cli/create/event/Event.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAA2D;AAC3D,yDAAoD;AAEpD,MAAqB,YAAa,SAAQ,+BAAc;IAEvC,UAAU,CAAC,MAA0B;;YAC9C,MAAM,IAAA,mBAAW,EAAC,IAAI,CAAC,OAAO,EAC1B,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAC1H,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAc,CAAC,wBAAwB,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,EAC1B,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAC7G,CAAC;KAAA;CACJ;AARD,+BAQC"}
1
+ {"version":3,"file":"Event.handler.js","sourceRoot":"","sources":["../../../../src/cli/create/event/Event.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAA2D;AAC3D,yDAAoD;AAEpD,MAAqB,YAAa,SAAQ,+BAAc;IACvC,UAAU,CAAC,MAA0B;;YAC9C,MAAM,IAAI,GAAG;gBACT,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;gBACrC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;gBACrC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;aACxC,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC3B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAC;aAC5G;iBAAM;gBACH,MAAM,IAAA,mBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAc,CAAC,wBAAwB,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;aACxI;QACL,CAAC;KAAA;CACJ;AAdD,+BAcC"}
@@ -36,12 +36,57 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class CommandHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, index_1.executeCommand)(this.session, params.arguments.command, params.arguments.restApi, params.arguments.subsystem, params, params.arguments.bmpCmdOut, params.arguments.capture, params.arguments.cart, params.arguments.cmdEcho, params.arguments.cmdLog, params.arguments.cmdWait, params.arguments.conName, params.arguments.conType, params.arguments.imsId, params.arguments.imsPlex, params.arguments.imsReply, params.arguments.interval, params.arguments.localOnly, params.arguments.log, params.arguments.maxCmdOut, params.arguments.output, params.arguments.stopEnd, params.arguments.stopMsg, params.arguments.stopResp, params.arguments.wait, params.arguments.debug);
40
- if (response === null) {
41
- return;
39
+ const subSystem = params.arguments.subSystem;
40
+ const wait = params.arguments.wait;
41
+ const body = {
42
+ command: params.arguments.command,
43
+ bmpCmdOut: params.arguments.bmpCmdOut,
44
+ capture: params.arguments.capture,
45
+ cart: params.arguments.cart,
46
+ cmdEcho: params.arguments.cmdEcho,
47
+ cmdLog: params.arguments.cmdLog,
48
+ cmdWait: params.arguments.cmdWait,
49
+ conName: params.arguments.conName,
50
+ conType: params.arguments.conType,
51
+ imsId: params.arguments.imsId,
52
+ imsPlex: params.arguments.imsPlex,
53
+ imsReply: params.arguments.imsReply,
54
+ interval: params.arguments.interval,
55
+ localOnly: params.arguments.localOnly,
56
+ log: params.arguments.log,
57
+ maxCmdOut: params.arguments.maxCmdOut,
58
+ output: params.arguments.output,
59
+ stopEnd: params.arguments.stopEnd,
60
+ stopMsg: params.arguments.stopMsg,
61
+ stopResp: params.arguments.stopResp,
62
+ debug: params.arguments.debug,
63
+ };
64
+ let badParms = false;
65
+ if (!params.arguments.restApi) {
66
+ badParms = true;
67
+ params.response.console.log("Command 'execute command' is only supported with the OPS/MVS REST API server");
68
+ }
69
+ if (body.cmdWait && wait) {
70
+ badParms = true;
71
+ params.response.console.log("Parameters 'cmdWait' and 'wait' are mutually exclusive.");
72
+ }
73
+ if (body.output === "NO" && wait) {
74
+ badParms = true;
75
+ params.response.console.log(`Parameters 'output = "NO"' and 'wait' = ${wait} are mutually exclusive.`);
76
+ }
77
+ if (body.conType && body.conName) {
78
+ badParms = true;
79
+ params.response.console.log("Parameters 'conType' and 'conName' are mutually exclusive.");
80
+ }
81
+ if (body.stopMsg && body.stopResp) {
82
+ badParms = true;
83
+ params.response.console.log("Parameters 'stopMsg' and 'stopResp' are mutually exclusive.");
84
+ }
85
+ if (!badParms) {
86
+ const response = yield (0, index_1.executeCommand)(this.session, body, subSystem, wait);
87
+ params.response.data.setObj(response);
88
+ params.response.console.log(index_1.CommandListUtils.printExecuteCommandResponse(response, params));
42
89
  }
43
- params.response.data.setObj(response);
44
- params.response.console.log(index_1.CommandListUtils.printExecuteCommandResponse(response, params));
45
90
  });
46
91
  }
47
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/cli/execute/command/Command.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0CAAkE;AAClE,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAC9C,MAAM,QAAQ,GAAG,MAAM,IAAA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,EACT,IAAI,CACL,CAAC;gBACF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAgB,CAAC,2BAA2B,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC7F;QACH,CAAC;KAAA;CACF;AA5DD,iCA4DC"}
@@ -30,16 +30,17 @@ const Status_definition_1 = require("./status/Status.definition");
30
30
  const Subsystem_definition_1 = require("./subsystem/Subsystem.definition");
31
31
  const Table_definition_1 = require("./table/Table.definition");
32
32
  const api_1 = require("../../api");
33
+ const Records_definition_1 = require("./records/Records.definition");
33
34
  const ShowDefinition = {
34
35
  name: "show",
35
36
  summary: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, " +
36
- "SSM parameters and resources, OPSLOG lognames, RDF tables, and OPS/MVS subsystems. Or display the REST API " +
37
+ "SSM parameters and resources, OPSLOG lognames and records, RDF tables, and OPS/MVS subsystems. Or display the REST API " +
37
38
  "server status.",
38
39
  description: "Display data associated with OPS/MVS automation elements, such as AOF rules and rulesets, " +
39
- "SSM parameters and resources, OPSLOG lognames, RDF tables, and OPS/MVS subsystems. Or display the REST API " +
40
+ "SSM parameters and resources, OPSLOG lognames and records, RDF tables, and OPS/MVS subsystems. Or display the REST API " +
40
41
  "server status.",
41
42
  type: "group",
42
- children: [Logname_definition_1.LognameDefinition, Parms_definition_1.ParmsDefinition, Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition,
43
+ children: [Logname_definition_1.LognameDefinition, Records_definition_1.RecordDefinition, Parms_definition_1.ParmsDefinition, Resource_definition_1.ResourceDefinition, Rule_definition_1.RuleDefinition, Ruleset_definition_1.RulesetDefinition,
43
44
  Status_definition_1.StatusDefinition, Subsystem_definition_1.SubsystemDefinition, Table_definition_1.TableDefinition],
44
45
  passOn: api_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
45
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAiE;AACjE,+DAA2D;AAC3D,wEAAoE;AACpE,4DAAwD;AACxD,qEAAiE;AACjE,kEAA8D;AAC9D,2EAAuE;AACvE,+DAA2D;AAC3D,mCAAyC;AAEzC,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,4FAA4F;QACjG,6GAA6G;QAC7G,gBAAgB;IACpB,WAAW,EAAE,4FAA4F;QACrG,6GAA6G;QAC7G,gBAAgB;IACpB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,sCAAiB,EAAE,kCAAe,EAAE,wCAAkB,EAAE,gCAAc,EAAE,sCAAiB;QACzF,oCAAgB,EAAE,0CAAmB,EAAE,kCAAe,CAAC;IAClE,MAAM,EAAE,kBAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
1
+ {"version":3,"file":"Show.definition.js","sourceRoot":"","sources":["../../../src/cli/show/Show.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAiE;AACjE,+DAA2D;AAC3D,wEAAoE;AACpE,4DAAwD;AACxD,qEAAiE;AACjE,kEAA8D;AAC9D,2EAAuE;AACvE,+DAA2D;AAC3D,mCAAyC;AACzC,qEAAgE;AAEhE,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,4FAA4F;QACjG,yHAAyH;QACzH,gBAAgB;IACpB,WAAW,EAAE,4FAA4F;QACrG,yHAAyH;QACzH,gBAAgB;IACpB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,sCAAiB,EAAE,qCAAgB,EAAE,kCAAe,EAAE,wCAAkB,EAAE,gCAAc,EAAE,sCAAiB;QAC3G,oCAAgB,EAAE,0CAAmB,EAAE,kCAAe,CAAC;IAClE,MAAM,EAAE,kBAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
@@ -36,12 +36,14 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class LognameHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, api_1.showLogname)(this.session, params.arguments.restApi, params.arguments.subsystem, params);
40
- // No need to process response to 'show log' as not supported with web services
41
39
  if (params.arguments.restApi) {
40
+ const response = yield (0, api_1.showLogname)(this.session, params.arguments.subsystem);
42
41
  params.response.data.setObj(response);
43
42
  params.response.console.log(api_1.LognameListUtils.printShowLogResponse(response, params));
44
43
  }
44
+ else {
45
+ params.response.console.log("Command 'show logname' is only supported with the OPS/MVS REST API server");
46
+ }
45
47
  });
46
48
  }
47
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Logname.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxC,+EAA+E;YAC/E,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAgB,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aACxF;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
1
+ {"version":3,"file":"Logname.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/logname/Logname.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBAClF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAgB,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aACxF;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACvB,2EAA2E,CAC5E,CAAC;aACP;QACL,CAAC;KAAA;CACJ;AAdD,iCAcC"}
@@ -36,12 +36,13 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class ParmsHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, api_1.showParms)(this.session, params.arguments.restApi, params.arguments.subsystem, params);
40
- // No need to process response to 'show parms' as not supported with web services
41
39
  if (params.arguments.restApi) {
40
+ const response = yield (0, api_1.showSSMParms)(this.session, params.arguments.subsystem);
42
41
  params.response.data.setObj(response);
43
42
  params.response.console.log(api_1.ParmsListUtils.printShowParmsResponse(response, params, params.arguments.subsystem));
44
- // No need to process response ));
43
+ }
44
+ else {
45
+ params.response.console.log("Command 'show parms' is only supported with the OPS/MVS REST API server");
45
46
  }
46
47
  });
47
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Parms.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/parms/Parms.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAAyD;AACzD,yDAAsD;AAEtD,MAAqB,YAAa,SAAQ,+BAAc;IAEvC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,eAAS,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EACxE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxC,iFAAiF;YACjF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;gBACjH,kCAAkC;aACrC;QACL,CAAC;KAAA;CACJ;AAbD,+BAaC"}
1
+ {"version":3,"file":"Parms.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/parms/Parms.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA4D;AAC5D,yDAAsD;AAEtD,MAAqB,YAAa,SAAQ,+BAAc;IAEvC,UAAU,CAAC,MAA0B;;YAEhD,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxB,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAY,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAc,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;aACpH;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACzB,yEAAyE,CAC1E,CAAC;aACH;QACP,CAAC;KAAA;CACJ;AAdD,+BAcC"}
@@ -0,0 +1,17 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ /**
3
+ * Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
4
+ * command handler (which performs the "work" for this command).
5
+ *
6
+ * In this case, "command-with-options" will echo options specified on the command.
7
+ *
8
+ * Property Summary:
9
+ * =================
10
+ * "name" of the [object]. Should be a noun (e.g. data-set)
11
+ * "aliases" normally contains a shortened form of the command
12
+ * "summary" will display when issuing the help on this [objects] [action]
13
+ * "type" is "command" which means a handler is required
14
+ * "handler" is the file path to the handler (does the work)
15
+ * "options" an array of options
16
+ */
17
+ export declare const RecordDefinition: ICommandDefinition;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 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
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.RecordDefinition = void 0;
26
+ const RecordsParameterDefinitions_1 = require("../../RecordsParameterDefinitions");
27
+ const FormatParameterDefinitions_1 = require("../../FormatParameterDefinitions");
28
+ /**
29
+ * Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
30
+ * command handler (which performs the "work" for this command).
31
+ *
32
+ * In this case, "command-with-options" will echo options specified on the command.
33
+ *
34
+ * Property Summary:
35
+ * =================
36
+ * "name" of the [object]. Should be a noun (e.g. data-set)
37
+ * "aliases" normally contains a shortened form of the command
38
+ * "summary" will display when issuing the help on this [objects] [action]
39
+ * "type" is "command" which means a handler is required
40
+ * "handler" is the file path to the handler (does the work)
41
+ * "options" an array of options
42
+ */
43
+ exports.RecordDefinition = {
44
+ name: "records",
45
+ aliases: [],
46
+ summary: "Display a list of opslog records.",
47
+ description: "Display a list of the OPSLOG records with attributes that are defined in the search query from the specified OPSLOG." +
48
+ " This command is only available when connected to the OPS/MVS REST API server.",
49
+ examples: [
50
+ {
51
+ options: "--subsystem OPSS",
52
+ description: "Show up to 100 records for the live OPSLOG for the \"OPSS\" subsystem"
53
+ },
54
+ {
55
+ options: "--subsystem OPSS --logName OPSLOG1 --maxRecords 50 --findString IEF403I --findColumnName MSGID",
56
+ description: "Show up to 50 records matching the message ID IEF403I for OPSLOG1 on the \"OPSS\" subsystem"
57
+ },
58
+ {
59
+ options: "--subs OPSS --log OPSLOG --mr 50 --fs IEF403I --fcn MSGID",
60
+ description: "Show up to 50 records matching the message ID IEF403I for OPSLOG1 on the \"OPSS\" subsystem with shorthand parameters"
61
+ }
62
+ ],
63
+ type: "command",
64
+ handler: __dirname + "/Records.handler",
65
+ profile: { optional: ["ops"] },
66
+ options: [
67
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.logName,
68
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findString,
69
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findDirection,
70
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findColumnName,
71
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findMaxEvents,
72
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findRangeStart,
73
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findRangeEnd,
74
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.findStringIsPrefix,
75
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.maxRecords,
76
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.direction,
77
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.msgNoStart,
78
+ RecordsParameterDefinitions_1.RecordsParameterDefinitions.utcStartTime,
79
+ FormatParameterDefinitions_1.FormatParameterDefinitions.formatOption
80
+ ]
81
+ };
82
+ //# sourceMappingURL=Records.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Records.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/records/Records.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAIH,mFAAgF;AAChF,iFAA8E;AAE9E;;;;;;;;;;;;;;GAcG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,sHAAsH;QAC/H,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,uEAAuE;SACvF;QACD;YACI,OAAO,EAAE,gGAAgG;YACzG,WAAW,EAAE,6FAA6F;SAC7G;QACD;YACI,OAAO,EAAE,2DAA2D;YACpE,WAAW,EAAE,uHAAuH;SACvI;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,OAAO,EAAE;QACL,yDAA2B,CAAC,OAAO;QACnC,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,aAAa;QACzC,yDAA2B,CAAC,cAAc;QAC1C,yDAA2B,CAAC,YAAY;QACxC,yDAA2B,CAAC,kBAAkB;QAC9C,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,SAAS;QACrC,yDAA2B,CAAC,UAAU;QACtC,yDAA2B,CAAC,YAAY;QACxC,uDAA0B,CAAC,YAAY;KAC1C;CACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IHandlerParameters } from "@zowe/imperative";
2
+ import { OpsBaseHandler } from "../../OpsBaseHandler";
3
+ export default class RecordsHandler extends OpsBaseHandler {
4
+ processOps(params: IHandlerParameters): Promise<void>;
5
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 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 api_1 = require("../../../api");
35
+ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
+ class RecordsHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
+ processOps(params) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (params.arguments.restApi) {
40
+ const body = {
41
+ resourceName: params.arguments.resourceName,
42
+ table: params.arguments.table,
43
+ logName: params.arguments.logName,
44
+ findString: params.arguments.findString,
45
+ findDirection: params.arguments.findDirection,
46
+ findColumnName: params.arguments.findColumnName,
47
+ findMaxEvents: params.arguments.findMaxEvents,
48
+ findRangeStart: params.arguments.findRangeStart,
49
+ findRangeEnd: params.arguments.findRangeEnd,
50
+ findStringIsPrefix: params.arguments.findStringIsPrefix,
51
+ maxRecords: params.arguments.maxRecords,
52
+ direction: params.arguments.direction,
53
+ msgNoStart: params.arguments.msgNoStart,
54
+ utcStartTime: params.arguments.utcStartTime
55
+ };
56
+ const response = yield (0, api_1.showRecords)(this.session, body, params.arguments.subsystem);
57
+ params.response.data.setObj(response);
58
+ params.response.console.log(api_1.RecordListUtils.printShowRecordsResponse(response, params));
59
+ }
60
+ else {
61
+ params.response.console.log("Command 'show records' is only supported with the OPS/MVS REST API server");
62
+ }
63
+ });
64
+ }
65
+ }
66
+ exports.default = RecordsHandler;
67
+ //# sourceMappingURL=Records.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Records.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/records/Records.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAIH,sCAA4D;AAC5D,yDAAsD;AAItD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAC9C,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,IAAI,GAA4B;oBAClC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;oBAC3C,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK;oBAC7B,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO;oBACjC,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU;oBACvC,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa;oBAC7C,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc;oBAC/C,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa;oBAC7C,cAAc,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc;oBAC/C,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;oBAC3C,kBAAkB,EAAE,MAAM,CAAC,SAAS,CAAC,kBAAkB;oBACvD,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU;oBACvC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;oBACrC,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU;oBACvC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;iBAC9C,CAAC;gBACF,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;gBACxF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAe,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC3F;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACvB,2EAA2E,CAC5E,CAAC;aACP;QACL,CAAC;KAAA;CACJ;AA7BD,iCA6BC"}
@@ -36,12 +36,18 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class RulesetHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, api_1.showRuleset)(this.session, params.arguments.ruleset, params.arguments.restApi, params.arguments.subsystem, params);
40
- // No need to process response to 'show ruleset' as not supported with web services
41
39
  if (params.arguments.restApi) {
40
+ const body = {
41
+ ruleSetName: params.arguments.ruleset,
42
+ subSystem: params.arguments.subsystem,
43
+ };
44
+ const response = yield (0, api_1.showRuleset)(this.session, body);
42
45
  params.response.data.setObj(response);
43
46
  params.response.console.log(api_1.RulesetListUtils.printShowRulesetResponse(response, params));
44
47
  }
48
+ else {
49
+ params.response.console.log("Command 'show ruleset' is only supported with the OPS/MVS REST API server");
50
+ }
45
51
  });
46
52
  }
47
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,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,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5F;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
1
+ {"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA6D;AAC7D,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAC9C,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,IAAI,GAAG;oBACX,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO;oBACrC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;iBACtC,CAAC;gBACF,MAAM,QAAQ,GAAQ,MAAM,IAAA,iBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC5D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5F;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAC;aAC5G;QACL,CAAC;KAAA;CACJ;AAfD,iCAeC"}
@@ -36,12 +36,14 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class StatusHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, api_1.showStatus)(this.session, params.arguments.restApi, params);
40
- // No need to process response to 'show status' as not supported with web services
41
39
  if (params.arguments.restApi) {
40
+ const response = yield (0, api_1.showStatus)(this.session);
42
41
  params.response.data.setObj(response);
43
42
  params.response.console.log(api_1.StatusListUtils.printShowStatusResponse(response, params));
44
43
  }
44
+ else {
45
+ params.response.console.log("Command 'show status' is only supported with the OPS/MVS REST API server");
46
+ }
45
47
  });
46
48
  }
47
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Status.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/status/Status.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA2D;AAC3D,yDAAsD;AAEtD,MAAqB,aAAc,SAAQ,+BAAc;IAExC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,gBAAU,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YACvF,kFAAkF;YAClF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAe,CAAC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC1F;QACL,CAAC;KAAA;CACJ;AAXD,gCAWC"}
1
+ {"version":3,"file":"Status.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/status/Status.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAA2D;AAC3D,yDAAsD;AAEtD,MAAqB,aAAc,SAAQ,+BAAc;IAExC,UAAU,CAAC,MAA0B;;YAE9C,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,QAAQ,GAAQ,MAAM,IAAA,gBAAU,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBACrD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAe,CAAC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC1F;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACvB,0EAA0E,CAC7E,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAdD,gCAcC"}
@@ -36,12 +36,14 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
36
36
  class SubsystemHandler extends OpsBaseHandler_1.OpsBaseHandler {
37
37
  processOps(params) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const response = yield (0, api_1.showSubsystem)(this.session, params.arguments.restApi, params);
40
- // No need to process response to 'show log' as not supported with web services
41
39
  if (params.arguments.restApi) {
40
+ const response = yield (0, api_1.showSubsystem)(this.session);
42
41
  params.response.data.setObj(response);
43
42
  params.response.console.log(api_1.SubsystemListUtils.printShowSubsystemResponse(response, params));
44
43
  }
44
+ else {
45
+ params.response.console.log("Command 'show subsystem' is only supported with the OPS/MVS REST API server");
46
+ }
45
47
  });
46
48
  }
47
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Subsystem.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/subsystem/Subsystem.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAAiE;AACjE,yDAAsD;AAEtD,MAAqB,gBAAiB,SAAQ,+BAAc;IAE3C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,mBAAa,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC1F,+EAA+E;YAC/E,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAkB,CAAC,0BAA0B,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAChG;QACL,CAAC;KAAA;CACJ;AAXD,mCAWC"}
1
+ {"version":3,"file":"Subsystem.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/subsystem/Subsystem.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,sCAAiE;AACjE,yDAAsD;AAEtD,MAAqB,gBAAiB,SAAQ,+BAAc;IAE3C,UAAU,CAAC,MAA0B;;YAE9C,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,QAAQ,GAAQ,MAAM,IAAA,mBAA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