@konplit-services/common 1.0.226 → 1.0.227

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.
@@ -116,6 +116,8 @@ declare class AppConfigs {
116
116
  getMonoDBURI(): string;
117
117
  getQRPaymentDBURI(): string;
118
118
  getTransferDBURI(): string;
119
+ getInvoiceDBURI(): string;
120
+ getEasyPayDBURI(): string;
119
121
  getVirtualAccountDBURI(): string;
120
122
  getWalletDBURI(): string;
121
123
  getNATSURI(): string;
@@ -59,6 +59,18 @@ class AppConfigs {
59
59
  }
60
60
  return this.env.MONGO_URI_TRANSFER;
61
61
  }
62
+ getInvoiceDBURI() {
63
+ if (!this.env.MONGO_INVOICE_URI) {
64
+ throw new Error("MONGO_INVOICE_URI is required");
65
+ }
66
+ return this.env.MONGO_INVOICE_URI;
67
+ }
68
+ getEasyPayDBURI() {
69
+ if (!this.env.MONGO_EASYPAY_URI) {
70
+ throw new Error("MONGO_EASYPAY_URI is required");
71
+ }
72
+ return this.env.MONGO_EASYPAY_URI;
73
+ }
62
74
  getVirtualAccountDBURI() {
63
75
  if (!this.env.MONGO_URI_VIRTUAL_ACCOUNT) {
64
76
  throw new Error("MONGO_URI_VIRTUAL_ACCOUNT is required");
@@ -6,7 +6,8 @@ export declare enum SocialMediaType {
6
6
  facebook = "facebook",
7
7
  instagram = "instagram",
8
8
  youtube = "youtube",
9
- x = "x"
9
+ x = "x",
10
+ linkedin = "linkedin"
10
11
  }
11
12
  export interface SocialMediaI {
12
13
  type: SocialMediaType;
@@ -12,4 +12,5 @@ var SocialMediaType;
12
12
  SocialMediaType["instagram"] = "instagram";
13
13
  SocialMediaType["youtube"] = "youtube";
14
14
  SocialMediaType["x"] = "x";
15
+ SocialMediaType["linkedin"] = "linkedin";
15
16
  })(SocialMediaType = exports.SocialMediaType || (exports.SocialMediaType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.226",
3
+ "version": "1.0.227",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",