@zowe/zosmf-for-zowe-sdk 7.0.2 → 7.1.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.
@@ -1,6 +1,13 @@
1
+ import { ICommandOptionDefinition } from "@zowe/imperative";
1
2
  /**
2
3
  * Constants to be used by the z/OSMF API
3
4
  */
4
5
  export declare const ZosmfConstants: {
5
6
  [key: string]: any;
6
7
  };
8
+ /**
9
+ * Object containing all options to be used by the Download data set API
10
+ */
11
+ export declare const ZosFilesOptions: {
12
+ [key: string]: ICommandOptionDefinition;
13
+ };
@@ -10,7 +10,7 @@
10
10
  *
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.ZosmfConstants = void 0;
13
+ exports.ZosFilesOptions = exports.ZosmfConstants = void 0;
14
14
  /**
15
15
  * Constants to be used by the z/OSMF API
16
16
  */
@@ -62,4 +62,23 @@ exports.ZosmfConstants = {
62
62
  UNABLE_TO_VERIFY_LEAF_SIGNATURE: "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
63
63
  }
64
64
  };
65
+ /**
66
+ * Object containing all options to be used by the Download data set API
67
+ */
68
+ exports.ZosFilesOptions = {
69
+ /**
70
+ * The files timeout header value
71
+ * @type {ICommandOptionDefinition}
72
+ */
73
+ responseTimeout: {
74
+ name: "response-timeout",
75
+ aliases: ["rto"],
76
+ description: "The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response." +
77
+ " Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600",
78
+ type: "number",
79
+ defaultValue: undefined,
80
+ // eslint-disable-next-line @typescript-eslint/no-magic-numbers
81
+ numericValueRange: [5, 600]
82
+ }
83
+ };
65
84
  //# sourceMappingURL=Zosmf.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Zosmf.constants.js","sourceRoot":"","sources":["../../src/constants/Zosmf.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF;;GAEG;A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import { ICommandProfileTypeConfiguration } from "@zowe/imperative";
2
+ /**
3
+ * Profile configuration for ZOSMF profiles
4
+ * @type {ICommandProfileTypeConfiguration}
5
+ * @memberof ZosmfProfile
6
+ */
7
+ export declare const ZosmfProfile: ICommandProfileTypeConfiguration;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /*
3
+ * This program and the accompanying materials are made available under the terms of the
4
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
5
+ * https://www.eclipse.org/legal/epl-v20.html
6
+ *
7
+ * SPDX-License-Identifier: EPL-2.0
8
+ *
9
+ * Copyright Contributors to the Zowe Project.
10
+ *
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.ZosmfProfile = void 0;
14
+ const ZosmfSession_1 = require("../ZosmfSession");
15
+ const Zosmf_constants_1 = require("./Zosmf.constants");
16
+ /**
17
+ * Profile configuration for ZOSMF profiles
18
+ * @type {ICommandProfileTypeConfiguration}
19
+ * @memberof ZosmfProfile
20
+ */
21
+ exports.ZosmfProfile = {
22
+ type: "zosmf",
23
+ schema: {
24
+ type: "object",
25
+ title: "z/OSMF Profile",
26
+ description: "z/OSMF Profile",
27
+ properties: {
28
+ host: {
29
+ type: "string",
30
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_HOST
31
+ },
32
+ port: {
33
+ type: "number",
34
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_PORT,
35
+ includeInTemplate: true
36
+ },
37
+ user: {
38
+ type: "string",
39
+ secure: true,
40
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_USER
41
+ },
42
+ password: {
43
+ type: "string",
44
+ secure: true,
45
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_PASSWORD
46
+ },
47
+ rejectUnauthorized: {
48
+ type: "boolean",
49
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_REJECT_UNAUTHORIZED
50
+ },
51
+ certFile: {
52
+ type: "string",
53
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_CERT_FILE
54
+ },
55
+ certKeyFile: {
56
+ type: "string",
57
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_CERT_KEY_FILE
58
+ },
59
+ // certFilePassphrase: {
60
+ // type: "string",
61
+ // secure: true,
62
+ // optionDefinition: ZosmfSession.ZOSMF_OPTION_CERT_FILE_PASSPHRASE
63
+ // },
64
+ basePath: {
65
+ type: "string",
66
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_BASE_PATH
67
+ },
68
+ protocol: {
69
+ type: "string",
70
+ optionDefinition: ZosmfSession_1.ZosmfSession.ZOSMF_OPTION_PROTOCOL
71
+ },
72
+ encoding: {
73
+ type: "string",
74
+ optionDefinition: {
75
+ name: "encoding",
76
+ aliases: ["ec"],
77
+ description: "The encoding for download and upload of z/OS data set and USS files." +
78
+ " The default encoding if not specified is IBM-1047.",
79
+ type: "string"
80
+ }
81
+ },
82
+ responseTimeout: {
83
+ type: "number",
84
+ optionDefinition: Zosmf_constants_1.ZosFilesOptions.responseTimeout
85
+ }
86
+ },
87
+ required: []
88
+ },
89
+ createProfileExamples: [
90
+ {
91
+ options: "zos123 --host zos123 --port 1443 --user ibmuser --password myp4ss",
92
+ description: "Create a zosmf profile called 'zos123' to connect to z/OSMF at host zos123 and port 1443"
93
+ },
94
+ {
95
+ options: "zos124 --host zos124 --user ibmuser --password myp4ss --reject-unauthorized false",
96
+ description: "Create a zosmf profile called 'zos124' to connect to z/OSMF at the host zos124 (default port - 443) " +
97
+ "and allow self-signed certificates"
98
+ },
99
+ {
100
+ options: "zos125 --host zos125 --port 1443",
101
+ description: "Create a zosmf profile called 'zos125' to connect to z/OSMF at the host zos125 and port 1443, " +
102
+ " not specifying a username or password so they are not stored on disk; these will need to be specified on every command"
103
+ },
104
+ {
105
+ options: "zos126 --reject-unauthorized false",
106
+ description: "Create a zosmf profile called 'zos126' to connect to z/OSMF on the default port 443 and allow self-signed " +
107
+ "certificates, not specifying a username, password, or host so they are not stored on disk; these will need to be " +
108
+ "specified on every command"
109
+ },
110
+ {
111
+ options: "zosAPIML --host zosAPIML --port 2020 --user ibmuser --password myp4ss --reject-unauthorized false --base-path basePath",
112
+ description: "Create a zosmf profile called 'zos124' to connect to z/OSMF at the host zos124 (default port - 443) " +
113
+ "and allow self-signed certificates"
114
+ }
115
+ ],
116
+ updateProfileExamples: [
117
+ {
118
+ options: "zos123 --user newuser --password newp4ss",
119
+ description: "Update a zosmf profile named 'zos123' with a new username and password"
120
+ }
121
+ ]
122
+ };
123
+ //# sourceMappingURL=Zosmf.profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Zosmf.profile.js","sourceRoot":"","sources":["../../src/constants/Zosmf.profile.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAC/C,uDAAoD;AAEpD;;;;GAIG;AACU,QAAA,YAAY,GACzB;IACI,IAAI,EAAE,OAAO;IACb,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,gBAAgB;QAC7B,UAAU,EAAE;YACR,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,gBAAgB,EAAE,2BAAY,CAAC,iBAAiB;aACnD;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,gBAAgB,EAAE,2BAAY,CAAC,iBAAiB;gBAChD,iBAAiB,EAAE,IAAI;aAC1B;YACD,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,IAAI;gBACZ,gBAAgB,EAAE,2BAAY,CAAC,iBAAiB;aACnD;YACD,QAAQ,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,IAAI;gBACZ,gBAAgB,EAAE,2BAAY,CAAC,qBAAqB;aACvD;YACD,kBAAkB,EAAE;gBAChB,IAAI,EAAE,S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;SAC3C;KACJ;IACD,qBAAqB,EAAE;QACnB;YACI,OAAO,EAAE,0CAA0C;YACnD,WAAW,EAAE,wEAAwE;SACxF;KACJ;CACJ,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./constants/Zosmf.constants";
2
2
  export * from "./constants/Zosmf.messages";
