squarefi-bff-api-module 1.10.2 → 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 +16 -10
- package/dist/constants.d.ts +8 -0
- package/dist/constants.js +10 -1
- package/package.json +1 -1
- package/src/api/types.ts +16 -9
- package/src/constants.ts +9 -0
package/dist/api/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, 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 {
|
|
@@ -1132,7 +1132,7 @@ export declare namespace API {
|
|
|
1132
1132
|
created_at: string;
|
|
1133
1133
|
type: WalletTransactionType | string;
|
|
1134
1134
|
method: WalletTransactionMethod | string;
|
|
1135
|
-
status: string;
|
|
1135
|
+
status: WalletTransactionStatus | string;
|
|
1136
1136
|
amount: number;
|
|
1137
1137
|
from: string | null;
|
|
1138
1138
|
to: string | null;
|
|
@@ -1149,7 +1149,7 @@ export declare namespace API {
|
|
|
1149
1149
|
created_at: string;
|
|
1150
1150
|
from: string;
|
|
1151
1151
|
info: string;
|
|
1152
|
-
status: string;
|
|
1152
|
+
status: WalletTransactionStatus | string;
|
|
1153
1153
|
to: string;
|
|
1154
1154
|
txid: string;
|
|
1155
1155
|
type: WalletTransactionType | string;
|
|
@@ -1171,13 +1171,19 @@ export declare namespace API {
|
|
|
1171
1171
|
limit?: number;
|
|
1172
1172
|
offset?: number;
|
|
1173
1173
|
filter?: {
|
|
1174
|
-
created_at
|
|
1175
|
-
from
|
|
1176
|
-
status
|
|
1177
|
-
to
|
|
1178
|
-
type
|
|
1179
|
-
method
|
|
1180
|
-
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;
|
|
1181
1187
|
};
|
|
1182
1188
|
};
|
|
1183
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",
|
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.IssuingProgramStatus = 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";
|
package/package.json
CHANGED
package/src/api/types.ts
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
SubAccountType,
|
|
16
16
|
WalletTransactionMethod,
|
|
17
17
|
WalletTransactionRecordType,
|
|
18
|
+
WalletTransactionStatus,
|
|
18
19
|
WalletTransactionType,
|
|
19
20
|
} from '../constants';
|
|
20
21
|
import { WalletType } from '../';
|
|
@@ -1388,7 +1389,7 @@ export namespace API {
|
|
|
1388
1389
|
created_at: string;
|
|
1389
1390
|
type: WalletTransactionType | string;
|
|
1390
1391
|
method: WalletTransactionMethod | string;
|
|
1391
|
-
status: string;
|
|
1392
|
+
status: WalletTransactionStatus | string;
|
|
1392
1393
|
amount: number;
|
|
1393
1394
|
from: string | null; // deprecated?
|
|
1394
1395
|
to: string | null; // deprecated?
|
|
@@ -1406,7 +1407,7 @@ export namespace API {
|
|
|
1406
1407
|
created_at: string;
|
|
1407
1408
|
from: string;
|
|
1408
1409
|
info: string;
|
|
1409
|
-
status: string;
|
|
1410
|
+
status: WalletTransactionStatus | string;
|
|
1410
1411
|
to: string;
|
|
1411
1412
|
txid: string;
|
|
1412
1413
|
type: WalletTransactionType | string;
|
|
@@ -1430,13 +1431,19 @@ export namespace API {
|
|
|
1430
1431
|
limit?: number;
|
|
1431
1432
|
offset?: number;
|
|
1432
1433
|
filter?: {
|
|
1433
|
-
created_at
|
|
1434
|
-
from
|
|
1435
|
-
status
|
|
1436
|
-
to
|
|
1437
|
-
type
|
|
1438
|
-
method
|
|
1439
|
-
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;
|
|
1440
1447
|
};
|
|
1441
1448
|
};
|
|
1442
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',
|