@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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/commands/apply/index.js +1 -1
  4. package/dist/commands/completion/index.js +0 -1
  5. package/dist/commands/config/common/index.js +1 -1
  6. package/dist/commands/config/set.js +1 -1
  7. package/dist/commands/config/unset.js +1 -1
  8. package/dist/commands/create/agentResource.js +1 -1
  9. package/dist/commands/create/environment.js +1 -1
  10. package/dist/commands/create/index.js +1 -1
  11. package/dist/commands/delete/index.js +1 -1
  12. package/dist/commands/edit/environment.js +1 -1
  13. package/dist/commands/get/index.js +1 -1
  14. package/dist/commands/install/agents.js +3 -3
  15. package/dist/commands/install/apigeexSaasAgents.js +6 -7
  16. package/dist/commands/install/awsAgents.js +3 -3
  17. package/dist/commands/install/awsSaasAgents.js +6 -6
  18. package/dist/commands/install/azureAgents.js +3 -3
  19. package/dist/commands/install/azureSaasAgents.js +6 -6
  20. package/dist/commands/install/edgeAgents.js +3 -3
  21. package/dist/commands/install/gitHubSaasAgents.js +6 -6
  22. package/dist/commands/install/gitLabAgents.js +3 -3
  23. package/dist/commands/install/graylogAgent.js +3 -3
  24. package/dist/commands/install/helpers/creators.js +1 -1
  25. package/dist/commands/install/helpers/deleters.js +1 -1
  26. package/dist/commands/install/helpers/getters.js +1 -1
  27. package/dist/commands/install/helpers/index.js +1 -1
  28. package/dist/commands/install/helpers/inputs.js +1 -1
  29. package/dist/commands/install/helpers/templates/awsTemplates.js +3 -3
  30. package/dist/commands/install/helpers/templates/azureTemplates.js +3 -3
  31. package/dist/commands/install/helpers/templates/edgeTemplates.js +3 -3
  32. package/dist/commands/install/helpers/templates/gitLabTemplates.js +5 -7
  33. package/dist/commands/install/helpers/templates/graylogTemplates.js +3 -3
  34. package/dist/commands/install/helpers/templates/ibmAPIConnectTemplates.js +3 -3
  35. package/dist/commands/install/helpers/templates/istioTemplates.js +4 -6
  36. package/dist/commands/install/helpers/templates/kafkaTemplates.js +3 -3
  37. package/dist/commands/install/ibmAPIConnectAgents.js +3 -3
  38. package/dist/commands/install/index.js +1 -1
  39. package/dist/commands/install/istioAgents.js +4 -4
  40. package/dist/commands/install/kafkaAgents.js +3 -3
  41. package/dist/commands/install/platform.js +3 -3
  42. package/dist/commands/install/swaggerHubSaasAgents.js +6 -6
  43. package/dist/common/ApiServerClient.js +4 -4
  44. package/dist/common/CacheController.js +4 -4
  45. package/dist/common/CliConfigManager.js +4 -4
  46. package/dist/common/CompositeError.js +10 -15
  47. package/dist/common/CoreConfigController.js +8 -8
  48. package/dist/common/DefinitionsManager.js +4 -4
  49. package/dist/common/Kubectl.js +1 -1
  50. package/dist/common/PlatformClient.js +24 -38
  51. package/dist/common/Renderer.js +13 -13
  52. package/dist/common/TmpFile.js +4 -4
  53. package/dist/common/bashCommands.js +1 -1
  54. package/dist/common/basicPrompts.js +1 -1
  55. package/dist/common/dataService.js +1 -1
  56. package/dist/common/resultsRenderers.js +1 -1
  57. package/dist/common/types.js +3 -3
  58. package/dist/common/utils.js +1 -2
  59. package/dist/main.js +1 -1
  60. 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(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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.
@@ -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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
11
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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;
@@ -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(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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": "2.32.0",
4
- "description": "Manage APIs, services and publish to the Unified Catalog",
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",