squarefi-bff-api-module 1.10.1 → 1.10.3
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.d.ts +17 -10
- package/dist/constants.d.ts +12 -0
- package/dist/constants.js +15 -1
- package/package.json +1 -1
- package/src/api/types.ts +18 -9
- package/src/constants.ts +14 -0
package/dist/api/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, KYCStatuses, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionType } from '../constants';
|
|
1
|
+
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, KYCStatuses, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../constants';
|
|
2
2
|
import { WalletType } from '../';
|
|
3
3
|
export declare namespace API {
|
|
4
4
|
namespace Auth {
|
|
@@ -115,6 +115,7 @@ export declare namespace API {
|
|
|
115
115
|
card_issuing_fee: number | null;
|
|
116
116
|
card_monthly_fee: number | null;
|
|
117
117
|
initial_topup: number | null;
|
|
118
|
+
status?: IssuingProgramStatus | string;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
interface User {
|
|
@@ -1131,7 +1132,7 @@ export declare namespace API {
|
|
|
1131
1132
|
created_at: string;
|
|
1132
1133
|
type: WalletTransactionType | string;
|
|
1133
1134
|
method: WalletTransactionMethod | string;
|
|
1134
|
-
status: string;
|
|
1135
|
+
status: WalletTransactionStatus | string;
|
|
1135
1136
|
amount: number;
|
|
1136
1137
|
from: string | null;
|
|
1137
1138
|
to: string | null;
|
|
@@ -1148,7 +1149,7 @@ export declare namespace API {
|
|
|
1148
1149
|
created_at: string;
|
|
1149
1150
|
from: string;
|
|
1150
1151
|
info: string;
|
|
1151
|
-
status: string;
|
|
1152
|
+
status: WalletTransactionStatus | string;
|
|
1152
1153
|
to: string;
|
|
1153
1154
|
txid: string;
|
|
1154
1155
|
type: WalletTransactionType | string;
|
|
@@ -1170,13 +1171,19 @@ export declare namespace API {
|
|
|
1170
1171
|
limit?: number;
|
|
1171
1172
|
offset?: number;
|
|
1172
1173
|
filter?: {
|
|
1173
|
-
created_at
|
|
1174
|
-
from
|
|
1175
|
-
status
|
|
1176
|
-
to
|
|
1177
|
-
type
|
|
1178
|
-
method
|
|
1179
|
-
record_type
|
|
1174
|
+
created_at: string;
|
|
1175
|
+
from: string;
|
|
1176
|
+
status: WalletTransactionStatus;
|
|
1177
|
+
to: string;
|
|
1178
|
+
type: WalletTransactionType | string;
|
|
1179
|
+
method: WalletTransactionMethod | string;
|
|
1180
|
+
record_type: WalletTransactionRecordType | string;
|
|
1181
|
+
'currency.uuid': string;
|
|
1182
|
+
'meta.billing_amount_currency': string;
|
|
1183
|
+
'meta.transaction_amount_currency': string;
|
|
1184
|
+
address: string;
|
|
1185
|
+
from_created_at: string;
|
|
1186
|
+
to_created_at: string;
|
|
1180
1187
|
};
|
|
1181
1188
|
};
|
|
1182
1189
|
type Response = {
|
package/dist/constants.d.ts
CHANGED
|
@@ -39,6 +39,14 @@ export declare enum WalletTransactionMethod {
|
|
|
39
39
|
EXCHANGE = "exchange",
|
|
40
40
|
SBP = "sbp"
|
|
41
41
|
}
|
|
42
|
+
export declare enum WalletTransactionStatus {
|
|
43
|
+
COMPLETE = "complete",
|
|
44
|
+
PENDING = "pending",
|
|
45
|
+
CANCELED = "canceled",
|
|
46
|
+
FAILED = "failed",
|
|
47
|
+
PROCESSING = "processing",
|
|
48
|
+
NEW = "new"
|
|
49
|
+
}
|
|
42
50
|
export declare enum WalletTransactionRecordType {
|
|
43
51
|
CARD_PROVIDER_DEPOSIT = "CARD_PROVIDER_DEPOSIT",
|
|
44
52
|
CARD_PROVIDER_REFUND = "CARD_PROVIDER_REFUND",
|
|
@@ -117,6 +125,10 @@ export declare enum CardStatus {
|
|
|
117
125
|
CANCELED = "CANCELED",
|
|
118
126
|
CLOSED = "CLOSED"
|
|
119
127
|
}
|
|
128
|
+
export declare enum IssuingProgramStatus {
|
|
129
|
+
ACTIVE = "ACTIVE",
|
|
130
|
+
ARCHIVED = "ARCHIVED"
|
|
131
|
+
}
|
|
120
132
|
export declare enum FiatAccountStatus {
|
|
121
133
|
ACTIVE = "ACTIVE",
|
|
122
134
|
BLOCKED = "BLOCKED",
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CounterpartyDestinationType = exports.CounterpartyType = exports.SortingDirection = exports.APIKeyRole = exports.OrderType = exports.CurrencyType = exports.SubAccountType = exports.FiatAccountStatus = exports.CardStatus = exports.OrderStatuses = exports.KYCStatuses = exports.defaultPaginationParams = exports.walletType = exports.WalletTypeValues = exports.ResponseStatus = exports.RequestLoadingType = exports.RequestStatus = exports.WalletTransactionRecordType = exports.WalletTransactionMethod = exports.WalletTransactionType = exports.CardTransactionType = exports.CardType = exports.CardFormFactor = exports.AppEnviroment = exports.falsyValues = void 0;
|
|
3
|
+
exports.CounterpartyDestinationType = exports.CounterpartyType = exports.SortingDirection = exports.APIKeyRole = exports.OrderType = exports.CurrencyType = exports.SubAccountType = exports.FiatAccountStatus = exports.IssuingProgramStatus = exports.CardStatus = exports.OrderStatuses = exports.KYCStatuses = exports.defaultPaginationParams = exports.walletType = exports.WalletTypeValues = exports.ResponseStatus = exports.RequestLoadingType = exports.RequestStatus = exports.WalletTransactionRecordType = exports.WalletTransactionStatus = exports.WalletTransactionMethod = exports.WalletTransactionType = exports.CardTransactionType = exports.CardType = exports.CardFormFactor = exports.AppEnviroment = exports.falsyValues = void 0;
|
|
4
4
|
exports.falsyValues = ['false', '0', '', 'FALSE', false, null, undefined, NaN, 0];
|
|
5
5
|
var AppEnviroment;
|
|
6
6
|
(function (AppEnviroment) {
|
|
@@ -41,6 +41,15 @@ var WalletTransactionMethod;
|
|
|
41
41
|
WalletTransactionMethod["EXCHANGE"] = "exchange";
|
|
42
42
|
WalletTransactionMethod["SBP"] = "sbp";
|
|
43
43
|
})(WalletTransactionMethod || (exports.WalletTransactionMethod = WalletTransactionMethod = {}));
|
|
44
|
+
var WalletTransactionStatus;
|
|
45
|
+
(function (WalletTransactionStatus) {
|
|
46
|
+
WalletTransactionStatus["COMPLETE"] = "complete";
|
|
47
|
+
WalletTransactionStatus["PENDING"] = "pending";
|
|
48
|
+
WalletTransactionStatus["CANCELED"] = "canceled";
|
|
49
|
+
WalletTransactionStatus["FAILED"] = "failed";
|
|
50
|
+
WalletTransactionStatus["PROCESSING"] = "processing";
|
|
51
|
+
WalletTransactionStatus["NEW"] = "new";
|
|
52
|
+
})(WalletTransactionStatus || (exports.WalletTransactionStatus = WalletTransactionStatus = {}));
|
|
44
53
|
var WalletTransactionRecordType;
|
|
45
54
|
(function (WalletTransactionRecordType) {
|
|
46
55
|
WalletTransactionRecordType["CARD_PROVIDER_DEPOSIT"] = "CARD_PROVIDER_DEPOSIT";
|
|
@@ -135,6 +144,11 @@ var CardStatus;
|
|
|
135
144
|
CardStatus["CANCELED"] = "CANCELED";
|
|
136
145
|
CardStatus["CLOSED"] = "CLOSED";
|
|
137
146
|
})(CardStatus || (exports.CardStatus = CardStatus = {}));
|
|
147
|
+
var IssuingProgramStatus;
|
|
148
|
+
(function (IssuingProgramStatus) {
|
|
149
|
+
IssuingProgramStatus["ACTIVE"] = "ACTIVE";
|
|
150
|
+
IssuingProgramStatus["ARCHIVED"] = "ARCHIVED";
|
|
151
|
+
})(IssuingProgramStatus || (exports.IssuingProgramStatus = IssuingProgramStatus = {}));
|
|
138
152
|
var FiatAccountStatus;
|
|
139
153
|
(function (FiatAccountStatus) {
|
|
140
154
|
FiatAccountStatus["ACTIVE"] = "ACTIVE";
|
package/package.json
CHANGED
package/src/api/types.ts
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CounterpartyDestinationType,
|
|
8
8
|
CounterpartyType,
|
|
9
9
|
CurrencyType,
|
|
10
|
+
IssuingProgramStatus,
|
|
10
11
|
KYCStatuses,
|
|
11
12
|
OrderStatuses,
|
|
12
13
|
OrderType,
|
|
@@ -14,6 +15,7 @@ import {
|
|
|
14
15
|
SubAccountType,
|
|
15
16
|
WalletTransactionMethod,
|
|
16
17
|
WalletTransactionRecordType,
|
|
18
|
+
WalletTransactionStatus,
|
|
17
19
|
WalletTransactionType,
|
|
18
20
|
} from '../constants';
|
|
19
21
|
import { WalletType } from '../';
|
|
@@ -142,6 +144,7 @@ export namespace API {
|
|
|
142
144
|
card_issuing_fee: number | null;
|
|
143
145
|
card_monthly_fee: number | null;
|
|
144
146
|
initial_topup: number | null;
|
|
147
|
+
status?: IssuingProgramStatus | string;
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
150
|
export interface User {
|
|
@@ -1386,7 +1389,7 @@ export namespace API {
|
|
|
1386
1389
|
created_at: string;
|
|
1387
1390
|
type: WalletTransactionType | string;
|
|
1388
1391
|
method: WalletTransactionMethod | string;
|
|
1389
|
-
status: string;
|
|
1392
|
+
status: WalletTransactionStatus | string;
|
|
1390
1393
|
amount: number;
|
|
1391
1394
|
from: string | null; // deprecated?
|
|
1392
1395
|
to: string | null; // deprecated?
|
|
@@ -1404,7 +1407,7 @@ export namespace API {
|
|
|
1404
1407
|
created_at: string;
|
|
1405
1408
|
from: string;
|
|
1406
1409
|
info: string;
|
|
1407
|
-
status: string;
|
|
1410
|
+
status: WalletTransactionStatus | string;
|
|
1408
1411
|
to: string;
|
|
1409
1412
|
txid: string;
|
|
1410
1413
|
type: WalletTransactionType | string;
|
|
@@ -1428,13 +1431,19 @@ export namespace API {
|
|
|
1428
1431
|
limit?: number;
|
|
1429
1432
|
offset?: number;
|
|
1430
1433
|
filter?: {
|
|
1431
|
-
created_at
|
|
1432
|
-
from
|
|
1433
|
-
status
|
|
1434
|
-
to
|
|
1435
|
-
type
|
|
1436
|
-
method
|
|
1437
|
-
record_type
|
|
1434
|
+
created_at: string;
|
|
1435
|
+
from: string;
|
|
1436
|
+
status: WalletTransactionStatus;
|
|
1437
|
+
to: string;
|
|
1438
|
+
type: WalletTransactionType | string;
|
|
1439
|
+
method: WalletTransactionMethod | string;
|
|
1440
|
+
record_type: WalletTransactionRecordType | string;
|
|
1441
|
+
'currency.uuid': string;
|
|
1442
|
+
'meta.billing_amount_currency': string;
|
|
1443
|
+
'meta.transaction_amount_currency': string;
|
|
1444
|
+
address: string;
|
|
1445
|
+
from_created_at: string;
|
|
1446
|
+
to_created_at: string;
|
|
1438
1447
|
};
|
|
1439
1448
|
};
|
|
1440
1449
|
export type Response = {
|
package/src/constants.ts
CHANGED
|
@@ -48,6 +48,15 @@ export enum WalletTransactionMethod {
|
|
|
48
48
|
SBP = 'sbp',
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
export enum WalletTransactionStatus {
|
|
52
|
+
COMPLETE = 'complete',
|
|
53
|
+
PENDING = 'pending',
|
|
54
|
+
CANCELED = 'canceled',
|
|
55
|
+
FAILED = 'failed',
|
|
56
|
+
PROCESSING = 'processing',
|
|
57
|
+
NEW = 'new',
|
|
58
|
+
}
|
|
59
|
+
|
|
51
60
|
export enum WalletTransactionRecordType {
|
|
52
61
|
CARD_PROVIDER_DEPOSIT = 'CARD_PROVIDER_DEPOSIT',
|
|
53
62
|
CARD_PROVIDER_REFUND = 'CARD_PROVIDER_REFUND',
|
|
@@ -144,6 +153,11 @@ export enum CardStatus {
|
|
|
144
153
|
CLOSED = 'CLOSED',
|
|
145
154
|
}
|
|
146
155
|
|
|
156
|
+
export enum IssuingProgramStatus {
|
|
157
|
+
ACTIVE = 'ACTIVE',
|
|
158
|
+
ARCHIVED = 'ARCHIVED',
|
|
159
|
+
}
|
|
160
|
+
|
|
147
161
|
export enum FiatAccountStatus {
|
|
148
162
|
ACTIVE = 'ACTIVE',
|
|
149
163
|
BLOCKED = 'BLOCKED',
|