@konplit-services/common 1.0.160 → 1.0.161

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.
@@ -100,6 +100,7 @@ declare class AppConfigs {
100
100
  getWalletDBURI(): string;
101
101
  getNATSURI(): string;
102
102
  getWebsiteDBURI(): string;
103
+ getSettlementDBURI(): string;
103
104
  getNATSPassword(): string;
104
105
  getNATSUsername(): string;
105
106
  getSettlementInterval(): string;
@@ -71,6 +71,12 @@ class AppConfigs {
71
71
  }
72
72
  return this.env.Mongo_WEBSITE_URI;
73
73
  }
74
+ getSettlementDBURI() {
75
+ if (!this.env.MONGO_SETTLEMENT_URI) {
76
+ throw new Error("MONGO_SETTLEMENT_URI is required");
77
+ }
78
+ return this.env.MONGO_SETTLEMENT_URI;
79
+ }
74
80
  getNATSPassword() {
75
81
  if (!this.env.NATS_PASSWORD) {
76
82
  throw new Error("NATS_PASSWORD is required");
@@ -26,6 +26,8 @@ export declare enum LOGACTIONS {
26
26
  PAGE_CATEGORY_DELETED = "PAGE_CATEGORY_DELETED",
27
27
  CONSTANT_UPDATED = "CONSTANT_UPDATED",
28
28
  CONSTANT_DELETED = "CONSTANT_DELETED",
29
+ SETTLEMENT_SETTING_CREATED = "SETTLEMENT_SETTING_CREATED",
30
+ SETTLEMENT_SETTING_UPDATED = "SETTLEMENT_SETTING_UPDATED",
29
31
  CONTACT_UPDATED = "CONTACT_UPDATED",
30
32
  CONTACT_DELETED = "CONTACT_DELETED",
31
33
  SOCIAL_UPDATED = "SOCIAL_UPDATED",
@@ -39,6 +39,9 @@ var LOGACTIONS;
39
39
  //CONSTANT
40
40
  LOGACTIONS["CONSTANT_UPDATED"] = "CONSTANT_UPDATED";
41
41
  LOGACTIONS["CONSTANT_DELETED"] = "CONSTANT_DELETED";
42
+ //SETTLEMENTSETTING
43
+ LOGACTIONS["SETTLEMENT_SETTING_CREATED"] = "SETTLEMENT_SETTING_CREATED";
44
+ LOGACTIONS["SETTLEMENT_SETTING_UPDATED"] = "SETTLEMENT_SETTING_UPDATED";
42
45
  //CONTACT
43
46
  LOGACTIONS["CONTACT_UPDATED"] = "CONTACT_UPDATED";
44
47
  LOGACTIONS["CONTACT_DELETED"] = "CONTACT_DELETED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.160",
3
+ "version": "1.0.161",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",