@riocrypto/common-server 1.0.2170 → 1.0.2171

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.
@@ -21,7 +21,7 @@ declare class ClusterClient {
21
21
  }): Promise<Order>;
22
22
  confirmPayment(orderId: string): Promise<void>;
23
23
  createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
24
- createAuthWithoutRegistration(phoneNumber: string, firstName: string, lastName: string, role?: AuthRole): Promise<Auth>;
24
+ createAuthWithoutRegistration(phoneNumber: string, firstName: string, lastName: string, role?: AuthRole, telegramUsername?: string, telegramUserId?: string): Promise<Auth>;
25
25
  getLiquidityAvailable(): Promise<{
26
26
  buy: number;
27
27
  sell: number;
@@ -186,13 +186,17 @@ class ClusterClient {
186
186
  return response.data;
187
187
  });
188
188
  }
189
- createAuthWithoutRegistration(phoneNumber, firstName, lastName, role) {
189
+ createAuthWithoutRegistration(phoneNumber, firstName, lastName, role, telegramUsername, telegramUserId) {
190
190
  return __awaiter(this, void 0, void 0, function* () {
191
191
  const response = yield this.axios.post(`${this.baseUrl}/api/auth/unregistered`, {
192
192
  phoneNumber,
193
193
  firstName,
194
194
  lastName,
195
195
  role,
196
+ telegram: {
197
+ username: telegramUsername,
198
+ telegramUserId: telegramUserId,
199
+ },
196
200
  }, {
197
201
  headers: {
198
202
  "x-cluster-api-key": this.clusterApiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2170",
3
+ "version": "1.0.2171",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",