@riocrypto/common-server 1.0.1739 → 1.0.1740
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.
|
@@ -35,6 +35,8 @@ declare class ClusterClient {
|
|
|
35
35
|
sendVerificationEmail(userId: string, country?: Country): Promise<void>;
|
|
36
36
|
registerFXTrade(orderId: string, amount: number, price: number): Promise<void>;
|
|
37
37
|
resetOrderFXData(orderId: string): Promise<void>;
|
|
38
|
+
deleteInvoice(id: string): Promise<void>;
|
|
39
|
+
deleteRecord(id: string): Promise<void>;
|
|
38
40
|
}
|
|
39
41
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
40
42
|
export {};
|
|
@@ -292,6 +292,24 @@ class ClusterClient {
|
|
|
292
292
|
});
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
+
deleteInvoice(id) {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
yield this.axios.delete(`${this.baseUrl}/api/invoices/${id}`, {
|
|
298
|
+
headers: {
|
|
299
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
deleteRecord(id) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
+
yield this.axios.delete(`${this.baseUrl}/api/records/${id}`, {
|
|
307
|
+
headers: {
|
|
308
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
309
|
+
},
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
}
|
|
295
313
|
}
|
|
296
314
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
297
315
|
// Retrieve secrets asynchronously
|