@riocrypto/common-server 1.0.2102 → 1.0.2103

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.
@@ -54,6 +54,13 @@ declare class ClusterClient {
54
54
  destination: TreasuryProvider;
55
55
  liquidityAutomationId: string;
56
56
  }): Promise<void>;
57
+ createCEPLink({ date, SPEITrackingNumber, senderCLABE, receiverCLABE, amount, }: {
58
+ date: string;
59
+ SPEITrackingNumber: string;
60
+ senderCLABE: string;
61
+ receiverCLABE: string;
62
+ amount: number;
63
+ }): Promise<string>;
57
64
  }
58
65
  export declare const buildClusterClient: () => Promise<ClusterClient>;
59
66
  export {};
@@ -373,6 +373,23 @@ class ClusterClient {
373
373
  });
374
374
  });
375
375
  }
376
+ createCEPLink({ date, SPEITrackingNumber, senderCLABE, receiverCLABE, amount, }) {
377
+ var _a;
378
+ return __awaiter(this, void 0, void 0, function* () {
379
+ const response = yield this.axios.post(`${this.baseUrl}/api/cep`, {
380
+ date,
381
+ SPEITrackingNumber,
382
+ senderCLABE,
383
+ receiverCLABE,
384
+ amount,
385
+ }, {
386
+ headers: {
387
+ "x-cluster-api-key": this.clusterApiKey,
388
+ },
389
+ });
390
+ return (_a = response.data) === null || _a === void 0 ? void 0 : _a.url;
391
+ });
392
+ }
376
393
  }
377
394
  const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
378
395
  // Retrieve secrets asynchronously
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2102",
3
+ "version": "1.0.2103",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.1870",
31
+ "@riocrypto/common": "^1.0.1875",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",