@sap-ux/btp-utils
Advanced tools
Comparing version 0.12.1 to 0.13.0
@@ -17,2 +17,10 @@ /** | ||
} | ||
/** | ||
* Relevant values for DestinationProxyType property | ||
*/ | ||
export declare enum DestinationProxyType { | ||
ON_PREMISE = "OnPremise", | ||
INTERNET = "Internet", | ||
PRIVATE_LINK = "PrivateLink" | ||
} | ||
type DestinationProperty = 'WebIDEEnabled' | 'WebIDESystem' | 'WebIDEUsage' | 'WebIDEAdditionalData' | 'sap-client' | 'sap-platform' | 'TrustAll' | 'HTML5.DynamicDestination'; | ||
@@ -70,3 +78,10 @@ type AdditionalDestinationProperties = { | ||
export declare function isFullUrlDestination(destination: Destination): boolean; | ||
/** | ||
* Checks whether the provided destination is configured as an on-premise system. | ||
* | ||
* @param destination destination info | ||
* @returns true if the destination is configured as an on-premise system | ||
*/ | ||
export declare function isOnPremiseDestination(destination: Destination): boolean; | ||
export {}; | ||
//# sourceMappingURL=destination.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isFullUrlDestination = exports.isPartialUrlDestination = exports.isGenericODataDestination = exports.isAbapEnvironmentOnBtp = exports.isAbapSystem = exports.WebIDEAdditionalData = exports.WebIDEUsage = void 0; | ||
exports.isOnPremiseDestination = exports.isFullUrlDestination = exports.isPartialUrlDestination = exports.isGenericODataDestination = exports.isAbapEnvironmentOnBtp = exports.isAbapSystem = exports.DestinationProxyType = exports.WebIDEAdditionalData = exports.WebIDEUsage = void 0; | ||
/** | ||
@@ -23,2 +23,11 @@ * Relevant values for the WebIDEUsage property used to identify different types of destinations. | ||
/** | ||
* Relevant values for DestinationProxyType property | ||
*/ | ||
var DestinationProxyType; | ||
(function (DestinationProxyType) { | ||
DestinationProxyType["ON_PREMISE"] = "OnPremise"; | ||
DestinationProxyType["INTERNET"] = "Internet"; | ||
DestinationProxyType["PRIVATE_LINK"] = "PrivateLink"; | ||
})(DestinationProxyType = exports.DestinationProxyType || (exports.DestinationProxyType = {})); | ||
/** | ||
* Checks whether the provided destination is configured to point to an ABAP system (both cloud and on-premise). | ||
@@ -86,2 +95,12 @@ * | ||
exports.isFullUrlDestination = isFullUrlDestination; | ||
/** | ||
* Checks whether the provided destination is configured as an on-premise system. | ||
* | ||
* @param destination destination info | ||
* @returns true if the destination is configured as an on-premise system | ||
*/ | ||
function isOnPremiseDestination(destination) { | ||
return Boolean(destination.ProxyType.includes(DestinationProxyType.ON_PREMISE)); | ||
} | ||
exports.isOnPremiseDestination = isOnPremiseDestination; | ||
//# sourceMappingURL=destination.js.map |
{ | ||
"name": "@sap-ux/btp-utils", | ||
"version": "0.12.1", | ||
"version": "0.13.0", | ||
"description": "Library to simplify working with SAP BTP specific features especially in SAP Business Application", | ||
@@ -18,6 +18,6 @@ "repository": { | ||
"@sap/cf-tools": "2.1.1", | ||
"axios": "1.6.0" | ||
"axios": "1.6.1" | ||
}, | ||
"devDependencies": { | ||
"nock": "13.2.1" | ||
"nock": "13.4.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "files": [ |
29711
388
+ Addedaxios@1.6.1(transitive)
- Removedaxios@1.6.0(transitive)
Updatedaxios@1.6.1