squarefi-bff-api-module 1.27.4 → 1.27.6

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.
@@ -1,5 +1,6 @@
1
+ import { API } from './types/types';
1
2
  export declare const tenants: {
2
3
  config: {
3
- get: () => Promise<unknown>;
4
+ get: () => Promise<API.Tenant.Config>;
4
5
  };
5
6
  };
@@ -312,26 +312,6 @@ export interface paths {
312
312
  patch: operations["AuthenticatedUserController_changePhone"];
313
313
  trace?: never;
314
314
  };
315
- "/tenant/config": {
316
- parameters: {
317
- query?: never;
318
- header?: never;
319
- path?: never;
320
- cookie?: never;
321
- };
322
- /**
323
- * Current tenant config
324
- * @deprecated
325
- */
326
- get: operations["TenantsConfigsController_getTenantConfig"];
327
- put?: never;
328
- post?: never;
329
- delete?: never;
330
- options?: never;
331
- head?: never;
332
- patch?: never;
333
- trace?: never;
334
- };
335
315
  "/wallets": {
336
316
  parameters: {
337
317
  query?: never;
@@ -1003,22 +983,6 @@ export interface paths {
1003
983
  patch?: never;
1004
984
  trace?: never;
1005
985
  };
1006
- "/load-data-from-hifibridge": {
1007
- parameters: {
1008
- query?: never;
1009
- header?: never;
1010
- path?: never;
1011
- cookie?: never;
1012
- };
1013
- get?: never;
1014
- put?: never;
1015
- post: operations["LoadDataFromHifibridgeController_syncData"];
1016
- delete?: never;
1017
- options?: never;
1018
- head?: never;
1019
- patch?: never;
1020
- trace?: never;
1021
- };
1022
986
  "/persona-admin/{wallet_id}": {
1023
987
  parameters: {
1024
988
  query?: never;
@@ -1222,17 +1186,6 @@ export interface components {
1222
1186
  /** @description Verification code */
1223
1187
  token: string;
1224
1188
  };
1225
- TenantConfigEntity: {
1226
- tenant_id: string;
1227
- /** @enum {string} */
1228
- default_theme_mode: "dark" | "light";
1229
- enable_kyc: boolean;
1230
- tg_bot_name: string | null;
1231
- theme_switch: boolean;
1232
- enable_exchange: boolean;
1233
- enable_auto_exchange: boolean;
1234
- enable_crypto_withdrawal: boolean;
1235
- };
1236
1189
  PaginationResponseDto: {
1237
1190
  /** @example 20 */
1238
1191
  total: number;
@@ -2161,6 +2114,10 @@ export interface components {
2161
2114
  UpdateCounterpartyDestinationDto: {
2162
2115
  nickname?: string | null;
2163
2116
  };
2117
+ MetricsDataEntity: {
2118
+ readonly yandex_metric_id?: string;
2119
+ readonly google_analytics_id?: string;
2120
+ };
2164
2121
  SystemConfigDto: {
2165
2122
  /** @enum {string} */
2166
2123
  default_theme_mode: "dark" | "light";
@@ -2170,6 +2127,7 @@ export interface components {
2170
2127
  enable_exchange: boolean;
2171
2128
  enable_auto_exchange: boolean;
2172
2129
  enable_crypto_withdrawal: boolean;
2130
+ readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
2173
2131
  base_currency: string;
2174
2132
  };
2175
2133
  SystemChainsResponseDto: {
@@ -2232,12 +2190,6 @@ export interface components {
2232
2190
  /** @description Has more data flag */
2233
2191
  readonly has_more: boolean;
2234
2192
  };
2235
- SyncDataFromHifibridgeDto: {
2236
- /** @description Wallet to load data from Hifibridge */
2237
- wallet_id: string;
2238
- /** @description Hifibridge ID to load data to wallet */
2239
- hifibridge_id: string;
2240
- };
2241
2193
  BankDataAddressDto: {
2242
2194
  city?: string | null;
2243
2195
  country_id?: number | null;
@@ -2907,33 +2859,6 @@ export interface operations {
2907
2859
  };
2908
2860
  };
2909
2861
  };
2910
- TenantsConfigsController_getTenantConfig: {
2911
- parameters: {
2912
- query?: never;
2913
- header?: never;
2914
- path?: never;
2915
- cookie?: never;
2916
- };
2917
- requestBody?: never;
2918
- responses: {
2919
- /** @description Authenticated tenant config */
2920
- 200: {
2921
- headers: {
2922
- [name: string]: unknown;
2923
- };
2924
- content: {
2925
- "application/json": components["schemas"]["TenantConfigEntity"];
2926
- };
2927
- };
2928
- /** @description Invalid tenant */
2929
- 401: {
2930
- headers: {
2931
- [name: string]: unknown;
2932
- };
2933
- content?: never;
2934
- };
2935
- };
2936
- };
2937
2862
  WalletsController_all: {
2938
2863
  parameters: {
2939
2864
  query?: never;
@@ -4730,27 +4655,6 @@ export interface operations {
4730
4655
  };
4731
4656
  };
4732
4657
  };
4733
- LoadDataFromHifibridgeController_syncData: {
4734
- parameters: {
4735
- query?: never;
4736
- header?: never;
4737
- path?: never;
4738
- cookie?: never;
4739
- };
4740
- requestBody: {
4741
- content: {
4742
- "application/json": components["schemas"]["SyncDataFromHifibridgeDto"];
4743
- };
4744
- };
4745
- responses: {
4746
- 201: {
4747
- headers: {
4748
- [name: string]: unknown;
4749
- };
4750
- content?: never;
4751
- };
4752
- };
4753
- };
4754
4658
  PersonaAdminController_syncKycEntityWithPersona: {
4755
4659
  parameters: {
4756
4660
  query?: never;
@@ -1404,7 +1404,7 @@ export declare namespace API {
1404
1404
  wallet_account_id: string;
1405
1405
  }
1406
1406
  interface OrderWithVirtualAccountParams extends BaseOrderParams {
1407
- virtual_account_id: string;
1407
+ virtual_account_id?: string;
1408
1408
  }
1409
1409
  interface OrderWithSubAccountParams extends BaseOrderParams {
1410
1410
  sub_account_id: string;
@@ -1601,6 +1601,9 @@ export declare namespace API {
1601
1601
  }
1602
1602
  }
1603
1603
  }
1604
+ namespace Tenant {
1605
+ type Config = components['schemas']['SystemConfigDto'];
1606
+ }
1604
1607
  namespace TOTP {
1605
1608
  namespace OTPVerification {
1606
1609
  type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.27.4",
3
+ "version": "1.27.6",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,8 @@
1
1
  import { apiClientV2 } from '../utils/apiClientFactory';
2
+ import { API } from './types/types';
2
3
 
3
4
  export const tenants = {
4
5
  config: {
5
- get: () => apiClientV2.getRequest('/system/config'),
6
+ get: (): Promise<API.Tenant.Config> => apiClientV2.getRequest<API.Tenant.Config>('/system/config'),
6
7
  },
7
8
  };
@@ -313,26 +313,6 @@ export interface paths {
313
313
  patch: operations["AuthenticatedUserController_changePhone"];
314
314
  trace?: never;
315
315
  };
316
- "/tenant/config": {
317
- parameters: {
318
- query?: never;
319
- header?: never;
320
- path?: never;
321
- cookie?: never;
322
- };
323
- /**
324
- * Current tenant config
325
- * @deprecated
326
- */
327
- get: operations["TenantsConfigsController_getTenantConfig"];
328
- put?: never;
329
- post?: never;
330
- delete?: never;
331
- options?: never;
332
- head?: never;
333
- patch?: never;
334
- trace?: never;
335
- };
336
316
  "/wallets": {
337
317
  parameters: {
338
318
  query?: never;
@@ -1004,22 +984,6 @@ export interface paths {
1004
984
  patch?: never;
1005
985
  trace?: never;
1006
986
  };
1007
- "/load-data-from-hifibridge": {
1008
- parameters: {
1009
- query?: never;
1010
- header?: never;
1011
- path?: never;
1012
- cookie?: never;
1013
- };
1014
- get?: never;
1015
- put?: never;
1016
- post: operations["LoadDataFromHifibridgeController_syncData"];
1017
- delete?: never;
1018
- options?: never;
1019
- head?: never;
1020
- patch?: never;
1021
- trace?: never;
1022
- };
1023
987
  "/persona-admin/{wallet_id}": {
1024
988
  parameters: {
1025
989
  query?: never;
@@ -1223,17 +1187,6 @@ export interface components {
1223
1187
  /** @description Verification code */
1224
1188
  token: string;
1225
1189
  };
1226
- TenantConfigEntity: {
1227
- tenant_id: string;
1228
- /** @enum {string} */
1229
- default_theme_mode: "dark" | "light";
1230
- enable_kyc: boolean;
1231
- tg_bot_name: string | null;
1232
- theme_switch: boolean;
1233
- enable_exchange: boolean;
1234
- enable_auto_exchange: boolean;
1235
- enable_crypto_withdrawal: boolean;
1236
- };
1237
1190
  PaginationResponseDto: {
1238
1191
  /** @example 20 */
1239
1192
  total: number;
@@ -2162,6 +2115,10 @@ export interface components {
2162
2115
  UpdateCounterpartyDestinationDto: {
2163
2116
  nickname?: string | null;
2164
2117
  };
2118
+ MetricsDataEntity: {
2119
+ readonly yandex_metric_id?: string;
2120
+ readonly google_analytics_id?: string;
2121
+ };
2165
2122
  SystemConfigDto: {
2166
2123
  /** @enum {string} */
2167
2124
  default_theme_mode: "dark" | "light";
@@ -2171,6 +2128,7 @@ export interface components {
2171
2128
  enable_exchange: boolean;
2172
2129
  enable_auto_exchange: boolean;
2173
2130
  enable_crypto_withdrawal: boolean;
2131
+ readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
2174
2132
  base_currency: string;
2175
2133
  };
2176
2134
  SystemChainsResponseDto: {
@@ -2233,12 +2191,6 @@ export interface components {
2233
2191
  /** @description Has more data flag */
2234
2192
  readonly has_more: boolean;
2235
2193
  };
2236
- SyncDataFromHifibridgeDto: {
2237
- /** @description Wallet to load data from Hifibridge */
2238
- wallet_id: string;
2239
- /** @description Hifibridge ID to load data to wallet */
2240
- hifibridge_id: string;
2241
- };
2242
2194
  BankDataAddressDto: {
2243
2195
  city?: string | null;
2244
2196
  country_id?: number | null;
@@ -2908,33 +2860,6 @@ export interface operations {
2908
2860
  };
2909
2861
  };
2910
2862
  };
2911
- TenantsConfigsController_getTenantConfig: {
2912
- parameters: {
2913
- query?: never;
2914
- header?: never;
2915
- path?: never;
2916
- cookie?: never;
2917
- };
2918
- requestBody?: never;
2919
- responses: {
2920
- /** @description Authenticated tenant config */
2921
- 200: {
2922
- headers: {
2923
- [name: string]: unknown;
2924
- };
2925
- content: {
2926
- "application/json": components["schemas"]["TenantConfigEntity"];
2927
- };
2928
- };
2929
- /** @description Invalid tenant */
2930
- 401: {
2931
- headers: {
2932
- [name: string]: unknown;
2933
- };
2934
- content?: never;
2935
- };
2936
- };
2937
- };
2938
2863
  WalletsController_all: {
2939
2864
  parameters: {
2940
2865
  query?: never;
@@ -4731,27 +4656,6 @@ export interface operations {
4731
4656
  };
4732
4657
  };
4733
4658
  };
4734
- LoadDataFromHifibridgeController_syncData: {
4735
- parameters: {
4736
- query?: never;
4737
- header?: never;
4738
- path?: never;
4739
- cookie?: never;
4740
- };
4741
- requestBody: {
4742
- content: {
4743
- "application/json": components["schemas"]["SyncDataFromHifibridgeDto"];
4744
- };
4745
- };
4746
- responses: {
4747
- 201: {
4748
- headers: {
4749
- [name: string]: unknown;
4750
- };
4751
- content?: never;
4752
- };
4753
- };
4754
- };
4755
4659
  PersonaAdminController_syncKycEntityWithPersona: {
4756
4660
  parameters: {
4757
4661
  query?: never;
@@ -19,7 +19,7 @@ import {
19
19
  WalletTransactionType,
20
20
  } from '../../constants';
21
21
  import { WalletType } from '../..';
22
- import { components, operations } from './autogen/apiV2.types';
22
+ import { components, operations, paths } from './autogen/apiV2.types';
23
23
 
24
24
  export namespace API {
25
25
  export namespace Auth {
@@ -1862,7 +1862,7 @@ export namespace API {
1862
1862
  }
1863
1863
 
1864
1864
  export interface OrderWithVirtualAccountParams extends BaseOrderParams {
1865
- virtual_account_id: string;
1865
+ virtual_account_id?: string;
1866
1866
  }
1867
1867
 
1868
1868
  export interface OrderWithSubAccountParams extends BaseOrderParams {
@@ -2067,6 +2067,10 @@ export namespace API {
2067
2067
  }
2068
2068
  }
2069
2069
 
2070
+ export namespace Tenant {
2071
+ export type Config = components['schemas']['SystemConfigDto'];
2072
+ }
2073
+
2070
2074
  export namespace TOTP {
2071
2075
  export namespace OTPVerification {
2072
2076
  export type OTPVerificationChannelType = 'EMAIL' | 'SMS' | 'TOTP' | 'APP' | 'TG_TEST';