@konplit-services/common 1.0.156 → 1.0.157

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.
@@ -102,6 +102,7 @@ declare class AppConfigs {
102
102
  getWebsiteDBURI(): string;
103
103
  getNATSPassword(): string;
104
104
  getNATSUsername(): string;
105
+ getSettlementInterval(): string;
105
106
  getNodeMAilDetails(): {
106
107
  host: string;
107
108
  port: number;
@@ -83,6 +83,12 @@ class AppConfigs {
83
83
  }
84
84
  return this.env.NATS_USERNAME;
85
85
  }
86
+ getSettlementInterval() {
87
+ if (!this.env.SETTLEMENT_INTERVAL) {
88
+ throw new Error("SETTLEMENT_INTERVAL is required");
89
+ }
90
+ return this.env.SETTLEMENT_INTERVAL;
91
+ }
86
92
  getNodeMAilDetails() {
87
93
  if (!this.env.MAIL_HOST) {
88
94
  throw new Error("MAIL_HOST is required");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.156",
3
+ "version": "1.0.157",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",