@riocrypto/common-server 1.0.2240 → 1.0.2242
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.
|
@@ -61,6 +61,7 @@ declare class ClusterClient {
|
|
|
61
61
|
resetOrderFXData(orderId: string): Promise<void>;
|
|
62
62
|
deleteInvoice(id: string): Promise<void>;
|
|
63
63
|
deleteRecord(id: string): Promise<void>;
|
|
64
|
+
createRecord(orderId: string, force: boolean): Promise<void>;
|
|
64
65
|
registerUserWithCoincover(userId: string): Promise<void>;
|
|
65
66
|
importOrder(orderToImport: ImportOrderData): Promise<void>;
|
|
66
67
|
createInternalTransfer({ amount, currency, origin, destination, liquidityAutomationId, }: {
|
|
@@ -375,6 +375,15 @@ class ClusterClient {
|
|
|
375
375
|
});
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
+
createRecord(orderId, force) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
yield this.axios.post(`${this.baseUrl}/api/records`, { orderId, force }, {
|
|
381
|
+
headers: {
|
|
382
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
383
|
+
},
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
}
|
|
378
387
|
registerUserWithCoincover(userId) {
|
|
379
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
380
389
|
yield this.axios.post(`${this.baseUrl}/api/users/${userId}/coincover`, {}, {
|
|
@@ -82,16 +82,16 @@ class SecretManagerClient {
|
|
|
82
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
83
|
let file;
|
|
84
84
|
if (this.env === common_1.RioEnv.Development) {
|
|
85
|
-
file = "dev-secrets";
|
|
85
|
+
file = "dev-secrets-2";
|
|
86
86
|
}
|
|
87
87
|
else if (this.env === common_1.RioEnv.Sandbox || this.env === common_1.RioEnv.Local) {
|
|
88
|
-
file = "sandbox-secrets";
|
|
88
|
+
file = "sandbox-secrets-2";
|
|
89
89
|
}
|
|
90
90
|
else if (this.env === common_1.RioEnv.Test) {
|
|
91
|
-
file = "test-secrets";
|
|
91
|
+
file = "test-secrets-2";
|
|
92
92
|
}
|
|
93
93
|
else if (this.env === common_1.RioEnv.Production) {
|
|
94
|
-
file = "production-secrets";
|
|
94
|
+
file = "production-secrets-2";
|
|
95
95
|
}
|
|
96
96
|
const maxRetries = 5;
|
|
97
97
|
let attempt = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2242",
|
|
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.
|
|
31
|
+
"@riocrypto/common": "^1.0.1971",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|