@riocrypto/common-server 1.0.2457 → 1.0.2459
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.
|
@@ -55,7 +55,7 @@ declare class ClusterClient {
|
|
|
55
55
|
checkBankPayment(orderId: string): Promise<void>;
|
|
56
56
|
checkCryptoPayment(orderId: string): Promise<void>;
|
|
57
57
|
createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
|
|
58
|
-
createAuthWithoutRegistration({ phoneNumber, firstName, lastName, role, permissions, telegramUsername, telegramUserId, }: {
|
|
58
|
+
createAuthWithoutRegistration({ phoneNumber, firstName, lastName, role, permissions, telegramUsername, telegramUserId, slackUsername, }: {
|
|
59
59
|
phoneNumber: string;
|
|
60
60
|
firstName: string;
|
|
61
61
|
lastName: string;
|
|
@@ -63,6 +63,7 @@ declare class ClusterClient {
|
|
|
63
63
|
permissions?: AuthPermission[];
|
|
64
64
|
telegramUsername?: string;
|
|
65
65
|
telegramUserId?: string;
|
|
66
|
+
slackUsername?: string;
|
|
66
67
|
}): Promise<Auth>;
|
|
67
68
|
getLiquidityAvailable(): Promise<{
|
|
68
69
|
buy: number;
|
|
@@ -229,7 +229,7 @@ class ClusterClient {
|
|
|
229
229
|
return response.data;
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
createAuthWithoutRegistration({ phoneNumber, firstName, lastName, role, permissions, telegramUsername, telegramUserId, }) {
|
|
232
|
+
createAuthWithoutRegistration({ phoneNumber, firstName, lastName, role, permissions, telegramUsername, telegramUserId, slackUsername, }) {
|
|
233
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
234
|
const response = yield this.axios.post(`${this.baseUrl}/api/auth/unregistered`, {
|
|
235
235
|
phoneNumber,
|
|
@@ -241,6 +241,9 @@ class ClusterClient {
|
|
|
241
241
|
username: telegramUsername,
|
|
242
242
|
telegramUserId: telegramUserId,
|
|
243
243
|
},
|
|
244
|
+
slack: {
|
|
245
|
+
username: slackUsername,
|
|
246
|
+
},
|
|
244
247
|
}, {
|
|
245
248
|
headers: {
|
|
246
249
|
"x-cluster-api-key": this.clusterApiKey,
|
|
@@ -29,7 +29,11 @@ const getOrderFromReference = (reference, mongoose) => __awaiter(void 0, void 0,
|
|
|
29
29
|
],
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
|
-
const order = orders.find((order) =>
|
|
32
|
+
const order = orders.find((order) => {
|
|
33
|
+
const orderId = order.id.toString().toLowerCase();
|
|
34
|
+
const last6Chars = orderId.slice(-6);
|
|
35
|
+
return referenceText.includes(last6Chars);
|
|
36
|
+
});
|
|
33
37
|
if (!order) {
|
|
34
38
|
throw new Error("Order not found");
|
|
35
39
|
}
|