@konplit-services/common 1.11.1 → 1.13.0
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 +3 -0
- package/build/app.configs.js +12 -0
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
|
@@ -270,6 +270,7 @@ declare class AppConfigs {
|
|
|
270
270
|
getBVNEnvironment(): string;
|
|
271
271
|
getSettlementInterval(): string;
|
|
272
272
|
getCardExpiryInterval(): string;
|
|
273
|
+
getRequeryTransactionInterval(): string;
|
|
273
274
|
getNodeMAilDetails(): {
|
|
274
275
|
host: string;
|
|
275
276
|
port: number;
|
|
@@ -377,6 +378,8 @@ declare class AppConfigs {
|
|
|
377
378
|
ensureValues(keys?: string[]): this;
|
|
378
379
|
getNODE_ENV(): string | undefined;
|
|
379
380
|
isDev(): boolean;
|
|
381
|
+
isStaging(): boolean;
|
|
382
|
+
isProduction(): boolean;
|
|
380
383
|
getDSN_Key(): DSN;
|
|
381
384
|
}
|
|
382
385
|
declare const appConfigs: AppConfigs;
|
package/build/app.configs.js
CHANGED
|
@@ -203,6 +203,12 @@ class AppConfigs {
|
|
|
203
203
|
}
|
|
204
204
|
return this.env.CARD_EXPIRY_INTERVAL;
|
|
205
205
|
}
|
|
206
|
+
getRequeryTransactionInterval() {
|
|
207
|
+
if (!this.env.REQUERY_TRANSACTION) {
|
|
208
|
+
throw new Error("REQUERY_TRANSACTION is required");
|
|
209
|
+
}
|
|
210
|
+
return this.env.REQUERY_TRANSACTION;
|
|
211
|
+
}
|
|
206
212
|
getNodeMAilDetails() {
|
|
207
213
|
if (!this.env.MAIL_HOST) {
|
|
208
214
|
throw new Error("MAIL_HOST is required");
|
|
@@ -976,6 +982,12 @@ class AppConfigs {
|
|
|
976
982
|
isDev() {
|
|
977
983
|
return this.getNODE_ENV() === "development";
|
|
978
984
|
}
|
|
985
|
+
isStaging() {
|
|
986
|
+
return this.getNODE_ENV() === "staging";
|
|
987
|
+
}
|
|
988
|
+
isProduction() {
|
|
989
|
+
return this.getNODE_ENV() === "production";
|
|
990
|
+
}
|
|
979
991
|
//DNS Secret Keys for ALL 14 Services
|
|
980
992
|
getDSN_Key() {
|
|
981
993
|
if (!this.env.SENTRY_LOG_DNS) {
|