squarefi-bff-api-module 1.24.29 → 1.24.31
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.
- package/dist/api/types/types.d.ts +3 -48
- package/package.json +1 -1
- package/src/api/types/types.ts +4 -49
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus,
|
|
1
|
+
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
|
|
2
2
|
import { WalletType } from '../..';
|
|
3
3
|
import { components, operations } from './autogen/apiV2.types';
|
|
4
4
|
export declare namespace API {
|
|
@@ -21,31 +21,6 @@ export declare namespace API {
|
|
|
21
21
|
access_token: string;
|
|
22
22
|
refresh_token: string;
|
|
23
23
|
}
|
|
24
|
-
namespace UserData {
|
|
25
|
-
namespace Update {
|
|
26
|
-
interface Request {
|
|
27
|
-
default_currency: string;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
interface UserData {
|
|
31
|
-
id: number;
|
|
32
|
-
created_at: string;
|
|
33
|
-
user_id: string;
|
|
34
|
-
kyc_status: KYCStatuses | string;
|
|
35
|
-
kyc_date: string;
|
|
36
|
-
turnover_limit?: number;
|
|
37
|
-
default_currency: string;
|
|
38
|
-
tenant_id: string;
|
|
39
|
-
user_group_id: string;
|
|
40
|
-
is_developer: boolean;
|
|
41
|
-
can_invite: boolean;
|
|
42
|
-
total_turnover: {
|
|
43
|
-
onramp: number;
|
|
44
|
-
offramp: number;
|
|
45
|
-
total: number;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
24
|
namespace Update {
|
|
50
25
|
namespace Phone {
|
|
51
26
|
interface Request {
|
|
@@ -2438,30 +2413,10 @@ export declare namespace API {
|
|
|
2438
2413
|
};
|
|
2439
2414
|
}
|
|
2440
2415
|
namespace TransactionList {
|
|
2441
|
-
type Request = {
|
|
2416
|
+
type Request = operations['WalletsTransactionsController_viewTransactionsByWallet']['parameters']['query'] & {
|
|
2442
2417
|
wallet_uuid: string;
|
|
2443
|
-
limit?: number;
|
|
2444
|
-
offset?: number;
|
|
2445
|
-
filter?: {
|
|
2446
|
-
created_at?: string;
|
|
2447
|
-
from?: string;
|
|
2448
|
-
status?: WalletTransactionStatus;
|
|
2449
|
-
to?: string;
|
|
2450
|
-
type?: WalletTransactionType;
|
|
2451
|
-
method?: WalletTransactionMethod;
|
|
2452
|
-
record_type?: WalletTransactionRecordType;
|
|
2453
|
-
'currency.uuid'?: string;
|
|
2454
|
-
'meta.billing_amount_currency'?: string;
|
|
2455
|
-
'meta.transaction_amount_currency'?: string;
|
|
2456
|
-
address?: string;
|
|
2457
|
-
from_created_at?: string;
|
|
2458
|
-
to_created_at?: string;
|
|
2459
|
-
};
|
|
2460
|
-
};
|
|
2461
|
-
type Response = {
|
|
2462
|
-
total: number;
|
|
2463
|
-
data: Transaction[];
|
|
2464
2418
|
};
|
|
2419
|
+
type Response = operations['WalletsTransactionsController_viewTransactionsByWallet']['responses']['200'];
|
|
2465
2420
|
}
|
|
2466
2421
|
}
|
|
2467
2422
|
}
|
package/package.json
CHANGED
package/src/api/types/types.ts
CHANGED
|
@@ -45,32 +45,6 @@ export namespace API {
|
|
|
45
45
|
access_token: string;
|
|
46
46
|
refresh_token: string;
|
|
47
47
|
}
|
|
48
|
-
export namespace UserData {
|
|
49
|
-
export namespace Update {
|
|
50
|
-
export interface Request {
|
|
51
|
-
default_currency: string;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface UserData {
|
|
56
|
-
id: number;
|
|
57
|
-
created_at: string;
|
|
58
|
-
user_id: string;
|
|
59
|
-
kyc_status: KYCStatuses | string;
|
|
60
|
-
kyc_date: string;
|
|
61
|
-
turnover_limit?: number;
|
|
62
|
-
default_currency: string;
|
|
63
|
-
tenant_id: string;
|
|
64
|
-
user_group_id: string;
|
|
65
|
-
is_developer: boolean;
|
|
66
|
-
can_invite: boolean;
|
|
67
|
-
total_turnover: {
|
|
68
|
-
onramp: number;
|
|
69
|
-
offramp: number;
|
|
70
|
-
total: number;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
48
|
|
|
75
49
|
export namespace Update {
|
|
76
50
|
export namespace Phone {
|
|
@@ -2844,30 +2818,11 @@ export namespace API {
|
|
|
2844
2818
|
}
|
|
2845
2819
|
|
|
2846
2820
|
export namespace TransactionList {
|
|
2847
|
-
export type Request =
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
offset?: number;
|
|
2851
|
-
filter?: {
|
|
2852
|
-
created_at?: string;
|
|
2853
|
-
from?: string;
|
|
2854
|
-
status?: WalletTransactionStatus;
|
|
2855
|
-
to?: string;
|
|
2856
|
-
type?: WalletTransactionType;
|
|
2857
|
-
method?: WalletTransactionMethod;
|
|
2858
|
-
record_type?: WalletTransactionRecordType;
|
|
2859
|
-
'currency.uuid'?: string;
|
|
2860
|
-
'meta.billing_amount_currency'?: string;
|
|
2861
|
-
'meta.transaction_amount_currency'?: string;
|
|
2862
|
-
address?: string;
|
|
2863
|
-
from_created_at?: string;
|
|
2864
|
-
to_created_at?: string;
|
|
2821
|
+
export type Request =
|
|
2822
|
+
operations['WalletsTransactionsController_viewTransactionsByWallet']['parameters']['query'] & {
|
|
2823
|
+
wallet_uuid: string;
|
|
2865
2824
|
};
|
|
2866
|
-
|
|
2867
|
-
export type Response = {
|
|
2868
|
-
total: number;
|
|
2869
|
-
data: Transaction[];
|
|
2870
|
-
};
|
|
2825
|
+
export type Response = operations['WalletsTransactionsController_viewTransactionsByWallet']['responses']['200'];
|
|
2871
2826
|
}
|
|
2872
2827
|
}
|
|
2873
2828
|
}
|