squarefi-bff-api-module 1.34.2 → 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;
@@ -119,7 +119,8 @@ export declare enum OrderType {
119
119
  OMNIBUS_CRYPTO_WITHDRAWAL = "OMNIBUS_CRYPTO_WITHDRAWAL",
120
120
  OMNIBUS_INTERNAL_TRANSFER = "OMNIBUS_INTERNAL_TRANSFER",
121
121
  WITHDRAW_CARD_PREPAID = "WITHDRAW_CARD_PREPAID",
122
- WITHDRAW_CARD_SUBACCOUNT = "WITHDRAW_CARD_SUBACCOUNT"
122
+ WITHDRAW_CARD_SUBACCOUNT = "WITHDRAW_CARD_SUBACCOUNT",
123
+ AUTO_CONVERT_CRYPTO = "AUTO_CONVERT_CRYPTO"
123
124
  }
124
125
  export declare enum WalletTransactionRecordType {
125
126
  CARD_PROVIDER_DEPOSIT = "CARD_PROVIDER_DEPOSIT",
@@ -187,7 +188,8 @@ export declare enum WalletTransactionRecordType {
187
188
  HIFI_SEPA_WITHDRAWAL = "HIFI_SEPA_WITHDRAWAL",
188
189
  HIFI_CRYPTO_TRANSFER = "HIFI_CRYPTO_TRANSFER",
189
190
  HIFI_CRYPTO_WITHDRAWAL = "HIFI_CRYPTO_WITHDRAWAL",
190
- HIFI_CRYPTO_DEPOSIT = "HIFI_CRYPTO_DEPOSIT"
191
+ HIFI_CRYPTO_DEPOSIT = "HIFI_CRYPTO_DEPOSIT",
192
+ AUTO_CONVERT_CRYPTO = "AUTO_CONVERT_CRYPTO"
191
193
  }
192
194
  export declare enum RequestStatus {
193
195
  NONE = "none",
package/dist/constants.js CHANGED
@@ -121,6 +121,7 @@ export var OrderType;
121
121
  OrderType["OMNIBUS_INTERNAL_TRANSFER"] = "OMNIBUS_INTERNAL_TRANSFER";
122
122
  OrderType["WITHDRAW_CARD_PREPAID"] = "WITHDRAW_CARD_PREPAID";
123
123
  OrderType["WITHDRAW_CARD_SUBACCOUNT"] = "WITHDRAW_CARD_SUBACCOUNT";
124
+ OrderType["AUTO_CONVERT_CRYPTO"] = "AUTO_CONVERT_CRYPTO";
124
125
  })(OrderType || (OrderType = {}));
125
126
  export var WalletTransactionRecordType;
126
127
  (function (WalletTransactionRecordType) {
@@ -190,6 +191,7 @@ export var WalletTransactionRecordType;
190
191
  WalletTransactionRecordType["HIFI_CRYPTO_TRANSFER"] = "HIFI_CRYPTO_TRANSFER";
191
192
  WalletTransactionRecordType["HIFI_CRYPTO_WITHDRAWAL"] = "HIFI_CRYPTO_WITHDRAWAL";
192
193
  WalletTransactionRecordType["HIFI_CRYPTO_DEPOSIT"] = "HIFI_CRYPTO_DEPOSIT";
194
+ WalletTransactionRecordType["AUTO_CONVERT_CRYPTO"] = "AUTO_CONVERT_CRYPTO";
193
195
  })(WalletTransactionRecordType || (WalletTransactionRecordType = {}));
194
196
  export var RequestStatus;
195
197
  (function (RequestStatus) {
@@ -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.2",
3
+ "version": "1.34.4",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",