@riocrypto/common-server 1.0.1761 → 1.0.1762

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.
@@ -37,6 +37,7 @@ declare class ClusterClient {
37
37
  resetOrderFXData(orderId: string): Promise<void>;
38
38
  deleteInvoice(id: string): Promise<void>;
39
39
  deleteRecord(id: string): Promise<void>;
40
+ registerUserWithCoincover(userId: string): Promise<void>;
40
41
  }
41
42
  export declare const buildClusterClient: () => Promise<ClusterClient>;
42
43
  export {};
@@ -310,6 +310,15 @@ class ClusterClient {
310
310
  });
311
311
  });
312
312
  }
313
+ registerUserWithCoincover(userId) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ yield this.axios.post(`${this.baseUrl}/api/users/${userId}/coincover`, {}, {
316
+ headers: {
317
+ "x-cluster-api-key": this.clusterApiKey,
318
+ },
319
+ });
320
+ });
321
+ }
313
322
  }
314
323
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
315
324
  // Retrieve secrets asynchronously
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1761",
3
+ "version": "1.0.1762",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1550",
29
+ "@riocrypto/common": "^1.0.1551",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",