@sap-ux/odata-service-inquirer 0.5.43 → 0.5.45

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,9 @@ 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.initI18nOdataServiceInquirer = exports.defaultProjectNumber = void 0;
6
+ exports.defaultProjectNumber = void 0;
7
+ exports.initI18nOdataServiceInquirer = initI18nOdataServiceInquirer;
8
+ exports.t = t;
7
9
  const i18next_1 = __importDefault(require("i18next"));
8
10
  const odata_service_inquirer_i18n_json_1 = __importDefault(require("./translations/odata-service-inquirer.i18n.json"));
9
11
  const odataServiceInquirerNamespace = 'odata-service-inquirer';
@@ -23,7 +25,6 @@ async function initI18nOdataServiceInquirer() {
23
25
  }
24
26
  }, () => i18next_1.default.addResourceBundle('en', odataServiceInquirerNamespace, odata_service_inquirer_i18n_json_1.default));
25
27
  }
26
- exports.initI18nOdataServiceInquirer = initI18nOdataServiceInquirer;
27
28
  /**
28
29
  * Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
29
30
  *
@@ -37,7 +38,6 @@ function t(key, options) {
37
38
  }
38
39
  return i18next_1.default.t(key, options);
39
40
  }
40
- exports.t = t;
41
41
  initI18nOdataServiceInquirer().catch(() => {
42
42
  // Needed for lint
43
43
  });
package/dist/index.js CHANGED
@@ -3,7 +3,9 @@ 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.promptNames = exports.prompt = exports.newSystemChoiceValue = exports.getPrompts = exports.OdataVersion = exports.ErrorHandler = exports.ERROR_TYPE = exports.DatasourceType = void 0;
6
+ exports.promptNames = exports.newSystemChoiceValue = exports.OdataVersion = exports.ErrorHandler = exports.ERROR_TYPE = exports.DatasourceType = void 0;
7
+ exports.getPrompts = getPrompts;
8
+ exports.prompt = prompt;
7
9
  const odata_service_writer_1 = require("@sap-ux/odata-service-writer");
8
10
  Object.defineProperty(exports, "OdataVersion", { enumerable: true, get: function () { return odata_service_writer_1.OdataVersion; } });
9
11
  const inquirer_autocomplete_prompt_1 = __importDefault(require("inquirer-autocomplete-prompt"));
@@ -45,7 +47,6 @@ async function getPrompts(promptOptions, logger, enableGuidedAnswers = false, te
45
47
  answers: utils_1.PromptState.odataService
46
48
  };
47
49
  }
48
- exports.getPrompts = getPrompts;
49
50
  /**
50
51
  * Prompt for odata service writer inputs.
51
52
  *
@@ -69,5 +70,4 @@ async function prompt(adapter, promptOptions, logger, enableGuidedAnswers, telem
69
70
  Object.assign(answers, utils_1.PromptState.odataService);
70
71
  return answers;
71
72
  }
72
- exports.prompt = prompt;
73
73
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,10 @@ 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.getCapEdmx = exports.getCapServiceChoices = exports.getCapProjectChoices = exports.enterCapPathChoiceValue = void 0;
6
+ exports.enterCapPathChoiceValue = void 0;
7
+ exports.getCapProjectChoices = getCapProjectChoices;
8
+ exports.getCapServiceChoices = getCapServiceChoices;
9
+ exports.getCapEdmx = getCapEdmx;
7
10
  const project_access_1 = require("@sap-ux/project-access");
8
11
  const path_1 = require("path");
9
12
  const i18n_1 = require("../../../i18n");
@@ -58,7 +61,6 @@ async function getCapProjectChoices(paths) {
58
61
  }
59
62
  ];
60
63
  }
61
- exports.getCapProjectChoices = getCapProjectChoices;
62
64
  /**
63
65
  * Create a cap service choice from the service info.
64
66
  *
@@ -154,7 +156,6 @@ async function getCapServiceChoices(capProjectPaths) {
154
156
  }
155
157
  return [];
156
158
  }
157
- exports.getCapServiceChoices = getCapServiceChoices;
158
159
  /**
159
160
  * Get the edmx metadata for the CAP service.
160
161
  *
@@ -175,5 +176,4 @@ async function getCapEdmx(capService) {
175
176
  logger_helper_1.default.logger.error(error);
176
177
  }
177
178
  }
178
- exports.getCapEdmx = getCapEdmx;
179
179
  //# sourceMappingURL=cap-helpers.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLocalCapProjectPrompts = void 0;
3
+ exports.getLocalCapProjectPrompts = getLocalCapProjectPrompts;
4
4
  const odata_service_writer_1 = require("@sap-ux/odata-service-writer");
5
5
  const project_access_1 = require("@sap-ux/project-access");
6
6
  const i18n_1 = require("../../../i18n");
@@ -155,5 +155,4 @@ function getLocalCapProjectPrompts(promptOptions) {
155
155
  }
156
156
  return prompts;
157
157
  }
158
- exports.getLocalCapProjectPrompts = getLocalCapProjectPrompts;
159
158
  //# sourceMappingURL=questions.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateCapPath = void 0;
3
+ exports.validateCapPath = validateCapPath;
4
4
  const project_access_1 = require("@sap-ux/project-access");
5
5
  const i18n_1 = require("../../../i18n");
6
6
  /**
@@ -20,5 +20,4 @@ async function validateCapPath(capProjectPath) {
20
20
  }
21
21
  return false;
22
22
  }
23
- exports.validateCapPath = validateCapPath;
24
23
  //# sourceMappingURL=validators.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMetadataFileQuestion = void 0;
3
+ exports.getMetadataFileQuestion = getMetadataFileQuestion;
4
4
  const i18n_1 = require("../../../i18n");
5
5
  const types_1 = require("../../../types");
6
6
  const validators_1 = require("./validators");
@@ -34,5 +34,4 @@ function getMetadataFileQuestion(promptOptions) {
34
34
  };
35
35
  return metadataFileQuestion;
36
36
  }
37
- exports.getMetadataFileQuestion = getMetadataFileQuestion;
38
37
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getABAPInstanceChoices = void 0;
3
+ exports.getABAPInstanceChoices = getABAPInstanceChoices;
4
4
  const cf_tools_1 = require("@sap/cf-tools");
5
5
  const error_handler_1 = require("../../../../error-handler/error-handler");
6
6
  const i18n_1 = require("../../../../i18n");
@@ -51,5 +51,4 @@ async function getABAPInstanceChoices() {
51
51
  }
52
52
  return choices.sort((a, b) => (a.name ? a.name.localeCompare(b.name ?? '') : 0));
53
53
  }
54
- exports.getABAPInstanceChoices = getABAPInstanceChoices;
55
54
  //# sourceMappingURL=cf-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.getCFDiscoverPrompts = exports.getAbapOnBTPSystemQuestions = void 0;
6
+ exports.getAbapOnBTPSystemQuestions = getAbapOnBTPSystemQuestions;
7
+ exports.getCFDiscoverPrompts = getCFDiscoverPrompts;
7
8
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
8
9
  const cf_tools_1 = require("@sap/cf-tools");
9
10
  const error_handler_1 = require("../../../../error-handler/error-handler");
@@ -74,7 +75,6 @@ function getAbapOnBTPSystemQuestions(promptOptions) {
74
75
  questions.push(...(0, questions_1.getSystemServiceQuestion)(connectValidator, abapOnBtpPromptNamespace, promptOptions));
75
76
  return questions;
76
77
  }
77
- exports.getAbapOnBTPSystemQuestions = getAbapOnBTPSystemQuestions;
78
78
  /**
79
79
  * Validate the service info for the ABAP on BTP system. This function will validate the service key file and the connection to the ABAP system.
80
80
  *
@@ -171,7 +171,6 @@ function getCFDiscoverPrompts(connectionValidator) {
171
171
  }
172
172
  return questions;
173
173
  }
174
- exports.getCFDiscoverPrompts = getCFDiscoverPrompts;
175
174
  /**
176
175
  * Get the service key prompt for the ABAP on BTP system. This prompt will allow the user to select a service key file from the file system.
177
176
  *
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAbapOnPremSystemQuestions = exports.getAbapOnPremQuestions = exports.abapOnPremInternalPromptNames = void 0;
3
+ exports.abapOnPremInternalPromptNames = void 0;
4
+ exports.getAbapOnPremQuestions = getAbapOnPremQuestions;
5
+ exports.getAbapOnPremSystemQuestions = getAbapOnPremSystemQuestions;
4
6
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
5
7
  const project_input_validator_1 = require("@sap-ux/project-input-validator");
6
8
  const i18n_1 = require("../../../../i18n");
@@ -31,7 +33,6 @@ function getAbapOnPremQuestions(promptOptions) {
31
33
  questions.push(...(0, questions_1.getSystemServiceQuestion)(connectValidator, abapOnPremPromptNamespace, promptOptions));
32
34
  return questions;
33
35
  }
34
- exports.getAbapOnPremQuestions = getAbapOnPremQuestions;
35
36
  /**
36
37
  * Gets the Abap on-premise system questions.
37
38
  *
@@ -110,5 +111,4 @@ function getAbapOnPremSystemQuestions(systemNamePromptOptions, connectionValidat
110
111
  }
111
112
  return questions;
112
113
  }
113
- exports.getAbapOnPremSystemQuestions = getAbapOnPremSystemQuestions;
114
114
  //# sourceMappingURL=questions.js.map
@@ -3,7 +3,12 @@ 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.getSystemServiceQuestion = exports.getSelectedServiceLabel = exports.getUserSystemNameQuestion = exports.getSystemUrlQuestion = exports.getNewSystemQuestions = exports.newSystemChoiceValue = void 0;
6
+ exports.newSystemChoiceValue = void 0;
7
+ exports.getNewSystemQuestions = getNewSystemQuestions;
8
+ exports.getSystemUrlQuestion = getSystemUrlQuestion;
9
+ exports.getUserSystemNameQuestion = getUserSystemNameQuestion;
10
+ exports.getSelectedServiceLabel = getSelectedServiceLabel;
11
+ exports.getSystemServiceQuestion = getSystemServiceQuestion;
7
12
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
8
13
  const axios_extension_1 = require("@sap-ux/axios-extension");
9
14
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
@@ -68,7 +73,6 @@ function getNewSystemQuestions(promptOptions) {
68
73
  questions.push(...(0, inquirer_common_1.withCondition)((0, questions_2.getAbapOnBTPSystemQuestions)(promptOptions), (answers) => answers.newSystemType === 'abapOnBtp'));
69
74
  return questions;
70
75
  }
71
- exports.getNewSystemQuestions = getNewSystemQuestions;
72
76
  /**
73
77
  * Get the system url prompt. The system url prompt is used to connect to a new system using the user input system url.
74
78
  *
@@ -104,7 +108,6 @@ function getSystemUrlQuestion(connectValidator, promptNamespace, requiredOdataVe
104
108
  };
105
109
  return newSystemUrlQuestion;
106
110
  }
107
- exports.getSystemUrlQuestion = getSystemUrlQuestion;
108
111
  /**
109
112
  * Get a prompt for new system name.
110
113
  *
@@ -173,7 +176,6 @@ function getUserSystemNameQuestion(connectValidator, promptNamespace) {
173
176
  };
174
177
  return newSystemNamePrompt;
175
178
  }
176
- exports.getUserSystemNameQuestion = getUserSystemNameQuestion;
177
179
  /**
178
180
  * Create a value for the service selection prompt message, which may include thge active connected user name.
179
181
  *
@@ -187,7 +189,6 @@ function getSelectedServiceLabel(username) {
187
189
  }
188
190
  return message;
189
191
  }
190
- exports.getSelectedServiceLabel = getSelectedServiceLabel;
191
192
  /**
192
193
  * Get the service selection prompt for a system connection. The service selection prompt is used to select a service from the system catalog.
193
194
  *
@@ -275,7 +276,6 @@ function getSystemServiceQuestion(connectValidator, promptNamespace, promptOptio
275
276
  }
276
277
  return questions;
277
278
  }
278
- exports.getSystemServiceQuestion = getSystemServiceQuestion;
279
279
  /**
280
280
  * Get the service selection prompt additional message. This prompt will make an additional call to the system backend
281
281
  * to retrieve the service type and display a warning message if the service type is not UI.
@@ -3,7 +3,10 @@ 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.getServiceDetails = exports.getServiceType = exports.getServiceMetadata = exports.getServiceChoices = void 0;
6
+ exports.getServiceChoices = getServiceChoices;
7
+ exports.getServiceMetadata = getServiceMetadata;
8
+ exports.getServiceType = getServiceType;
9
+ exports.getServiceDetails = getServiceDetails;
7
10
  const axios_extension_1 = require("@sap-ux/axios-extension");
8
11
  const i18n_1 = require("../../../../i18n");
9
12
  const logger_helper_1 = __importDefault(require("../../../logger-helper"));
@@ -93,7 +96,6 @@ async function getServiceChoices(catalogs) {
93
96
  }
94
97
  return createServiceChoices(flatServices);
95
98
  }
96
- exports.getServiceChoices = getServiceChoices;
97
99
  /**
98
100
  * Gets the service metadata and annotations for the specified service path.
99
101
  *
@@ -124,7 +126,6 @@ async function getServiceMetadata(servicePath, catalog, serviceProvider) {
124
126
  return (0, i18n_1.t)('errors.serviceMetadataErrorUI', { servicePath });
125
127
  }
126
128
  }
127
- exports.getServiceMetadata = getServiceMetadata;
128
129
  /**
129
130
  * Get service type for 'Not Determined' services from `ServiceTypeForHUBServices()`
130
131
  *
@@ -145,7 +146,6 @@ async function getServiceType(servicePath, serviceType, catalog) {
145
146
  }
146
147
  return resolvedServiceType ?? serviceType;
147
148
  }
148
- exports.getServiceType = getServiceType;
149
149
  /**
150
150
  * Requests and sets the service details to the PromptState.odataService properties.
151
151
  * If an error occurs, the error message is returned for use in validators.
@@ -172,5 +172,4 @@ async function getServiceDetails(service, connectionValidator) {
172
172
  utils_1.PromptState.odataService.origin = connectionValidator.validatedUrl;
173
173
  return true;
174
174
  }
175
- exports.getServiceDetails = getServiceDetails;
176
175
  //# sourceMappingURL=service-helper.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.suggestSystemName = void 0;
3
+ exports.suggestSystemName = suggestSystemName;
4
4
  const i18n_1 = require("../../../i18n");
5
5
  const validators_1 = require("./validators");
6
6
  /**
@@ -18,7 +18,6 @@ async function suggestSystemName(systemName, client) {
18
18
  // If initial suggested name is taken, append a suffix
19
19
  return appendSuffix(initialSystemName);
20
20
  }
21
- exports.suggestSystemName = suggestSystemName;
22
21
  /**
23
22
  * Appends a suffix to the system name to make it unique.
24
23
  *
@@ -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.validateServiceKey = exports.validateSystemName = void 0;
6
+ exports.validateSystemName = validateSystemName;
7
+ exports.validateServiceKey = validateServiceKey;
7
8
  const i18n_1 = require("../../../i18n");
8
9
  const store_1 = require("@sap-ux/store");
9
10
  const logger_helper_1 = __importDefault(require("../../logger-helper"));
@@ -36,7 +37,6 @@ async function validateSystemName(systemName) {
36
37
  return true;
37
38
  }
38
39
  }
39
- exports.validateSystemName = validateSystemName;
40
40
  /**
41
41
  * Validates the existence and content of the file at the given path and returns the service key info if valid.
42
42
  *
@@ -59,5 +59,4 @@ function validateServiceKey(path) {
59
59
  return error.name === 'SyntaxError' ? (0, i18n_1.t)('prompts.serviceKey.unparseableServiceKey') : error.message;
60
60
  }
61
61
  }
62
- exports.validateServiceKey = validateServiceKey;
63
62
  //# sourceMappingURL=validators.js.map
@@ -3,7 +3,7 @@ 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.getServiceUrlQuestions = void 0;
6
+ exports.getServiceUrlQuestions = getServiceUrlQuestions;
7
7
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
8
8
  const i18n_1 = require("../../../i18n");
9
9
  const types_1 = require("../../../types");
@@ -224,5 +224,4 @@ function getServiceUrlQuestions({ serviceUrl: serviceUrlOpts, serviceUrlPassword
224
224
  }
225
225
  return questions;
226
226
  }
227
- exports.getServiceUrlQuestions = getServiceUrlQuestions;
228
227
  //# sourceMappingURL=questions.js.map
@@ -3,7 +3,7 @@ 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.validateService = void 0;
6
+ exports.validateService = validateService;
7
7
  const axios_extension_1 = require("@sap-ux/axios-extension");
8
8
  const error_handler_1 = require("../../../error-handler/error-handler");
9
9
  const i18n_1 = require("../../../i18n");
@@ -79,5 +79,4 @@ async function validateService(url, { odataService, axiosConfig }, requiredVersi
79
79
  connectionValidator_1.ConnectionValidator.setGlobalRejectUnauthorized(true);
80
80
  }
81
81
  }
82
- exports.validateService = validateService;
83
82
  //# sourceMappingURL=validators.js.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDatasourceTypeChoices = exports.errorHandler = void 0;
3
+ exports.errorHandler = void 0;
4
+ exports.getDatasourceTypeChoices = getDatasourceTypeChoices;
4
5
  const btp_utils_1 = require("@sap-ux/btp-utils");
5
6
  const error_handler_1 = require("../error-handler/error-handler");
6
7
  const i18n_1 = require("../i18n");
@@ -40,5 +41,4 @@ function getDatasourceTypeChoices({ includeNone = false, includeProjectSpecificD
40
41
  }
41
42
  return choices;
42
43
  }
43
- exports.getDatasourceTypeChoices = getDatasourceTypeChoices;
44
44
  //# sourceMappingURL=prompt-helpers.js.map
@@ -3,7 +3,7 @@ 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.getQuestions = void 0;
6
+ exports.getQuestions = getQuestions;
7
7
  const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
8
8
  const inquirer_common_1 = require("@sap-ux/inquirer-common");
9
9
  const i18n_1 = require("../i18n");
@@ -26,7 +26,6 @@ async function getQuestions(promptOptions) {
26
26
  questions.push(...(await getDatasourceTypeConditionalQuestions(promptOptions)));
27
27
  return questions;
28
28
  }
29
- exports.getQuestions = getQuestions;
30
29
  /**
31
30
  * Get the datasource type question.
32
31
  *
@@ -3,7 +3,7 @@ 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.validateODataVersion = void 0;
6
+ exports.validateODataVersion = validateODataVersion;
7
7
  const i18n_1 = require("../i18n");
8
8
  const logger_helper_1 = __importDefault(require("./logger-helper"));
9
9
  const utils_1 = require("../utils");
@@ -37,5 +37,4 @@ function validateODataVersion(edmx, requiredVersion) {
37
37
  };
38
38
  }
39
39
  }
40
- exports.validateODataVersion = validateODataVersion;
41
40
  //# sourceMappingURL=validators.js.map
@@ -3,7 +3,14 @@ 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.PromptState = exports.getDefaultChoiceIndex = exports.convertODataVersionType = exports.originToRelative = exports.parseOdataVersion = exports.sendTelemetryEvent = exports.setTelemetryClient = exports.getHostEnvironment = void 0;
6
+ exports.PromptState = void 0;
7
+ exports.getHostEnvironment = getHostEnvironment;
8
+ exports.setTelemetryClient = setTelemetryClient;
9
+ exports.sendTelemetryEvent = sendTelemetryEvent;
10
+ exports.parseOdataVersion = parseOdataVersion;
11
+ exports.originToRelative = originToRelative;
12
+ exports.convertODataVersionType = convertODataVersionType;
13
+ exports.getDefaultChoiceIndex = getDefaultChoiceIndex;
7
14
  const btp_utils_1 = require("@sap-ux/btp-utils");
8
15
  const telemetry_1 = require("@sap-ux/telemetry");
9
16
  const os_name_1 = __importDefault(require("os-name"));
@@ -29,7 +36,6 @@ function getHostEnvironment() {
29
36
  return (0, btp_utils_1.isAppStudio)() ? types_1.hostEnvironment.bas : types_1.hostEnvironment.vscode;
30
37
  }
31
38
  }
32
- exports.getHostEnvironment = getHostEnvironment;
33
39
  let telemetryClient;
34
40
  /**
35
41
  * Set the telemetry client.
@@ -39,7 +45,6 @@ let telemetryClient;
39
45
  function setTelemetryClient(toolsSuiteTelemetryClient) {
40
46
  telemetryClient = toolsSuiteTelemetryClient;
41
47
  }
42
- exports.setTelemetryClient = setTelemetryClient;
43
48
  /**
44
49
  * Send telemetry event.
45
50
  *
@@ -53,7 +58,6 @@ function sendTelemetryEvent(eventName, telemetryData) {
53
58
  telemetryClient.reportEvent(telemetryEvent, telemetry_1.SampleRate.NoSampling);
54
59
  }
55
60
  }
56
- exports.sendTelemetryEvent = sendTelemetryEvent;
57
61
  /**
58
62
  * Create telemetry event.
59
63
  *
@@ -97,7 +101,6 @@ function parseOdataVersion(metadata) {
97
101
  throw new Error((0, i18n_1.t)('prompts.validationMessages.metadataInvalid'));
98
102
  }
99
103
  }
100
- exports.parseOdataVersion = parseOdataVersion;
101
104
  /**
102
105
  * Replaces the origin in the metadata URIs with a relative path.
103
106
  * The path will be tested for '/sap/opu/odata/' and if found, the origin will be replaced with './'.
@@ -117,7 +120,6 @@ function originToRelative(metadata) {
117
120
  // Retain the original path segment after the origin, matched with capture group 5 (index 4)
118
121
  (match, ...patterns) => `${patterns[0]}./${patterns[4]}`);
119
122
  }
120
- exports.originToRelative = originToRelative;
121
123
  /**
122
124
  * Convert the odata version type from the prompt (odata-service-writer) type to the axios-extension type.
123
125
  *
@@ -130,7 +132,6 @@ function convertODataVersionType(odataVersion) {
130
132
  }
131
133
  return odataVersion === odata_service_writer_1.OdataVersion.v2 ? axios_extension_1.ODataVersion.v2 : axios_extension_1.ODataVersion.v4;
132
134
  }
133
- exports.convertODataVersionType = convertODataVersionType;
134
135
  /**
135
136
  * Gets the default index for a list of items, used to default list prompts to the first item if only one item is available.
136
137
  * If list is undefined or has more than one, returns undefined which will default to the 'please select' message.
@@ -144,5 +145,4 @@ function getDefaultChoiceIndex(list) {
144
145
  }
145
146
  return undefined;
146
147
  }
147
- exports.getDefaultChoiceIndex = getDefaultChoiceIndex;
148
148
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/odata-service-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for odata service writing",
4
- "version": "0.5.43",
4
+ "version": "0.5.45",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,12 +29,12 @@
29
29
  "@sap-ux/axios-extension": "1.16.6",
30
30
  "@sap-ux/btp-utils": "0.15.2",
31
31
  "@sap-ux/guided-answers-helper": "0.0.2",
32
- "@sap-ux/telemetry": "0.5.31",
32
+ "@sap-ux/telemetry": "0.5.33",
33
33
  "@sap-ux/inquirer-common": "0.4.6",
34
34
  "@sap-ux/logger": "0.6.0",
35
- "@sap-ux/project-access": "1.27.5",
35
+ "@sap-ux/project-access": "1.27.6",
36
36
  "@sap-ux/project-input-validator": "0.3.3",
37
- "@sap-ux/store": "0.9.1"
37
+ "@sap-ux/store": "0.9.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@sap-devx/yeoman-ui-types": "1.14.4",
@@ -44,7 +44,7 @@
44
44
  "jest-extended": "3.2.4",
45
45
  "lodash": "4.17.21",
46
46
  "@sap-ux/odata-service-writer": "0.23.0",
47
- "@sap-ux/feature-toggle": "0.2.0"
47
+ "@sap-ux/feature-toggle": "0.2.1"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=18.x"