@axway/axway-central-cli 2.32.0 → 3.0.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.
- package/README.md +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/apply/index.js +1 -1
- package/dist/commands/completion/index.js +0 -1
- package/dist/commands/config/common/index.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/config/unset.js +1 -1
- package/dist/commands/create/agentResource.js +1 -1
- package/dist/commands/create/environment.js +1 -1
- package/dist/commands/create/index.js +1 -1
- package/dist/commands/delete/index.js +1 -1
- package/dist/commands/edit/environment.js +1 -1
- package/dist/commands/get/index.js +1 -1
- package/dist/commands/install/agents.js +3 -3
- package/dist/commands/install/apigeexSaasAgents.js +6 -7
- package/dist/commands/install/awsAgents.js +3 -3
- package/dist/commands/install/awsSaasAgents.js +6 -6
- package/dist/commands/install/azureAgents.js +3 -3
- package/dist/commands/install/azureSaasAgents.js +6 -6
- package/dist/commands/install/edgeAgents.js +3 -3
- package/dist/commands/install/gitHubSaasAgents.js +6 -6
- package/dist/commands/install/gitLabAgents.js +3 -3
- package/dist/commands/install/graylogAgent.js +3 -3
- package/dist/commands/install/helpers/creators.js +1 -1
- package/dist/commands/install/helpers/deleters.js +1 -1
- package/dist/commands/install/helpers/getters.js +1 -1
- package/dist/commands/install/helpers/index.js +1 -1
- package/dist/commands/install/helpers/inputs.js +1 -1
- package/dist/commands/install/helpers/templates/awsTemplates.js +3 -3
- package/dist/commands/install/helpers/templates/azureTemplates.js +3 -3
- package/dist/commands/install/helpers/templates/edgeTemplates.js +3 -3
- package/dist/commands/install/helpers/templates/gitLabTemplates.js +5 -7
- package/dist/commands/install/helpers/templates/graylogTemplates.js +3 -3
- package/dist/commands/install/helpers/templates/ibmAPIConnectTemplates.js +3 -3
- package/dist/commands/install/helpers/templates/istioTemplates.js +4 -6
- package/dist/commands/install/helpers/templates/kafkaTemplates.js +3 -3
- package/dist/commands/install/ibmAPIConnectAgents.js +3 -3
- package/dist/commands/install/index.js +1 -1
- package/dist/commands/install/istioAgents.js +4 -4
- package/dist/commands/install/kafkaAgents.js +3 -3
- package/dist/commands/install/platform.js +3 -3
- package/dist/commands/install/swaggerHubSaasAgents.js +6 -6
- package/dist/common/ApiServerClient.js +4 -4
- package/dist/common/CacheController.js +4 -4
- package/dist/common/CliConfigManager.js +4 -4
- package/dist/common/CompositeError.js +10 -15
- package/dist/common/CoreConfigController.js +8 -8
- package/dist/common/DefinitionsManager.js +4 -4
- package/dist/common/Kubectl.js +1 -1
- package/dist/common/PlatformClient.js +24 -38
- package/dist/common/Renderer.js +13 -13
- package/dist/common/TmpFile.js +4 -4
- package/dist/common/bashCommands.js +1 -1
- package/dist/common/basicPrompts.js +1 -1
- package/dist/common/dataService.js +1 -1
- package/dist/common/resultsRenderers.js +1 -1
- package/dist/common/types.js +3 -3
- package/dist/common/utils.js +1 -2
- package/dist/main.js +1 -1
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ var _url = require("url");
|
|
|
13
13
|
var _CoreConfigController = require("./CoreConfigController");
|
|
14
14
|
var _types = require("./types");
|
|
15
15
|
var _utils = require("./utils");
|
|
16
|
-
function _interopRequireDefault(
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
// NOTE: removing update-notifier due to some security issues reported.
|
|
18
18
|
// There is suppression in '.csr-profile.json' that needed to be removed if this library is used in production code.
|
|
19
19
|
// import updateNotifier from 'update-notifier';
|
|
@@ -14,7 +14,7 @@ var _set = _interopRequireDefault(require("lodash/set"));
|
|
|
14
14
|
var _CoreConfigController = require("./CoreConfigController");
|
|
15
15
|
var _amplifyCliUtils = require("@axway/amplify-cli-utils");
|
|
16
16
|
var _types = require("./types");
|
|
17
|
-
function _interopRequireDefault(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
18
|
/**
|
|
19
19
|
* HACK: removing "---" delimiter printing from the lib.
|
|
20
20
|
* Currently this is not supported in library itself so have to override prototype methods.
|
package/dist/common/types.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.docsUrl = exports.commonCmdArgsDescription = exports.cliVersionHeader = exports.YesNoChoices = exports.YesNo = exports.WAIT_TIMEOUT = exports.TrueFalseChoices = exports.TrueFalse = exports.TraceabilityConfig = exports.SingleEntryPointUrls = exports.SaaSGatewayTypes = exports.Regions = exports.PublicRepoUrl = exports.PublicDockerRepoBaseUrl = exports.Protocol = exports.ProdBaseUrls = exports.Platforms = exports.OutputTypes = exports.MAX_TABLE_STRING_LENGTH = exports.MAX_FILE_SIZE = exports.MAX_CACHE_FILE_SIZE = exports.LoggingSource = exports.KindTypes = exports.Kind = exports.IstioProfileChoices = exports.IstioInstallValues = exports.IstioAgentValues = exports.IngestionProtocolToHosts = exports.IngestionProtocol = exports.IngestionHostsHTTP = exports.IngestionHosts = exports.IngestionHTTPHosts = exports.IDPType = exports.IDPConfiguration = exports.IDPClientSecretAuthMethod = exports.IDPAuthType = exports.IDPAuthConfiguration = exports.IDPAuthClientSecret = exports.IDPAuthAccessToken = exports.GatewayTypes = exports.GatewayTypeToDataPlane = exports.GatewayMode = exports.EnvironmentConfigInfo = exports.DosaAccount = exports.DataPlaneNames = exports.DOSAConfigInfo = exports.ConfigTypes = exports.CloudFormationConfig = exports.Certificate = exports.CentralAgentConfig = exports.CACHE_FILE_TTL_MILLISECONDS = exports.BundleType = exports.BasePaths = exports.AuthUrls = exports.AgentTypes = exports.AgentResourceKind = exports.AgentNames = exports.AgentInstallSwitches = exports.AgentInstallConfig = exports.AgentConfigTypes = exports.AWSRegions = exports.APIGEEXDISCOVERYMODES = exports.APICDeployments = exports.ABORT_TIMEOUT = void 0;
|
|
7
7
|
var _dataService = require("./dataService");
|
|
8
8
|
var _utils = require("./utils");
|
|
9
|
-
function _defineProperty(
|
|
10
|
-
function _toPropertyKey(
|
|
11
|
-
function _toPrimitive(
|
|
9
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12
12
|
const cliVersionHeader = exports.cliVersionHeader = 'x-axway-cli-version';
|
|
13
13
|
const docsUrl = exports.docsUrl = 'https://docs.axway.com/bundle/amplify-central/page/docs/index.html';
|
|
14
14
|
const ABORT_TIMEOUT = exports.ABORT_TIMEOUT = process.env.NODE_ENV === 'test' ? 1e3 : process.env.DEBUG || process.env.SNOOPLOGG ? 1e9 : 30e3;
|
package/dist/common/utils.js
CHANGED
|
@@ -15,7 +15,7 @@ var _os = require("os");
|
|
|
15
15
|
var _path = require("path");
|
|
16
16
|
var _CompositeError = require("./CompositeError");
|
|
17
17
|
var _types = require("./types");
|
|
18
|
-
function _interopRequireDefault(
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
const isWindows = exports.isWindows = /^win/.test(process.platform);
|
|
20
20
|
const configFile = exports.configFile = (0, _path.join)((0, _os.homedir)(), '.axway', 'central.json');
|
|
21
21
|
const getConfig = async () => !(0, _fsExtra.existsSync)(configFile) ? Promise.resolve({}) : await (0, _fsExtra.readJson)(configFile);
|
|
@@ -114,7 +114,6 @@ const loadAndVerifySpecs = async (specFilePath, allowedKinds) => {
|
|
|
114
114
|
|
|
115
115
|
// TODO: Validate "metadata.scope.kind" if available. Requires DefinitionManager.getSortedKindsMap() result.
|
|
116
116
|
}
|
|
117
|
-
|
|
118
117
|
if (errors.length > 0) {
|
|
119
118
|
throw new _CompositeError.CompositeError(errors);
|
|
120
119
|
}
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _cli = _interopRequireDefault(require("./cli"));
|
|
4
|
-
function _interopRequireDefault(
|
|
4
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
5
5
|
_cli.default.exec().catch(err => {
|
|
6
6
|
console.error(err);
|
|
7
7
|
process.exit(err.exitCode || 1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axway/axway-central-cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Manage APIs, services and publish to the
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "Manage APIs, services and publish to the Amplify Marketplace",
|
|
5
5
|
"homepage": "https://platform.axway.com",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "support@axway.com",
|