@konplit-services/common 1.5.0 → 1.6.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.
@@ -255,6 +255,7 @@ declare class AppConfigs {
255
255
  getVirtualAccountDBURI(): string;
256
256
  getWalletDBURI(): string;
257
257
  getAdminWebUrl(): string;
258
+ getClientAppUrl(): string;
258
259
  getNATSURI(): string;
259
260
  getWebsiteDBURI(): string;
260
261
  getSettlementDBURI(): string;
@@ -113,6 +113,12 @@ class AppConfigs {
113
113
  }
114
114
  return this.env.ADMIN_WEB_URL;
115
115
  }
116
+ getClientAppUrl() {
117
+ if (!this.env.CLIENT_APP_URL) {
118
+ throw new Error("CLIENT_APP_URL is required");
119
+ }
120
+ return this.env.CLIENT_APP_URL;
121
+ }
116
122
  getNATSURI() {
117
123
  if (!this.env.NATS_URI) {
118
124
  throw new Error("NATS_URI is required");
@@ -175,6 +175,7 @@ export interface TokenVerificationTemplateData extends EmailBase {
175
175
  export interface MerchantInvitationTemplateData extends EmailBase {
176
176
  merchant_name: string;
177
177
  to: string;
178
+ url?: string;
178
179
  }
179
180
  export interface CustomerWelcomeTemplateData extends EmailBase {
180
181
  first_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",