@sap_oss/alert-notification-client
Advanced tools
Comparing version 1.5.0 to 1.6.0
import AlertNotificationClient, { AlertNotificationConfiguration } from './client'; | ||
export { Credentials, OAuthConfig, BasicAuthentication, OAuthAuthentication } from './authentication'; | ||
export { DestinationConfiguration, CredentialsForDestinationService } from './utils/destination-configuration'; | ||
export { Credentials, OAuthConfig, BasicAuthentication, OAuthAuthentication, CertificateAuthentication } from './authentication'; | ||
export * as RegionUtils from './utils/region'; | ||
@@ -4,0 +5,0 @@ export { PageMetadata, PageResponse, CommonQueryParams } from './utils/common'; |
@@ -28,5 +28,8 @@ "use strict"; | ||
exports.AlertNotificationClient = client_1.default; | ||
var destination_configuration_1 = require("./utils/destination-configuration"); | ||
Object.defineProperty(exports, "DestinationConfiguration", { enumerable: true, get: function () { return destination_configuration_1.DestinationConfiguration; } }); | ||
var authentication_1 = require("./authentication"); | ||
Object.defineProperty(exports, "BasicAuthentication", { enumerable: true, get: function () { return authentication_1.BasicAuthentication; } }); | ||
Object.defineProperty(exports, "OAuthAuthentication", { enumerable: true, get: function () { return authentication_1.OAuthAuthentication; } }); | ||
Object.defineProperty(exports, "CertificateAuthentication", { enumerable: true, get: function () { return authentication_1.CertificateAuthentication; } }); | ||
exports.RegionUtils = __importStar(require("./utils/region")); | ||
@@ -33,0 +36,0 @@ var models_1 = require("./configuration-api/models"); |
@@ -1,2 +0,2 @@ | ||
export interface Credentials { | ||
export interface CredentialsForDestinationService { | ||
/** | ||
@@ -37,6 +37,6 @@ * Username | ||
* | ||
* @param {Credentials} config - contains username, password, destinationName, destinationUrl and oAuthTokenUrl. All | ||
* @param {CredentialsForDestinationService} config - contains username, password, destinationName, destinationUrl and oAuthTokenUrl. All | ||
* of them must be provided else Error will be thrown. | ||
*/ | ||
constructor(config: Credentials); | ||
constructor(config: CredentialsForDestinationService); | ||
getAuthentication(): Promise<any>; | ||
@@ -43,0 +43,0 @@ private buildKeyStore; |
@@ -28,3 +28,3 @@ "use strict"; | ||
* | ||
* @param {Credentials} config - contains username, password, destinationName, destinationUrl and oAuthTokenUrl. All | ||
* @param {CredentialsForDestinationService} config - contains username, password, destinationName, destinationUrl and oAuthTokenUrl. All | ||
* of them must be provided else Error will be thrown. | ||
@@ -31,0 +31,0 @@ */ |
{ | ||
"name": "@sap_oss/alert-notification-client", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "SAP Alert Notification service for SAP BTP Node.js API client", | ||
@@ -39,3 +39,3 @@ "main": "dist/index.js", | ||
"@types/jest": "^26.0.14", | ||
"@types/node": "^14.6.2", | ||
"@types/node": "^14.18.36", | ||
"@typescript-eslint/eslint-plugin": "^4.4.0", | ||
@@ -42,0 +42,0 @@ "@typescript-eslint/parser": "^4.4.0", |
import AlertNotificationClient, { AlertNotificationConfiguration } from './client'; | ||
export { | ||
DestinationConfiguration, | ||
CredentialsForDestinationService | ||
} from './utils/destination-configuration'; | ||
export { | ||
Credentials, | ||
OAuthConfig, | ||
BasicAuthentication, | ||
OAuthAuthentication | ||
OAuthAuthentication, | ||
CertificateAuthentication | ||
} from './authentication'; | ||
@@ -9,0 +15,0 @@ |
@@ -7,3 +7,3 @@ import axios, { AxiosInstance } from 'axios'; | ||
export interface Credentials { | ||
export interface CredentialsForDestinationService { | ||
/** | ||
@@ -45,6 +45,6 @@ * Username | ||
* | ||
* @param {Credentials} config - contains username, password, destinationName, destinationUrl and oAuthTokenUrl. All | ||
* @param {CredentialsForDestinationService} config - contains username, password, destinationName, destinationUrl and oAuthTokenUrl. All | ||
* of them must be provided else Error will be thrown. | ||
*/ | ||
constructor(config: Credentials) { | ||
constructor(config: CredentialsForDestinationService) { | ||
if (!config) { | ||
@@ -51,0 +51,0 @@ throw new Error('Configuration cannot be null, undefined or empty object'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
226924
4301
4