@konplit-services/common 1.0.224 → 1.0.226
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 +2 -0
- package/build/app.configs.js +14 -2
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
|
@@ -121,10 +121,12 @@ declare class AppConfigs {
|
|
|
121
121
|
getNATSURI(): string;
|
|
122
122
|
getWebsiteDBURI(): string;
|
|
123
123
|
getSettlementDBURI(): string;
|
|
124
|
+
getBvnAuthDBURI(): string;
|
|
124
125
|
getOpayDBURI(): string;
|
|
125
126
|
getKoreDBURI(): string;
|
|
126
127
|
getNATSPassword(): string;
|
|
127
128
|
getNATSUsername(): string;
|
|
129
|
+
getBVNEnvironment(): string;
|
|
128
130
|
getSettlementInterval(): string;
|
|
129
131
|
getNodeMAilDetails(): {
|
|
130
132
|
host: string;
|
package/build/app.configs.js
CHANGED
|
@@ -89,6 +89,12 @@ class AppConfigs {
|
|
|
89
89
|
}
|
|
90
90
|
return this.env.MONGO_SETTLEMENT_URI;
|
|
91
91
|
}
|
|
92
|
+
getBvnAuthDBURI() {
|
|
93
|
+
if (!this.env.MONGO_BVN_AUTH_URI) {
|
|
94
|
+
throw new Error("MONGO_BVN_AUTH_URI is required");
|
|
95
|
+
}
|
|
96
|
+
return this.env.MONGO_BVN_AUTH_URI;
|
|
97
|
+
}
|
|
92
98
|
getOpayDBURI() {
|
|
93
99
|
if (!this.env.MONGO_OPAY_URI) {
|
|
94
100
|
throw new Error("MONGO_OPAY_URI is required");
|
|
@@ -113,6 +119,12 @@ class AppConfigs {
|
|
|
113
119
|
}
|
|
114
120
|
return this.env.NATS_USERNAME;
|
|
115
121
|
}
|
|
122
|
+
getBVNEnvironment() {
|
|
123
|
+
if (!this.env.BVN_ENVIRONMENT) {
|
|
124
|
+
throw new Error("BVN_ENVIRONMENT is required");
|
|
125
|
+
}
|
|
126
|
+
return this.env.BVN_ENVIRONMENT;
|
|
127
|
+
}
|
|
116
128
|
getSettlementInterval() {
|
|
117
129
|
if (!this.env.SETTLEMENT_INTERVAL) {
|
|
118
130
|
throw new Error("SETTLEMENT_INTERVAL is required");
|
|
@@ -713,13 +725,13 @@ class AppConfigs {
|
|
|
713
725
|
getNODE_ENV() {
|
|
714
726
|
return this.env.NODE_ENV;
|
|
715
727
|
}
|
|
716
|
-
//DNS Secret Keys for ALL 14 Services
|
|
728
|
+
//DNS Secret Keys for ALL 14 Services
|
|
717
729
|
getDSN_Key() {
|
|
718
730
|
if (!this.env.SENTRY_LOG_DNS) {
|
|
719
731
|
throw new Error("SENTRY_LOG_DNS is required");
|
|
720
732
|
}
|
|
721
733
|
return {
|
|
722
|
-
dsn: this.env.SENTRY_LOG_DNS
|
|
734
|
+
dsn: this.env.SENTRY_LOG_DNS,
|
|
723
735
|
};
|
|
724
736
|
}
|
|
725
737
|
}
|