3
+ export * from "./constants/Zosmf.profile";
3
4
  export * from "./doc/IDefinedSystem";
4
5
  export * from "./doc/IZosmfInfoResponse";
5
6
  export * from "./doc/IZosmfListDefinedSystemsResponse";
package/lib/index.js CHANGED
@@ -22,6 +22,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  __exportStar(require("./constants/Zosmf.constants"), exports);
24
24
  __exportStar(require("./constants/Zosmf.messages"), exports);
25
+ __exportStar(require("./constants/Zosmf.profile"), exports);
25
26
  __exportStar(require("./doc/IDefinedSystem"), exports);
26
27
  __exportStar(require("./doc/IZosmfInfoResponse"), exports);
27
28
  __exportStar(require("./doc/IZosmfListDefinedSystemsResponse"), exports);
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,8DAA4C;AAC5C,6DAA2C;AAE3C,uDAAqC;AACrC,2DAAyC;AACzC,yEAAuD;AACvD,yDAAuC;AAEvC,gDAA8B;AAC9B,uDAAqC;AACrC,qDAAmC;AACnC,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAE1C,uDAAqC;AACrC,2DAAyC;AACzC,yEAAuD;AACvD,yDAAuC;AAEvC,gDAA8B;AAC9B,uDAAqC;AACrC,qDAAmC;AACnC,iDAA+B"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@zowe/zosmf-for-zowe-sdk",
3
- "version": "7.0.2",
3
+ "version": "7.1.0",
4
4
  "description": "Zowe SDK to interact with the z/OS Management Facility",
5
- "author": "Broadcom",
5
+ "author": "Zowe",
6
6
  "license": "EPL-2.0",
7
7
  "homepage": "https://github.com/zowe/zowe-cli/tree/master/packages/zosmf#readme",
8
8
  "bugs": {
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^12.12.24",
47
- "@zowe/cli-test-utils": "7.0.2",
48
- "@zowe/core-for-zowe-sdk": "7.0.2",
49
- "@zowe/imperative": "5.0.2",
47
+ "@zowe/cli-test-utils": "7.1.0",
48
+ "@zowe/core-for-zowe-sdk": "7.1.0",
49
+ "@zowe/imperative": "5.1.0",
50
50
  "eslint": "^7.32.0",
51
51
  "madge": "^4.0.1",
52
52
  "rimraf": "^2.6.3",