diff --git a/package.json b/package.json index 3f82cb8..4f5bb59 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ }, "devDependencies": { "@types/jest": "^26.0.14", - "@types/node": "^14.6.2", + "@types/node": "^14.18.36", "@typescript-eslint/eslint-plugin": "^4.4.0", "@typescript-eslint/parser": "^4.4.0", "eslint": "^7.10.0", diff --git a/src/index.ts b/src/index.ts index ae1d82e..99c3aa2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,16 @@ import AlertNotificationClient, { AlertNotificationConfiguration } from './client'; +export { + DestinationConfiguration, + CredentialsForDestinationService +} from './utils/destination-configuration'; + export { Credentials, OAuthConfig, BasicAuthentication, - OAuthAuthentication + OAuthAuthentication, + CertificateAuthentication } from './authentication'; export * as RegionUtils from './utils/region'; diff --git a/src/utils/destination-configuration.ts b/src/utils/destination-configuration.ts index e8123a3..364665b 100644 --- a/src/utils/destination-configuration.ts +++ b/src/utils/destination-configuration.ts @@ -4,7 +4,7 @@ import { BasicAuthentication, OAuthAuthentication } from '../authentication'; import { KeyStore, KeystoreFormat } from './key-store'; import { toPem } from 'jks-js'; -export interface Credentials { +export interface CredentialsForDestinationService { /** * Username */ @@ -41,10 +41,10 @@ export class DestinationConfiguration { /** * Creates an instance of DestinationServiceConfiguration. * - * @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) { throw new Error('Configuration cannot be null, undefined or empty object'); }