wapi-client 0.6.22 → 0.6.26
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/base-client.d.ts +1 -1
- package/dist/db/consts.enums.d.ts +21 -21
- package/dist/db/token/token.enums.d.ts +6 -6
- package/dist/db/transfer/transfer.enums.d.ts +6 -6
- package/dist/db/transfer-group/transfer-group.enums.d.ts +6 -6
- package/dist/db/transfer-log/transfer-log.enums.d.ts +5 -5
- package/dist/db/wallet/wallet.enums.d.ts +6 -6
- package/dist/db/wallet-token-setting/wallet-token-setting.enums.d.ts +5 -5
- package/dist/db/wapi-setting/wapi-setting.enums.d.ts +5 -5
- package/dist/fns/aggregate-transfers/aggregate-transfers.d.ts +4 -4
- package/dist/fns/aggregate-transfers/aggregate-transfers.enums.d.ts +2 -2
- package/dist/fns/create-access-token/create-access-token.enums.d.ts +1 -1
- package/dist/fns/create-contract/create-contract.enums.d.ts +1 -1
- package/dist/fns/create-deposit/create-deposit.enums.d.ts +1 -1
- package/dist/fns/create-exchange/create-exchange.enums.d.ts +2 -2
- package/dist/fns/create-token/create-token.enums.d.ts +2 -2
- package/dist/fns/create-transfer/create-transfer.enums.d.ts +3 -3
- package/dist/fns/create-transfer-group/create-transfer-group.enums.d.ts +3 -3
- package/dist/fns/create-transfers/create-transfers.enums.d.ts +1 -1
- package/dist/fns/create-wallet/create-wallet.enums.d.ts +2 -2
- package/dist/fns/create-withdrawal/create-withdrawal.enums.d.ts +1 -1
- package/dist/fns/find-balances/find-balances.d.ts +4 -4
- package/dist/fns/find-balances/find-balances.enums.d.ts +2 -2
- package/dist/fns/find-tokens/find-tokens.d.ts +4 -4
- package/dist/fns/find-tokens/find-tokens.enums.d.ts +2 -2
- package/dist/fns/find-transfer-groups/find-transfer-groups.d.ts +4 -4
- package/dist/fns/find-transfer-groups/find-transfer-groups.enums.d.ts +2 -2
- package/dist/fns/find-transfers/find-transfers.d.ts +4 -4
- package/dist/fns/find-transfers/find-transfers.enums.d.ts +2 -2
- package/dist/fns/find-wallets/find-wallets.d.ts +4 -4
- package/dist/fns/find-wallets/find-wallets.enums.d.ts +1 -1
- package/dist/fns/fn-consts.enums.d.ts +1 -1
- package/dist/fns/get-balance/get-balance.enums.d.ts +2 -2
- package/dist/fns/get-balance-history/get-balance-history.enums.d.ts +2 -2
- package/dist/fns/get-flags/get-flags.enums.d.ts +1 -1
- package/dist/fns/get-statistics/get-statistics.enums.d.ts +1 -1
- package/dist/fns/get-token/get-token.enums.d.ts +1 -1
- package/dist/fns/get-transfer/get-transfer.enums.d.ts +2 -2
- package/dist/fns/get-transfer-group/get-transfer-group.enums.d.ts +2 -2
- package/dist/fns/get-wallet/get-wallet.enums.d.ts +2 -2
- package/dist/fns/import-data/import-data.enums.d.ts +6 -6
- package/dist/fns/reverse-transfer/reverse-transfer.enums.d.ts +2 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.enums.d.ts +2 -2
- package/dist/fns/reverse-transfers/reverse-transfers.d.ts +4 -4
- package/dist/fns/reverse-transfers/reverse-transfers.enums.d.ts +3 -3
- package/dist/fns/set-flags/set-flags.enums.d.ts +2 -2
- package/dist/fns/update-token/update-token.enums.d.ts +3 -3
- package/dist/fns/update-transfer/update-transfer.enums.d.ts +2 -2
- package/dist/fns/update-transfer-group/update-transfer-group.enums.d.ts +2 -2
- package/dist/fns/update-transfer-groups/update-transfer-groups.d.ts +4 -4
- package/dist/fns/update-transfer-groups/update-transfer-groups.enums.d.ts +3 -3
- package/dist/fns/update-transfers/update-transfers.d.ts +4 -4
- package/dist/fns/update-transfers/update-transfers.enums.d.ts +3 -3
- package/dist/fns/update-wallet/update-wallet.enums.d.ts +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/isomorphic/node/streams.d.ts +1 -1
- package/dist/lib/query-builder.d.ts +9 -9
- package/dist/lib/utils.d.ts +2 -2
- package/dist/lib/validator.d.ts +1 -1
- package/dist/txs/aggregate-transfer-many/aggregate-transfer-many.enums.d.ts +5 -5
- package/dist/txs/authentication-check/authentication-check.enums.d.ts +1 -1
- package/dist/txs/create-access-token/create-access-token.enums.d.ts +1 -1
- package/dist/txs/create-contract/create-contract.enums.d.ts +2 -2
- package/dist/txs/create-deposit/create-deposit.enums.d.ts +1 -1
- package/dist/txs/create-distribution/create-distribution.enums.d.ts +3 -3
- package/dist/txs/create-token/create-token.enums.d.ts +1 -1
- package/dist/txs/create-transfer/create-transfer.enums.d.ts +2 -2
- package/dist/txs/create-transfer-group/create-transfer-group.enums.d.ts +2 -2
- package/dist/txs/create-transfer-many/create-transfer-many.enums.d.ts +1 -1
- package/dist/txs/create-wallet/create-wallet.enums.d.ts +1 -1
- package/dist/txs/create-withdrawal/create-withdrawal.enums.d.ts +1 -1
- package/dist/txs/export-database/export-database.enums.d.ts +1 -1
- package/dist/txs/find-balance-many/find-balance-many.enums.d.ts +12 -12
- package/dist/txs/find-token-many/find-token-many.enums.d.ts +12 -12
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +12 -12
- package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +14 -14
- package/dist/txs/find-wallet-many/find-wallet-many.enums.d.ts +14 -14
- package/dist/txs/finish-transaction/finish-transaction.enums.d.ts +2 -2
- package/dist/txs/get-balance/get-balance.enums.d.ts +2 -2
- package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +2 -2
- package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +1 -1
- package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +1 -1
- package/dist/txs/get-flags/get-flags.enums.d.ts +1 -1
- package/dist/txs/get-statistics/get-statistics.enums.d.ts +5 -5
- package/dist/txs/get-token/get-token.enums.d.ts +2 -2
- package/dist/txs/get-token-many/get-token-many.enums.d.ts +2 -2
- package/dist/txs/get-transfer/get-transfer.enums.d.ts +2 -2
- package/dist/txs/get-transfer-group/get-transfer-group.enums.d.ts +2 -2
- package/dist/txs/get-wallet/get-wallet.enums.d.ts +2 -2
- package/dist/txs/get-wallet-many/get-wallet-many.enums.d.ts +2 -2
- package/dist/txs/import-actions/import-actions.enums.d.ts +4 -4
- package/dist/txs/import-database/import-database.enums.d.ts +1 -1
- package/dist/txs/query/query.enums.d.ts +2 -2
- package/dist/txs/query-logs/query-logs.enums.d.ts +2 -2
- package/dist/txs/reset-database/reset-database.enums.d.ts +2 -2
- package/dist/txs/reverse-transfer/reverse-transfer.enums.d.ts +1 -1
- package/dist/txs/reverse-transfer-group/reverse-transfer-group.enums.d.ts +1 -1
- package/dist/txs/reverse-transfer-group-many/reverse-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/reverse-transfer-many/reverse-transfer-many.enums.d.ts +1 -1
- package/dist/txs/set-flags/set-flags.enums.d.ts +1 -1
- package/dist/txs/start-transaction/start-transaction.enums.d.ts +1 -1
- package/dist/txs/tx-consts.enums.d.ts +10 -10
- package/dist/txs/update-token/update-token.enums.d.ts +1 -1
- package/dist/txs/update-transfer/update-transfer.enums.d.ts +1 -1
- package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +2 -2
- package/dist/txs/update-transfer-group-many/update-transfer-group-many.enums.d.ts +1 -1
- package/dist/txs/update-transfer-many/update-transfer-many.enums.d.ts +1 -1
- package/dist/txs/update-wallet/update-wallet.enums.d.ts +1 -1
- package/dist/wapi-client.cjs.development.js +3502 -1008
- package/dist/wapi-client.cjs.js +14 -10
- package/package.json +17 -18
|
@@ -12,7 +12,7 @@ export interface ClientHooks {
|
|
|
12
12
|
preflight?: (msg: JSONRPCRequest) => void | boolean;
|
|
13
13
|
message?: (msg: JSONRPCResponse) => void;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type ISocketId = string | undefined;
|
|
16
16
|
export declare class BaseClient {
|
|
17
17
|
type: WapiClientType;
|
|
18
18
|
_connection: WebSocket | HttpConnectionClient;
|
|
@@ -58,7 +58,7 @@ export interface DbFilterFunctionWhereMetadataPrimitive {
|
|
|
58
58
|
function: DbFilterFunctionMetadataBasic;
|
|
59
59
|
operator?: DbFilterOperatorExtended;
|
|
60
60
|
}
|
|
61
|
-
export
|
|
61
|
+
export type DbFilterFunctionMetadataBasic = 'whereMetadata' | 'orWhereMetadata';
|
|
62
62
|
/**
|
|
63
63
|
* Filtering for where and orWhere
|
|
64
64
|
*/
|
|
@@ -69,7 +69,7 @@ export interface DbFilterFunctionWhereObject {
|
|
|
69
69
|
};
|
|
70
70
|
function: DbFilterFunctionBasic;
|
|
71
71
|
}
|
|
72
|
-
export
|
|
72
|
+
export type DbFilterFunctionBasic = 'where' | 'orWhere';
|
|
73
73
|
/**
|
|
74
74
|
* Filtering for whereIn and orWhereIn
|
|
75
75
|
*/
|
|
@@ -78,7 +78,7 @@ export interface DbFilterFunctionWhereIns {
|
|
|
78
78
|
function: DbFilterFunctionIn;
|
|
79
79
|
value: string[] | number[];
|
|
80
80
|
}
|
|
81
|
-
export
|
|
81
|
+
export type DbFilterFunctionIn = 'whereIn' | 'orWhereIn';
|
|
82
82
|
/**
|
|
83
83
|
* Filtering for whereIn and orWhereIn for metadata
|
|
84
84
|
*/
|
|
@@ -87,7 +87,7 @@ export interface DbFilterFunctionWhereMetadataIns {
|
|
|
87
87
|
function: DbFilterFunctionMetadataIn;
|
|
88
88
|
value: string[] | number[];
|
|
89
89
|
}
|
|
90
|
-
export
|
|
90
|
+
export type DbFilterFunctionMetadataIn = 'whereMetadataIn' | 'orWhereMetadataIn';
|
|
91
91
|
/**
|
|
92
92
|
* Filtering for whereNull and orWhereNull, whereNotNull and orWhereNotNull for metadata
|
|
93
93
|
*/
|
|
@@ -95,7 +95,7 @@ export interface DbFilterFunctionWhereMetadataNulls {
|
|
|
95
95
|
field: string;
|
|
96
96
|
function: DbFilterFunctionMetadataNull;
|
|
97
97
|
}
|
|
98
|
-
export
|
|
98
|
+
export type DbFilterFunctionMetadataNull = 'whereMetadataNull' | 'orWhereMetadataNull' | 'whereMetadataNotNull' | 'orWhereMetadataNotNull';
|
|
99
99
|
/**
|
|
100
100
|
* Filtering for whereNull and orWhereNull, whereNotNull and orWhereNotNull
|
|
101
101
|
*/
|
|
@@ -103,19 +103,19 @@ export interface DbFilterFunctionWhereNulls {
|
|
|
103
103
|
field: string;
|
|
104
104
|
function: DbFilterFunctionNull;
|
|
105
105
|
}
|
|
106
|
-
export
|
|
106
|
+
export type DbFilterFunctionNull = 'whereNull' | 'orWhereNull' | 'whereNotNull' | 'orWhereNotNull';
|
|
107
107
|
/**
|
|
108
108
|
* Allowed filtering operators, ignored when value is not primitive
|
|
109
109
|
*/
|
|
110
|
-
export
|
|
110
|
+
export type DbFilterOperator = '=' | '>=' | '<=' | '<' | '>';
|
|
111
111
|
/**
|
|
112
112
|
* Allowed filtering operators for strings
|
|
113
113
|
*/
|
|
114
|
-
export
|
|
114
|
+
export type DbFilterOperatorString = 'like' | 'ilike';
|
|
115
115
|
/**
|
|
116
116
|
* Allowed filtering operators, ignored when value is not primitive
|
|
117
117
|
*/
|
|
118
|
-
export
|
|
118
|
+
export type DbFilterOperatorExtended = '=' | '>=' | '<=' | '<' | '>' | 'like' | 'ilike';
|
|
119
119
|
/**
|
|
120
120
|
* Filtering for where and orWhere
|
|
121
121
|
*/
|
|
@@ -126,48 +126,48 @@ export interface DbFilterFunctionWhereInner {
|
|
|
126
126
|
/**
|
|
127
127
|
* DB type values for TokenType
|
|
128
128
|
*/
|
|
129
|
-
export
|
|
129
|
+
export type TokenType = 'value' | 'share' | 'group' | 'contract';
|
|
130
130
|
/**
|
|
131
131
|
* DB type values for TokenStatus
|
|
132
132
|
*/
|
|
133
|
-
export
|
|
133
|
+
export type TokenStatus = 'active' | 'dw-only' | 'disabled';
|
|
134
134
|
/**
|
|
135
135
|
* DB type values for TransferGroupStatus
|
|
136
136
|
*/
|
|
137
|
-
export
|
|
137
|
+
export type TransferGroupStatus = 'open' | 'closed';
|
|
138
138
|
/**
|
|
139
139
|
* DB type values for TransferStatus
|
|
140
140
|
*/
|
|
141
|
-
export
|
|
141
|
+
export type TransferStatus = 'pending' | 'finished' | 'cancelled';
|
|
142
142
|
/**
|
|
143
143
|
* DB type input values for TransferStatus
|
|
144
144
|
*/
|
|
145
|
-
export
|
|
145
|
+
export type TransferStatusInput = 'pending' | 'finished';
|
|
146
146
|
/**
|
|
147
147
|
* DB type values for TransferGroupType
|
|
148
148
|
*/
|
|
149
|
-
export
|
|
149
|
+
export type TransferGroupType = 'regular' | 'exchange' | 'distribution';
|
|
150
150
|
/**
|
|
151
151
|
* DB type values for TransferType
|
|
152
152
|
*/
|
|
153
|
-
export
|
|
153
|
+
export type TransferType = 'transfer' | 'deposit' | 'withdrawal';
|
|
154
154
|
/**
|
|
155
155
|
* DB type values for WalletType
|
|
156
156
|
*/
|
|
157
|
-
export
|
|
157
|
+
export type WalletType = 'token' | 'house' | 'regular';
|
|
158
158
|
/**
|
|
159
159
|
* DB type values for WalletStatus
|
|
160
160
|
*/
|
|
161
|
-
export
|
|
161
|
+
export type WalletStatus = 'active' | 'disabled';
|
|
162
162
|
/**
|
|
163
163
|
* DB type values for WapiSettingType
|
|
164
164
|
*/
|
|
165
|
-
export
|
|
165
|
+
export type WapiSettingType = 'flag' | 'setting';
|
|
166
166
|
/**
|
|
167
167
|
* DB Model Names
|
|
168
168
|
*/
|
|
169
|
-
export
|
|
170
|
-
export
|
|
169
|
+
export type DbModelName = 'Token' | 'TransferGroup' | 'TransferLog' | 'Transfer' | 'WalletTokenSetting' | 'Wallet' | 'WapiSetting';
|
|
170
|
+
export type DbFilter = DbFilterMetadata | DbFilterFunctionWhereInner | DbFilterFunctionWherePrimitive | DbFilterFunctionWherePrimitiveForeign | DbFilterFunctionWherePrimitiveIdentifier | DbFilterFunctionWhereMetadataPrimitive | DbFilterFunctionWhereObject | DbFilterFunctionWhereIns | DbFilterFunctionWhereMetadataIns | DbFilterFunctionWhereMetadataNulls | DbFilterFunctionWhereNulls;
|
|
171
171
|
export declare enum DbFilterFunctionMetadataBasicEnum {
|
|
172
172
|
whereMetadata = 'whereMetadata',
|
|
173
173
|
orWhereMetadata = 'orWhereMetadata'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TokenType, TokenStatus } from '../consts.enums';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
2
|
+
export type TokenTableAccessibleFields = 'id' | 'foreign' | 'public' | 'metadata' | 'divisor' | 'limit' | 'type' | 'status';
|
|
3
|
+
export type TokenTableFields = 'id' | 'foreign' | 'public' | 'belongs_to' | 'created_at' | 'updated_at' | 'metadata' | 'divisor' | 'limit' | 'type' | 'status';
|
|
4
|
+
export type TokenTableStringFields = 'foreign' | 'created_at' | 'updated_at' | 'type' | 'status';
|
|
5
|
+
export type TokenTableObjectFields = 'metadata';
|
|
6
|
+
export type TokenTableNumberFields = 'id' | 'belongs_to' | 'divisor' | 'limit';
|
|
7
|
+
export type TokenTableBooleanFields = 'public';
|
|
8
8
|
/**
|
|
9
9
|
* Units of value which can be transferred in this system
|
|
10
10
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TransferType, TransferStatus, TransferStatusInput } from '../consts.enums';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
2
|
+
export type TransferTableAccessibleFields = 'id' | 'identifier' | 'control_hash' | 'from_wallet_id' | 'to_wallet_id' | 'token_id' | 'amount' | 'type' | 'status' | 'force' | 'created_at' | 'updated_at' | 'metadata' | 'transfer_group_id' | 'reverses_id' | 'status_finalized_at';
|
|
3
|
+
export type TransferTableFields = 'id' | 'identifier' | 'control_hash' | 'from_wallet_id' | 'to_wallet_id' | 'token_id' | 'amount' | 'type' | 'status' | 'force' | 'auto_hash' | 'created_at' | 'updated_at' | 'metadata' | 'transfer_group_id' | 'reverses_id' | 'status_finalized_at';
|
|
4
|
+
export type TransferTableStringFields = 'identifier' | 'control_hash' | 'type' | 'status' | 'created_at' | 'updated_at' | 'status_finalized_at';
|
|
5
|
+
export type TransferTableObjectFields = 'metadata';
|
|
6
|
+
export type TransferTableNumberFields = 'id' | 'from_wallet_id' | 'to_wallet_id' | 'token_id' | 'amount' | 'transfer_group_id' | 'reverses_id';
|
|
7
|
+
export type TransferTableBooleanFields = 'force' | 'auto_hash';
|
|
8
8
|
/**
|
|
9
9
|
* A transfer of value from one wallet to another
|
|
10
10
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TransferGroupStatus, TransferStatus, TransferGroupType, TransferStatusInput } from '../consts.enums';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
2
|
+
export type TransferGroupTableAccessibleFields = 'id' | 'identifier' | 'status' | 'transfer_status' | 'metadata' | 'reverses_id' | 'status_finalized_at' | 'transfer_status_finalized_at' | 'type';
|
|
3
|
+
export type TransferGroupTableFields = 'id' | 'identifier' | 'status' | 'transfer_status' | 'metadata' | 'created_at' | 'updated_at' | 'reverses_id' | 'status_finalized_at' | 'transfer_status_finalized_at' | 'type' | 'validate_final_balance_only';
|
|
4
|
+
export type TransferGroupTableStringFields = 'identifier' | 'status' | 'transfer_status' | 'created_at' | 'updated_at' | 'status_finalized_at' | 'transfer_status_finalized_at' | 'type';
|
|
5
|
+
export type TransferGroupTableObjectFields = 'metadata';
|
|
6
|
+
export type TransferGroupTableNumberFields = 'id' | 'reverses_id';
|
|
7
|
+
export type TransferGroupTableBooleanFields = 'validate_final_balance_only';
|
|
8
8
|
/**
|
|
9
9
|
* An entity collecting transfers into a group locked by status
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TransferType, TransferStatus } from '../consts.enums';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
2
|
+
export type TransferLogTableAccessibleFields = 'id' | 'transfer_id' | 'wallet_id' | 'token_id' | 'type' | 'amount' | 'pending_amount' | 'finished_amount' | 'status' | 'created_at' | 'pending_amount_to' | 'pending_amount_from' | 'available_balance' | 'token_limit';
|
|
3
|
+
export type TransferLogTableFields = 'id' | 'transfer_id' | 'wallet_id' | 'token_id' | 'type' | 'amount' | 'pending_amount' | 'finished_amount' | 'status' | 'allow_negative' | 'allow_positive' | 'force' | 'created_at' | 'latest_control_hash' | 'pending_amount_to' | 'pending_amount_from' | 'group_balance' | 'current' | 'available_balance' | 'token_limit';
|
|
4
|
+
export type TransferLogTableStringFields = 'type' | 'status' | 'created_at' | 'latest_control_hash';
|
|
5
|
+
export type TransferLogTableNumberFields = 'id' | 'transfer_id' | 'wallet_id' | 'token_id' | 'amount' | 'pending_amount' | 'finished_amount' | 'pending_amount_to' | 'pending_amount_from' | 'group_balance' | 'available_balance' | 'token_limit';
|
|
6
|
+
export type TransferLogTableBooleanFields = 'allow_negative' | 'allow_positive' | 'force' | 'current';
|
|
7
7
|
/**
|
|
8
8
|
* Individual parts of a transfer, will be updated internally by db. Immutable
|
|
9
9
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { WalletType, WalletStatus } from '../consts.enums';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
2
|
+
export type WalletTableAccessibleFields = 'id' | 'foreign' | 'name' | 'metadata' | 'type' | 'status';
|
|
3
|
+
export type WalletTableFields = 'id' | 'foreign' | 'name' | 'metadata' | 'type' | 'default_allow_negative' | 'default_allow_positive' | 'created_at' | 'updated_at' | 'status';
|
|
4
|
+
export type WalletTableStringFields = 'foreign' | 'name' | 'type' | 'created_at' | 'updated_at' | 'status';
|
|
5
|
+
export type WalletTableObjectFields = 'metadata';
|
|
6
|
+
export type WalletTableNumberFields = 'id';
|
|
7
|
+
export type WalletTableBooleanFields = 'default_allow_negative' | 'default_allow_positive';
|
|
8
8
|
/**
|
|
9
9
|
* Entities who can make transfers in this system
|
|
10
10
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export type WalletTokenSettingTableAccessibleFields = 'id';
|
|
2
|
+
export type WalletTokenSettingTableFields = 'id' | 'wallet_id' | 'token_id' | 'allow_negative' | 'allow_positive' | 'created_at' | 'updated_at';
|
|
3
|
+
export type WalletTokenSettingTableStringFields = 'created_at' | 'updated_at';
|
|
4
|
+
export type WalletTokenSettingTableNumberFields = 'id' | 'wallet_id' | 'token_id';
|
|
5
|
+
export type WalletTokenSettingTableBooleanFields = 'allow_negative' | 'allow_positive';
|
|
6
6
|
/**
|
|
7
7
|
* Settings between a wallet and token
|
|
8
8
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WapiSettingType } from '../consts.enums';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
2
|
+
export type WapiSettingTableAccessibleFields = 'id' | 'type' | 'name' | 'value' | 'applied';
|
|
3
|
+
export type WapiSettingTableFields = 'id' | 'type' | 'name' | 'value' | 'applied' | 'created_at' | 'updated_at';
|
|
4
|
+
export type WapiSettingTableStringFields = 'type' | 'name' | 'value' | 'created_at' | 'updated_at';
|
|
5
|
+
export type WapiSettingTableNumberFields = 'id';
|
|
6
|
+
export type WapiSettingTableBooleanFields = 'applied';
|
|
7
7
|
/**
|
|
8
8
|
* Database settings
|
|
9
9
|
*/
|
|
@@ -4,10 +4,10 @@ import { AggregateQueryBuilder } from '../../lib/query-builder';
|
|
|
4
4
|
import { StreamPromise } from '../../lib/stream-promise';
|
|
5
5
|
import { AggregateTransferManyGroupByFields } from '../../txs';
|
|
6
6
|
import { AggregateTransfersFnInput, AggregateTransfersFnOutput, AggregateTransfersFnOptions } from './aggregate-transfers.enums';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
7
|
+
export type AggregateTransfersFnFields = TransferTableBooleanFields | TransferTableNumberFields;
|
|
8
|
+
export type AggregateTransfersFnStringFields = TransferTableStringFields | FindTransfersFnInputStringFields;
|
|
9
|
+
export type AggregateTransfersFnMetadataFields = TransferTableObjectFields;
|
|
10
|
+
export type AggregateTransfersFnGroupFields = AggregateTransferManyGroupByFields;
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DbFilterMetadata } from '../../db';
|
|
2
2
|
import { AggregateTransferManyAggregator, AggregateTransferManyGroups, AggregateTransferManyTxOptions, AggregateTransferManyTxOutput } from '../../txs';
|
|
3
|
-
export
|
|
3
|
+
export type AggregateTransfersFnInputStringFields = 'wallet' | 'token' | 'from_wallet' | 'to_wallet' | 'transfer_group';
|
|
4
4
|
/**
|
|
5
5
|
* Optional flags for input
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type AggregateTransfersFnOptions = AggregateTransferManyTxOptions;
|
|
8
8
|
/**
|
|
9
9
|
* Input for aggregateTransfers
|
|
10
10
|
*
|
|
@@ -2,7 +2,7 @@ import { CreateAccessTokenLimited, CreateAccessTokenAdmin, CreateAccessTokenTxOp
|
|
|
2
2
|
/**
|
|
3
3
|
* Optional flags for input
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type CreateAccessTokenFnOptions = CreateAccessTokenTxOptions;
|
|
6
6
|
/**
|
|
7
7
|
* Input for createAccessToken
|
|
8
8
|
*
|
|
@@ -45,7 +45,7 @@ export interface CreateContractBuyerInput {
|
|
|
45
45
|
/**
|
|
46
46
|
* Optional flags for input
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export type CreateContractFnOptions = CreateContractTxOptions;
|
|
49
49
|
/**
|
|
50
50
|
* Input for createContract
|
|
51
51
|
*
|
|
@@ -45,7 +45,7 @@ export interface CreateDepositInput {
|
|
|
45
45
|
*/
|
|
46
46
|
created_at?: string;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type CreateDepositFnOptions = ITxGeneralOptions & CreateDepositFnAdditionalOptions;
|
|
49
49
|
/**
|
|
50
50
|
* Input for createDeposit
|
|
51
51
|
*
|
|
@@ -64,8 +64,8 @@ export interface ExchangeData {
|
|
|
64
64
|
*/
|
|
65
65
|
export interface CreateExchangeAdditionalOptions {
|
|
66
66
|
}
|
|
67
|
-
export
|
|
68
|
-
export
|
|
67
|
+
export type CreateExchangeFnInputStringFields = 'from_wallet' | 'from_token' | 'to_wallet' | 'to_token' | 'status';
|
|
68
|
+
export type CreateExchangeFnOptions = ITxGeneralOptions & CreateExchangeAdditionalOptions;
|
|
69
69
|
/**
|
|
70
70
|
* Input for createExchange
|
|
71
71
|
*
|
|
@@ -30,13 +30,13 @@ export interface CreateTokenFnInputData {
|
|
|
30
30
|
*/
|
|
31
31
|
belongs_to?: string | number;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type CreateTokenFnOptions = CreateTokenTxOptions;
|
|
34
34
|
/**
|
|
35
35
|
* Input for createToken
|
|
36
36
|
*
|
|
37
37
|
* @category Input
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type CreateTokenFnInput = CreateTokenFnInputData & CreateTokenFnOptionsProperty;
|
|
40
40
|
/**
|
|
41
41
|
* Output of createToken
|
|
42
42
|
*
|
|
@@ -128,14 +128,14 @@ export interface CreateTransferDepositInput {
|
|
|
128
128
|
created_at?: string;
|
|
129
129
|
options?: CreateTransferFnOptions;
|
|
130
130
|
}
|
|
131
|
-
export
|
|
132
|
-
export
|
|
131
|
+
export type CreateTransferFnOptions = CreateTransferTxOptions;
|
|
132
|
+
export type CreateTransferWildInput = CreateTransferInput | CreateTransferWithdrawalInput | CreateTransferDepositInput;
|
|
133
133
|
/**
|
|
134
134
|
* Input for transfer
|
|
135
135
|
*
|
|
136
136
|
* @category Input
|
|
137
137
|
*/
|
|
138
|
-
export
|
|
138
|
+
export type CreateTransferFnInput = CreateTransferInput | CreateTransferWithdrawalInput | CreateTransferDepositInput;
|
|
139
139
|
/**
|
|
140
140
|
* Output of transfer
|
|
141
141
|
*
|
|
@@ -125,14 +125,14 @@ export interface ChildTransferDataDepositFn {
|
|
|
125
125
|
*/
|
|
126
126
|
created_at?: string;
|
|
127
127
|
}
|
|
128
|
-
export
|
|
129
|
-
export
|
|
128
|
+
export type CreateTransferGroupFnOptions = CreateTransferGroupTxOptions;
|
|
129
|
+
export type ChildTransferDataFn = ChildTransferDataRegularFn | ChildTransferDataWithdrawalFn | ChildTransferDataDepositFn;
|
|
130
130
|
/**
|
|
131
131
|
* Input for createTransferGroup
|
|
132
132
|
*
|
|
133
133
|
* @category Input
|
|
134
134
|
*/
|
|
135
|
-
export
|
|
135
|
+
export type CreateTransferGroupFnInput = CreateTransferGroupFnInputData & CreateTransferGroupFnOptionsProperty;
|
|
136
136
|
/**
|
|
137
137
|
* Output of createTransferGroup
|
|
138
138
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateTransferWildInput } from '../create-transfer/create-transfer.enums';
|
|
2
2
|
import { CreateTransferManyTxOptions, CreateTransferManyTxOutput } from '../../txs';
|
|
3
|
-
export
|
|
3
|
+
export type CreateTransfersFnOptions = CreateTransferManyTxOptions;
|
|
4
4
|
/**
|
|
5
5
|
* Input for createTransfers
|
|
6
6
|
*
|
|
@@ -25,13 +25,13 @@ export interface CreateWalletFnInputData {
|
|
|
25
25
|
/**
|
|
26
26
|
* Optional flags for input
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type CreateWalletFnOptions = CreateWalletTxOptions;
|
|
29
29
|
/**
|
|
30
30
|
* Input for createWallet
|
|
31
31
|
*
|
|
32
32
|
* @category Input
|
|
33
33
|
*/
|
|
34
|
-
export
|
|
34
|
+
export type CreateWalletFnInput = CreateWalletFnInputData & CreateWalletFnOptionsProperty;
|
|
35
35
|
/**
|
|
36
36
|
* Output of createWallet
|
|
37
37
|
*
|
|
@@ -45,7 +45,7 @@ export interface CreateWithdrawalInput {
|
|
|
45
45
|
*/
|
|
46
46
|
created_at?: string;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type CreateWithdrawalFnOptions = ITxGeneralOptions & CreateWithdrawalFnAdditionalOptions;
|
|
49
49
|
/**
|
|
50
50
|
* Input for withdraw
|
|
51
51
|
*
|
|
@@ -3,10 +3,10 @@ import { BalanceFields, Balance } from '../../txs';
|
|
|
3
3
|
import { StreamPromise } from '../../lib/stream-promise';
|
|
4
4
|
import { ClientFunctionOptions } from '../index';
|
|
5
5
|
import { FindBalancesFnInput, FindBalancesFnOutput, FindBalancesFnOptions, FindBalancesFnInputStringFields } from './find-balances.enums';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export type FindBalancesFnFields = BalanceFields;
|
|
7
|
+
export type FindBalancesFnResultFields = keyof Balance;
|
|
8
|
+
export type FindBalancesFnStringFields = FindBalancesFnInputStringFields | 'updated_at' | 'latest_control_hash';
|
|
9
|
+
export type FindBalancesFnMetadataFields = never;
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IFnFindOptionsExtra } from '../fn-consts.enums';
|
|
2
2
|
import { ITxLimitingOptions, FindBalanceManyOrderingOptions, ITxGeneralOptions, ITxSelectOptions, ITxDeselectOptions, ITxMetadataOptions, FindBalanceManyTxOutput } from '../../txs';
|
|
3
|
-
export
|
|
3
|
+
export type FindBalancesFnInputStringFields = 'token' | 'wallet';
|
|
4
4
|
/**
|
|
5
5
|
* findBalances function options
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type FindBalancesFnOptions = IFnFindOptionsExtra & ITxLimitingOptions & FindBalanceManyOrderingOptions & ITxGeneralOptions & ITxSelectOptions & ITxDeselectOptions & ITxMetadataOptions;
|
|
8
8
|
/**
|
|
9
9
|
* Input for findBalances
|
|
10
10
|
*
|
|
@@ -4,10 +4,10 @@ import { StreamPromise } from '../../lib/stream-promise';
|
|
|
4
4
|
import { Token } from '../../txs';
|
|
5
5
|
import { ClientFunctionOptions } from '../index';
|
|
6
6
|
import { FindTokensFnInput, FindTokensFnInputStringFields, FindTokensFnOptions, FindTokensFnOutput } from './find-tokens.enums';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
7
|
+
export type FindTokensFnFields = TokenTableBooleanFields | TokenTableNumberFields;
|
|
8
|
+
export type FindTokensFnResultFields = keyof Token;
|
|
9
|
+
export type FindTokensFnStringFields = TokenTableStringFields | FindTokensFnInputStringFields;
|
|
10
|
+
export type FindTokensFnMetadataFields = TokenTableObjectFields;
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DbFilterMetadata } from '../../db';
|
|
2
2
|
import { IFnFindOptionsExtra } from '../fn-consts.enums';
|
|
3
3
|
import { ITxLimitingOptions, FindTokenManyOrderingOptions, ITxGeneralOptions, ITxSelectOptions, ITxDeselectOptions, ITxMetadataOptions, FindTokenManyTxOutput } from '../../txs';
|
|
4
|
-
export
|
|
4
|
+
export type FindTokensFnInputStringFields = 'foreign' | 'belongs_to';
|
|
5
5
|
/**
|
|
6
6
|
* findtokens function options
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type FindTokensFnOptions = IFnFindOptionsExtra & ITxLimitingOptions & FindTokenManyOrderingOptions & ITxGeneralOptions & ITxSelectOptions & ITxDeselectOptions & ITxMetadataOptions;
|
|
9
9
|
/**
|
|
10
10
|
* Input for findTokens
|
|
11
11
|
*
|
|
@@ -3,10 +3,10 @@ import { QueryBuilder, TransferGroupTableNumberFields, TransferGroupTableObjectF
|
|
|
3
3
|
import { StreamPromise } from '../../lib/stream-promise';
|
|
4
4
|
import { TransferGroup } from '../../txs';
|
|
5
5
|
import { FindTransferGroupsFnInput, FindTransferGroupsFnOutput, FindTransferGroupsFnOptions } from './find-transfer-groups.enums';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export type FindTransferGroupsFnFields = TransferGroupTableNumberFields;
|
|
7
|
+
export type FindTransferGroupsFnResultFields = keyof TransferGroup;
|
|
8
|
+
export type FindTransferGroupsFnStringFields = TransferGroupTableStringFields | FindTransferGroupsFnInputStringFields;
|
|
9
|
+
export type FindTransferGroupsFnMetadataFields = TransferGroupTableObjectFields;
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*
|
|
@@ -6,11 +6,11 @@ import { ITxLimitingOptions, FindTransferGroupManyOrderingOptions, ITxGeneralOpt
|
|
|
6
6
|
*/
|
|
7
7
|
export interface FindTransferGroupsFnExtraOptions {
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type FindTransferGroupsFnInputStringFields = 'identifier' | 'reverses';
|
|
10
10
|
/**
|
|
11
11
|
* findTransferGroups function options
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type FindTransferGroupsFnOptions = IFnFindOptionsExtra & ITxLimitingOptions & FindTransferGroupManyOrderingOptions & ITxGeneralOptions & FindTransferGroupsFnExtraOptions & ITxSelectOptions & ITxDeselectOptions & ITxMetadataOptions;
|
|
14
14
|
/**
|
|
15
15
|
* Input for findTransferGroups
|
|
16
16
|
*
|
|
@@ -4,10 +4,10 @@ import { QueryBuilder } from '../../lib/query-builder';
|
|
|
4
4
|
import { StreamPromise } from '../../lib/stream-promise';
|
|
5
5
|
import { Transfer } from '../../txs';
|
|
6
6
|
import { FindTransfersFnInput, FindTransfersFnOutput, FindTransfersFnOptions } from './find-transfers.enums';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
7
|
+
export type FindTransfersFnFields = TransferTableBooleanFields | TransferTableNumberFields;
|
|
8
|
+
export type FindTransfersFnResultFields = keyof Transfer;
|
|
9
|
+
export type FindTransfersFnStringFields = TransferTableStringFields | FindTransfersFnInputStringFields;
|
|
10
|
+
export type FindTransfersFnMetadataFields = TransferTableObjectFields;
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*
|
|
@@ -22,11 +22,11 @@ export interface FindTransfersFnExtraOptions {
|
|
|
22
22
|
*/
|
|
23
23
|
return_signed_amount_for_wallet?: string | number;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type FindTransfersFnInputStringFields = 'wallet' | 'token' | 'from_wallet' | 'to_wallet' | 'transfer_group';
|
|
26
26
|
/**
|
|
27
27
|
* findTransfers function options
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export type FindTransfersFnOptions = IFnFindOptionsExtra & ITxLimitingOptions & FindTransferManyOrderingOptions & ITxGeneralOptions & FindTransfersFnExtraOptions & ITxSelectOptions & ITxDeselectOptions & ITxMetadataOptions;
|
|
30
30
|
/**
|
|
31
31
|
* Input for findTransfers
|
|
32
32
|
*
|
|
@@ -4,10 +4,10 @@ import { StreamPromise } from '../../lib/stream-promise';
|
|
|
4
4
|
import { QueryBuilder } from '../../lib/query-builder';
|
|
5
5
|
import { WalletWithBalanceFields, AdvancedWalletFilterNumberFields } from '../../txs';
|
|
6
6
|
import { FindWalletsFnInput, FindWalletsFnOutput, FindWalletsFnOptions } from './find-wallets.enums';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
7
|
+
export type FindWalletsFnFields = AdvancedWalletFilterNumberFields;
|
|
8
|
+
export type FindWalletsFnResultFields = WalletWithBalanceFields;
|
|
9
|
+
export type FindWalletsFnStringFields = WalletTableStringFields;
|
|
10
|
+
export type FindWalletsFnMetadataFields = WalletTableObjectFields;
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*
|
|
@@ -10,7 +10,7 @@ export interface FindWalletsFnExtraOptions {
|
|
|
10
10
|
/**
|
|
11
11
|
* Optional flags for input
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type FindWalletsFnOptions = IFnFindOptionsExtra & FindWalletManyTxOptions & FindWalletsFnExtraOptions;
|
|
14
14
|
/**
|
|
15
15
|
* Input for findWallets
|
|
16
16
|
*
|
|
@@ -11,4 +11,4 @@ export interface IFnFindOptionsExtra {
|
|
|
11
11
|
/**
|
|
12
12
|
* extended find options for client functions
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type IFnFindOptions = ITxLimitingOptions & ITxOrderingOptions & IFnFindOptionsExtra;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetBalanceTxOptions, GetBalanceTxOutput } from '../../txs';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type GetBalanceFnInputStringFields = 'token' | 'wallet' | 'datetime';
|
|
3
|
+
export type GetBalanceFnOptions = GetBalanceTxOptions;
|
|
4
4
|
/**
|
|
5
5
|
* Input for Getbalance
|
|
6
6
|
*
|