@konplit-services/common 1.0.215 → 1.0.218
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/build/app.configs.d.ts
CHANGED
|
@@ -101,6 +101,9 @@ interface NIBSS {
|
|
|
101
101
|
bvn: BVN;
|
|
102
102
|
resetURL: string;
|
|
103
103
|
}
|
|
104
|
+
interface DSN {
|
|
105
|
+
dsn: string;
|
|
106
|
+
}
|
|
104
107
|
declare class AppConfigs {
|
|
105
108
|
private env;
|
|
106
109
|
constructor(processEnv: typeof env);
|
|
@@ -199,6 +202,7 @@ declare class AppConfigs {
|
|
|
199
202
|
getValue(key: string): string;
|
|
200
203
|
ensureValues(keys?: string[]): this;
|
|
201
204
|
getNODE_ENV(): string | undefined;
|
|
205
|
+
getDSN_Key(): DSN;
|
|
202
206
|
}
|
|
203
207
|
declare const appConfigs: AppConfigs;
|
|
204
208
|
export { appConfigs };
|
package/build/app.configs.js
CHANGED
|
@@ -713,6 +713,15 @@ class AppConfigs {
|
|
|
713
713
|
getNODE_ENV() {
|
|
714
714
|
return this.env.NODE_ENV;
|
|
715
715
|
}
|
|
716
|
+
//DNS Secret Keys for ALL 14 Services
|
|
717
|
+
getDSN_Key() {
|
|
718
|
+
if (!this.env.SENTRY_LOG_DNS) {
|
|
719
|
+
throw new Error("SENTRY_LOG_DNS is required");
|
|
720
|
+
}
|
|
721
|
+
return {
|
|
722
|
+
dsn: this.env.SENTRY_LOG_DNS
|
|
723
|
+
};
|
|
724
|
+
}
|
|
716
725
|
}
|
|
717
726
|
// make sure all keys are available on startup
|
|
718
727
|
const appConfigs = new AppConfigs(process.env);
|
package/build/swagger/config.js
CHANGED
|
@@ -11,9 +11,9 @@ const configureSwagger = (app, paths) => {
|
|
|
11
11
|
definition: {
|
|
12
12
|
openapi: "3.1.0",
|
|
13
13
|
info: {
|
|
14
|
-
title: "
|
|
14
|
+
title: "Valuepay Payment System Documentation",
|
|
15
15
|
version: "1.0.0",
|
|
16
|
-
description: "This is a complete API definition for the
|
|
16
|
+
description: "This is a complete API definition for the Valuepay payment system documented with Swagger",
|
|
17
17
|
license: {
|
|
18
18
|
name: "IEC Code Components End-user licence agreement",
|
|
19
19
|
url: "https://spdx.org/licenses/IEC-Code-Components-EULA.html",
|