@riocrypto/common-server 1.0.1413 → 1.0.1414

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.
@@ -27,6 +27,7 @@ declare class ClusterClient {
27
27
  hasAuthenticatorEnabled: boolean;
28
28
  }>;
29
29
  verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
30
+ sendVerificationEmail(userId: string, country?: Country): Promise<void>;
30
31
  }
31
32
  export declare const buildClusterClient: () => Promise<ClusterClient>;
32
33
  export {};
@@ -217,6 +217,18 @@ class ClusterClient {
217
217
  });
218
218
  });
219
219
  }
220
+ sendVerificationEmail(userId, country) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ yield this.axios.post(`${this.baseUrl}/api/kyc/email`, {
223
+ userId,
224
+ country,
225
+ }, {
226
+ headers: {
227
+ "x-cluster-api-key": this.clusterApiKey,
228
+ },
229
+ });
230
+ });
231
+ }
220
232
  }
221
233
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
222
234
  // Retrieve secrets asynchronously
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1413",
3
+ "version": "1.0.1414",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
- "@riocrypto/common": "^1.0.1246",
30
+ "@riocrypto/common": "^1.0.1248",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",