@sap-ux/ui-service-inquirer 0.1.27 → 0.1.29

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/dist/i18n.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.t = exports.initI18n = void 0;
6
+ exports.initI18n = initI18n;
7
+ exports.t = t;
7
8
  const i18next_1 = __importDefault(require("i18next"));
8
9
  const ui_service_inquirer_i18n_json_1 = __importDefault(require("./translations/ui-service-inquirer.i18n.json"));
9
10
  const uiServiceI18nNamespace = 'ui-service-inquirer';
@@ -14,7 +15,6 @@ async function initI18n() {
14
15
  await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' });
15
16
  i18next_1.default.addResourceBundle('en', uiServiceI18nNamespace, ui_service_inquirer_i18n_json_1.default);
16
17
  }
17
- exports.initI18n = initI18n;
18
18
  /**
19
19
  * Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
20
20
  *
@@ -28,7 +28,6 @@ function t(key, options) {
28
28
  }
29
29
  return i18next_1.default.t(key, options);
30
30
  }
31
- exports.t = t;
32
31
  initI18n().catch(() => {
33
32
  // Needed for lint
34
33
  });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getConfigQuestions = void 0;
3
+ exports.getConfigQuestions = getConfigQuestions;
4
4
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
5
5
  const abap_deploy_config_inquirer_1 = require("@sap-ux/abap-deploy-config-inquirer");
6
6
  const i18n_1 = require("../../i18n");
@@ -50,7 +50,6 @@ function getConfigQuestions(logger, options) {
50
50
  }
51
51
  return [...packagePrompts, ...transportPrompts, ...configPrompts];
52
52
  }
53
- exports.getConfigQuestions = getConfigQuestions;
54
53
  /**
55
54
  * Returns the service name question.
56
55
  *
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultOrShowAppGenLaunchQuestion = exports.defaultOrShowDraftQuestion = exports.getValidationErrorLink = exports.getServiceNameChoices = exports.createAbapTarget = exports.getAbapCDSViews = exports.getBusinessObjects = void 0;
3
+ exports.getBusinessObjects = getBusinessObjects;
4
+ exports.getAbapCDSViews = getAbapCDSViews;
5
+ exports.createAbapTarget = createAbapTarget;
6
+ exports.getServiceNameChoices = getServiceNameChoices;
7
+ exports.getValidationErrorLink = getValidationErrorLink;
8
+ exports.defaultOrShowDraftQuestion = defaultOrShowDraftQuestion;
9
+ exports.defaultOrShowAppGenLaunchQuestion = defaultOrShowAppGenLaunchQuestion;
4
10
  const axios_extension_1 = require("@sap-ux/axios-extension");
5
11
  const btp_utils_1 = require("@sap-ux/btp-utils");
6
12
  const guided_answers_helper_1 = require("@sap-ux/guided-answers-helper");
@@ -20,7 +26,6 @@ async function getBusinessObjects(provider) {
20
26
  return { name: `${bo.name} (${bo.description})`, value: bo };
21
27
  }) ?? []);
22
28
  }
23
- exports.getBusinessObjects = getBusinessObjects;
24
29
  /**
25
30
  * Get the ABAP CDS views.
26
31
  *
@@ -34,7 +39,6 @@ async function getAbapCDSViews(provider) {
34
39
  return { name: `${abapCDSView.name} (${abapCDSView.description})`, value: abapCDSView };
35
40
  }) ?? []);
36
41
  }
37
- exports.getAbapCDSViews = getAbapCDSViews;
38
42
  /**
39
43
  * Create an ABAP target from backend system or destination.
40
44
  *
@@ -50,7 +54,6 @@ function createAbapTarget(destination, backendSystem) {
50
54
  return { url: backendSystem?.url, client: backendSystem?.client };
51
55
  }
52
56
  }
53
- exports.createAbapTarget = createAbapTarget;
54
57
  /**
55
58
  * Get the service name choices.
56
59
  *
@@ -65,7 +68,6 @@ function getServiceNameChoices(serviceName) {
65
68
  }
66
69
  ];
67
70
  }
68
- exports.getServiceNameChoices = getServiceNameChoices;
69
71
  /**
70
72
  * Get the validation error link.
71
73
  *
@@ -75,7 +77,6 @@ async function getValidationErrorLink() {
75
77
  (0, inquirer_common_1.setTelemetryClient)(telemetry_1.ClientFactory.getTelemetryClient());
76
78
  return inquirer_common_1.ErrorHandler.getHelpLink(guided_answers_helper_1.HELP_NODES.UI_SERVICE_GENERATOR, inquirer_common_1.ERROR_TYPE.INTERNAL_SERVER_ERROR, (0, i18n_1.t)('error.validatingContent'));
77
79
  }
78
- exports.getValidationErrorLink = getValidationErrorLink;
79
80
  /**
80
81
  * Determines if the draft enabled prompt is shown.
81
82
  *
@@ -85,7 +86,6 @@ exports.getValidationErrorLink = getValidationErrorLink;
85
86
  function defaultOrShowDraftQuestion(useDraftEnabled) {
86
87
  return useDraftEnabled ?? true;
87
88
  }
88
- exports.defaultOrShowDraftQuestion = defaultOrShowDraftQuestion;
89
89
  /**
90
90
  * Determines if the app gen launch prompt is shown.
91
91
  *
@@ -95,5 +95,4 @@ exports.defaultOrShowDraftQuestion = defaultOrShowDraftQuestion;
95
95
  function defaultOrShowAppGenLaunchQuestion(useLaunchGen) {
96
96
  return useLaunchGen ?? true;
97
97
  }
98
- exports.defaultOrShowAppGenLaunchQuestion = defaultOrShowAppGenLaunchQuestion;
99
98
  //# sourceMappingURL=prompt-helper.js.map
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getConfigPrompts = exports.getSystemSelectionPrompts = void 0;
6
+ exports.getSystemSelectionPrompts = getSystemSelectionPrompts;
7
+ exports.getConfigPrompts = getConfigPrompts;
7
8
  const logger_helper_1 = __importDefault(require("../logger-helper"));
8
9
  const questions_1 = require("./configuration/questions");
9
10
  const prompt_state_1 = require("./prompt-state");
@@ -25,7 +26,6 @@ async function getSystemSelectionPrompts(answers, systemName, logger) {
25
26
  answers: prompt_state_1.PromptState.systemSelection
26
27
  };
27
28
  }
28
- exports.getSystemSelectionPrompts = getSystemSelectionPrompts;
29
29
  /**
30
30
  * Get the configuration prompts.
31
31
  *
@@ -46,5 +46,4 @@ function getConfigPrompts(systemSelectionAnswers, options, logger) {
46
46
  answers: prompt_state_1.PromptState.serviceConfig
47
47
  };
48
48
  }
49
- exports.getConfigPrompts = getConfigPrompts;
50
49
  //# sourceMappingURL=prompts.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSystemQuestions = void 0;
3
+ exports.getSystemQuestions = getSystemQuestions;
4
4
  const odata_service_inquirer_1 = require("@sap-ux/odata-service-inquirer");
5
5
  const i18n_1 = require("../../i18n");
6
6
  const types_1 = require("../../types");
@@ -111,5 +111,4 @@ async function getSystemQuestions(logger, previousAnswers, systemName) {
111
111
  ...objectQuestions
112
112
  ];
113
113
  }
114
- exports.getSystemQuestions = getSystemQuestions;
115
114
  //# sourceMappingURL=questions.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui-service-inquirer",
3
3
  "description": "Generator for creating UI Service",
4
- "version": "0.1.27",
4
+ "version": "0.1.29",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -23,13 +23,13 @@
23
23
  "@sap-devx/yeoman-ui-types": "1.16.9",
24
24
  "i18next": "23.5.1",
25
25
  "yeoman-generator": "5.10.0",
26
- "@sap-ux/abap-deploy-config-inquirer": "1.4.21",
27
- "@sap-ux/axios-extension": "1.22.1",
26
+ "@sap-ux/abap-deploy-config-inquirer": "1.4.23",
28
27
  "@sap-ux/btp-utils": "1.1.0",
28
+ "@sap-ux/axios-extension": "1.22.2",
29
29
  "@sap-ux/guided-answers-helper": "0.3.0",
30
30
  "@sap-ux/inquirer-common": "0.7.13",
31
31
  "@sap-ux/logger": "0.7.0",
32
- "@sap-ux/odata-service-inquirer": "2.5.2",
32
+ "@sap-ux/odata-service-inquirer": "2.5.3",
33
33
  "@sap-ux/telemetry": "0.6.3"
34
34
  },
35
35
  "devDependencies": {
@@ -42,11 +42,10 @@
42
42
  "inquirer": "8.2.6",
43
43
  "nock": "13.5.6",
44
44
  "rimraf": "5.0.5",
45
- "typescript": "5.3.3",
46
45
  "yeoman-test": "6.3.0",
47
46
  "@sap-ux/jest-file-matchers": "0.2.2",
48
47
  "@sap-ux/store": "1.1.0",
49
- "@sap-ux/system-access": "0.6.6"
48
+ "@sap-ux/system-access": "0.6.7"
50
49
  },
51
50
  "engines": {
52
51
  "node": ">=20.x"