@sap-ux/odata-service-inquirer 3.0.13 → 3.0.14

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,6 @@
1
1
  import type { OdataVersion } from '@sap-ux/odata-service-writer';
2
2
  import type { Question } from 'inquirer';
3
- import { type OdataServiceAnswers, type OdataServicePromptOptions, type SystemNamePromptOptions } from '../../../../types.js';
3
+ import type { OdataServiceAnswers, OdataServicePromptOptions, SystemNamePromptOptions } from '../../../../types.js';
4
4
  import { ConnectionValidator } from '../../../connectionValidator.js';
5
5
  import { type ServiceAnswer } from '../service-selection/index.js';
6
6
  declare const systemUrlPromptName: "abapOnPrem:newSystemUrl";
@@ -7,8 +7,8 @@ import { promptNames } from '../../../../types.js';
7
7
  import { areArraysEquivalent, getDefaultChoiceIndex, getPromptHostEnvironment, PromptState } from '../../../../utils/index.js';
8
8
  import LoggerHelper from '../../../logger-helper.js';
9
9
  import { errorHandler } from '../../../prompt-helpers.js';
10
- import { getSelectedServiceLabel, getSelectedServiceMessage, getServiceChoices, sendDestinationServiceSuccessTelemetryEvent, validateService } from '../service-selection/service-helper.js';
11
10
  import { getValueHelpDownloadPrompt } from '../external-services/value-help-download.js';
11
+ import { getSelectedServiceLabel, getSelectedServiceMessage, getServiceChoices, sendDestinationServiceSuccessTelemetryEvent, validateService } from '../service-selection/service-helper.js';
12
12
  const cliServicePromptName = 'cliServiceSelection';
13
13
  /**
14
14
  * Get the service selection prompt for an Abap system connection (on-prem or on-btp). The service selection prompt is used to select a service from the system catalog.
@@ -48,7 +48,7 @@ export async function connectWithBackendSystem(backendKey, connectionValidator,
48
48
  isSystem: true,
49
49
  odataVersion: convertODataVersionType(requiredOdataVersion),
50
50
  systemAuthType: 'reentranceTicket',
51
- connectType: connectPath ? 'odata_path' : undefined // Assumption that if a connection path is provided its an odata service endpoint
51
+ connectType: connectPath ? 'odata_path' : 'abap_catalog' // Assumption that if a connection path is provided its an odata service endpoint
52
52
  });
53
53
  }
54
54
  else if (backendSystem.serviceKeys) {
@@ -61,7 +61,7 @@ export async function connectWithBackendSystem(backendKey, connectionValidator,
61
61
  isSystem: true,
62
62
  odataVersion: convertODataVersionType(requiredOdataVersion),
63
63
  sapClient: backendSystem.client,
64
- connectType: connectPath ? 'odata_path' : undefined // Assumption that if a connection path is provided its an odata service endpoint
64
+ connectType: connectPath ? 'odata_path' : 'abap_catalog' // Assumption that if a connection path is provided its an odata service endpoint
65
65
  }));
66
66
  // If authentication failed with existing credentials the user will be prompted to enter new credentials.
67
67
  // We log the error in case there is another issue (unresolveable) with the stored backend configuration.
package/dist/types.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import type { Annotations, ServiceProvider, ExternalService } from '@sap-ux/axios-extension';
1
+ import type { Annotations, ExternalService, ServiceProvider } from '@sap-ux/axios-extension';
2
2
  import type { Destination } from '@sap-ux/btp-utils';
3
+ import type { CapService } from '@sap-ux/cap-config-writer';
4
+ import type { TableSelectionMode, TableType } from '@sap-ux/fiori-elements-writer';
3
5
  import type { CommonPromptOptions, YUIQuestion } from '@sap-ux/inquirer-common';
4
6
  import type { OdataVersion } from '@sap-ux/odata-service-writer';
5
7
  import type { BackendSystem } from '@sap-ux/store';
6
8
  import type { ListChoiceOptions } from 'inquirer';
7
- import type { CapService } from '@sap-ux/cap-config-writer';
8
- import type { EntityAnswer, NavigationEntityAnswer } from './prompts/edmx/entity-helper.js';
9
- import type { TableSelectionMode, TableType } from '@sap-ux/fiori-elements-writer';
10
9
  import type { serviceUrlInternalPromptNames } from './prompts/datasources/service-url/types.js';
10
+ import type { EntityAnswer, NavigationEntityAnswer } from './prompts/edmx/entity-helper.js';
11
11
  /**
12
12
  * This file contains types that are exported by the module and are needed for consumers using the APIs `prompt` and `getPrompts`.
13
13
  */
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": "3.0.13",
4
+ "version": "3.0.14",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -50,7 +50,7 @@
50
50
  "@types/inquirer": "8.2.6",
51
51
  "jest-extended": "7.0.0",
52
52
  "@sap-ux/fiori-generator-shared": "1.0.11",
53
- "@sap-ux/fiori-elements-writer": "3.0.32",
53
+ "@sap-ux/fiori-elements-writer": "3.0.33",
54
54
  "@sap-ux/fiori-freestyle-writer": "3.0.29",
55
55
  "@sap-ux/feature-toggle": "1.0.2",
56
56
  "@sap-ux/odata-service-writer": "1.0.7",