squarefi-bff-api-module 1.34.3 → 1.34.4

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.
@@ -1273,12 +1273,8 @@ export interface components {
1273
1273
  };
1274
1274
  TelegramSignUpByPhoneDto: {
1275
1275
  phone: string;
1276
- tg_id: string;
1277
- first_name: string;
1278
- last_name: string;
1279
1276
  hash: string;
1280
1277
  init_data_raw: string;
1281
- username: string;
1282
1278
  invite_code?: string;
1283
1279
  referrer?: string;
1284
1280
  };
@@ -1292,7 +1288,6 @@ export interface components {
1292
1288
  refresh_token?: string | null;
1293
1289
  };
1294
1290
  TelegramSignInByTgIdDto: {
1295
- tg_id: string;
1296
1291
  hash: string;
1297
1292
  init_data_raw: string;
1298
1293
  };
@@ -1335,6 +1330,7 @@ export interface components {
1335
1330
  UserDataEntity: {
1336
1331
  can_invite: boolean;
1337
1332
  created_at: string;
1333
+ /** @deprecated */
1338
1334
  id: number;
1339
1335
  kyc_date: string | null;
1340
1336
  /**
@@ -1355,6 +1351,7 @@ export interface components {
1355
1351
  logo_url?: string | null;
1356
1352
  /** @description ISO 3166-1 alpha-2 country code */
1357
1353
  nationality?: string | null;
1354
+ readonly uuid: string;
1358
1355
  readonly email: string | null;
1359
1356
  readonly phone: string | null;
1360
1357
  };
@@ -2363,6 +2360,7 @@ export interface components {
2363
2360
  readonly has_more: boolean;
2364
2361
  };
2365
2362
  WalletUserInfoDto: {
2363
+ /** @deprecated */
2366
2364
  id: number;
2367
2365
  first_name?: string | null;
2368
2366
  last_name?: string | null;
@@ -18,14 +18,12 @@ export async function refreshTokens() {
18
18
  }
19
19
  if (isTMA()) {
20
20
  initData.restore();
21
- const tg_id = initData.user()?.id;
22
21
  const hash = initData.hash();
23
22
  const init_data_raw = initData.raw();
24
- if (!tg_id || !hash || !init_data_raw) {
23
+ if (!hash || !init_data_raw) {
25
24
  return Promise.reject(new Error('No TG ID, hash or init data raw found in tokensFactory'));
26
25
  }
27
26
  const telegramSignInResponse = await auth.signin.telegram({
28
- tg_id: tg_id.toString(),
29
27
  hash,
30
28
  init_data_raw,
31
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.34.3",
3
+ "version": "1.34.4",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",