wapi-client 0.14.4 → 0.14.11
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.browser.cjs +15 -0
- package/dist/api/base-client.browser.js +15 -0
- package/dist/api/base-client.cjs +15 -0
- package/dist/api/base-client.js +15 -0
- package/dist/client.browser.cjs +28 -2
- package/dist/client.browser.js +28 -2
- package/dist/client.cjs +28 -2
- package/dist/client.js +28 -2
- package/dist/fns/consts.browser.cjs +1 -1
- package/dist/fns/consts.browser.js +1 -1
- package/dist/fns/consts.cjs +1 -1
- package/dist/fns/consts.js +1 -1
- package/dist/fns/create-contract/create-contract.browser.cjs +4 -5
- package/dist/fns/create-contract/create-contract.browser.js +4 -5
- package/dist/fns/create-contract/create-contract.cjs +4 -5
- package/dist/fns/create-contract/create-contract.js +4 -5
- package/dist/fns/create-deposit/create-deposit.browser.cjs +3 -3
- package/dist/fns/create-deposit/create-deposit.browser.js +3 -5
- package/dist/fns/create-deposit/create-deposit.cjs +3 -3
- package/dist/fns/create-deposit/create-deposit.js +3 -5
- package/dist/fns/create-exchange/create-exchange.browser.cjs +6 -6
- package/dist/fns/create-exchange/create-exchange.browser.js +7 -7
- package/dist/fns/create-exchange/create-exchange.cjs +6 -6
- package/dist/fns/create-exchange/create-exchange.js +7 -7
- package/dist/fns/create-token/create-token.browser.cjs +1 -2
- package/dist/fns/create-token/create-token.browser.js +1 -2
- package/dist/fns/create-token/create-token.cjs +1 -2
- package/dist/fns/create-token/create-token.js +1 -2
- package/dist/fns/create-transfer/create-transfer.browser.cjs +6 -6
- package/dist/fns/create-transfer/create-transfer.browser.js +6 -8
- package/dist/fns/create-transfer/create-transfer.cjs +6 -6
- package/dist/fns/create-transfer/create-transfer.js +6 -8
- package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +3 -3
- package/dist/fns/create-withdrawal/create-withdrawal.browser.js +3 -5
- package/dist/fns/create-withdrawal/create-withdrawal.cjs +3 -3
- package/dist/fns/create-withdrawal/create-withdrawal.js +3 -5
- package/dist/fns/export-balance-history/export-balance-history.browser.cjs +1 -2
- package/dist/fns/export-balance-history/export-balance-history.browser.js +1 -2
- package/dist/fns/export-balance-history/export-balance-history.cjs +1 -2
- package/dist/fns/export-balance-history/export-balance-history.js +1 -2
- package/dist/fns/export-balances/export-balances.browser.cjs +49 -0
- package/dist/fns/export-balances/export-balances.browser.js +28 -0
- package/dist/fns/export-balances/export-balances.cjs +53 -0
- package/dist/fns/export-balances/export-balances.enums.browser.cjs +18 -0
- package/dist/fns/export-balances/export-balances.enums.browser.js +0 -0
- package/dist/fns/export-balances/export-balances.enums.cjs +18 -0
- package/dist/fns/export-balances/export-balances.enums.js +0 -0
- package/dist/fns/export-balances/export-balances.js +28 -0
- package/dist/fns/export-balances/export-balances.schema.zod.browser.cjs +40 -0
- package/dist/fns/export-balances/export-balances.schema.zod.browser.js +22 -0
- package/dist/fns/export-balances/export-balances.schema.zod.cjs +48 -0
- package/dist/fns/export-balances/export-balances.schema.zod.js +22 -0
- package/dist/fns/find-balances/find-balances.schema.zod.browser.cjs +14 -5
- package/dist/fns/find-balances/find-balances.schema.zod.browser.js +12 -3
- package/dist/fns/find-balances/find-balances.schema.zod.cjs +14 -5
- package/dist/fns/find-balances/find-balances.schema.zod.js +12 -3
- package/dist/fns/fn-types.browser.cjs +1 -0
- package/dist/fns/fn-types.browser.js +1 -0
- package/dist/fns/fn-types.cjs +2 -0
- package/dist/fns/fn-types.js +1 -0
- package/dist/fns/get-balance/get-balance.browser.cjs +2 -2
- package/dist/fns/get-balance/get-balance.browser.js +3 -3
- package/dist/fns/get-balance/get-balance.cjs +2 -2
- package/dist/fns/get-balance/get-balance.js +3 -3
- package/dist/fns/get-balance-history/get-balance-history.browser.cjs +2 -3
- package/dist/fns/get-balance-history/get-balance-history.browser.js +2 -3
- package/dist/fns/get-balance-history/get-balance-history.cjs +2 -3
- package/dist/fns/get-balance-history/get-balance-history.js +2 -3
- package/dist/fns/get-token/get-token.browser.cjs +1 -2
- package/dist/fns/get-token/get-token.browser.js +1 -2
- package/dist/fns/get-token/get-token.cjs +1 -2
- package/dist/fns/get-token/get-token.js +1 -2
- package/dist/fns/get-transfer/get-transfer.browser.cjs +1 -2
- package/dist/fns/get-transfer/get-transfer.browser.js +1 -2
- package/dist/fns/get-transfer/get-transfer.cjs +1 -2
- package/dist/fns/get-transfer/get-transfer.js +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.browser.cjs +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.browser.js +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.cjs +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.js +1 -2
- package/dist/fns/get-wallet/get-wallet.browser.cjs +1 -2
- package/dist/fns/get-wallet/get-wallet.browser.js +1 -2
- package/dist/fns/get-wallet/get-wallet.cjs +1 -2
- package/dist/fns/get-wallet/get-wallet.js +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.browser.cjs +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.browser.js +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.cjs +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.js +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.cjs +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.js +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.cjs +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.js +1 -2
- package/dist/fns/update-token/update-token.browser.cjs +1 -2
- package/dist/fns/update-token/update-token.browser.js +1 -2
- package/dist/fns/update-token/update-token.cjs +1 -2
- package/dist/fns/update-token/update-token.js +1 -2
- package/dist/fns/update-transfer/update-transfer.browser.cjs +1 -2
- package/dist/fns/update-transfer/update-transfer.browser.js +1 -2
- package/dist/fns/update-transfer/update-transfer.cjs +1 -2
- package/dist/fns/update-transfer/update-transfer.js +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.browser.cjs +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.browser.js +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.cjs +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.js +1 -2
- package/dist/fns/update-wallet/update-wallet.browser.cjs +1 -2
- package/dist/fns/update-wallet/update-wallet.browser.js +1 -2
- package/dist/fns/update-wallet/update-wallet.cjs +1 -2
- package/dist/fns/update-wallet/update-wallet.js +1 -2
- package/dist/lib/env.browser.cjs +1 -1
- package/dist/lib/env.browser.js +1 -1
- package/dist/lib/env.cjs +1 -1
- package/dist/lib/env.js +1 -1
- package/dist/lib/utils.browser.cjs +0 -27
- package/dist/lib/utils.browser.js +0 -27
- package/dist/lib/utils.cjs +0 -30
- package/dist/lib/utils.js +0 -27
- package/dist/lib/validator.browser.cjs +6 -0
- package/dist/lib/validator.browser.js +12 -0
- package/dist/lib/validator.cjs +6 -0
- package/dist/lib/validator.js +12 -0
- package/dist/txs/consts.browser.cjs +12 -3
- package/dist/txs/consts.browser.js +12 -3
- package/dist/txs/consts.cjs +12 -3
- package/dist/txs/consts.js +12 -3
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.cjs +34 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.js +34 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.cjs +34 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.js +34 -1
- package/dist/txs/export-balance-many/export-balance-many.enums.browser.cjs +18 -0
- package/dist/txs/export-balance-many/export-balance-many.enums.browser.js +0 -0
- package/dist/txs/export-balance-many/export-balance-many.enums.cjs +18 -0
- package/dist/txs/export-balance-many/export-balance-many.enums.js +0 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.browser.cjs +48 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.browser.js +30 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.cjs +55 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.js +30 -0
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.cjs +4 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.js +4 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.cjs +4 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.js +4 -1
- package/dist/txs/get-balance/get-balance.schema.zod.browser.cjs +2 -0
- package/dist/txs/get-balance/get-balance.schema.zod.browser.js +2 -0
- package/dist/txs/get-balance/get-balance.schema.zod.cjs +2 -0
- package/dist/txs/get-balance/get-balance.schema.zod.js +2 -0
- package/dist/txs/get-export/get-export.schema.zod.browser.cjs +1 -0
- package/dist/txs/get-export/get-export.schema.zod.browser.js +1 -0
- package/dist/txs/get-export/get-export.schema.zod.cjs +1 -0
- package/dist/txs/get-export/get-export.schema.zod.js +1 -0
- package/dist/txs/index.browser.cjs +3 -0
- package/dist/txs/index.browser.js +3 -0
- package/dist/txs/index.cjs +3 -0
- package/dist/txs/index.js +3 -0
- package/dist/txs/tx-types.browser.cjs +1 -0
- package/dist/txs/tx-types.browser.js +1 -0
- package/dist/txs/tx-types.cjs +2 -0
- package/dist/txs/tx-types.js +1 -0
- package/dist/types/wapi-client.d.ts +10190 -4354
- package/dist/wapi-client-web.iife.js +8 -8
- package/dist/wapi-client.iife.js +8 -8
- package/package.json +1 -1
package/dist/lib/utils.cjs
CHANGED
|
@@ -52,12 +52,9 @@ __export(utils_exports, {
|
|
|
52
52
|
copyObject: () => copyObject,
|
|
53
53
|
getConnectionParams: () => getConnectionParams,
|
|
54
54
|
getConnectionUrl: () => getConnectionUrl,
|
|
55
|
-
getForeign: () => getForeign,
|
|
56
55
|
getIdentifier: () => getIdentifier,
|
|
57
|
-
getIdentifierFilter: () => getIdentifierFilter,
|
|
58
56
|
getRandomHex: () => getRandomHex,
|
|
59
57
|
getTxIdSync: () => getTxIdSync,
|
|
60
|
-
inputToString: () => inputToString,
|
|
61
58
|
isDate: () => isDate,
|
|
62
59
|
isDateTime: () => isDateTime,
|
|
63
60
|
isFutureDate: () => isFutureDate,
|
|
@@ -207,30 +204,6 @@ function checkCopyObject(input, property, value) {
|
|
|
207
204
|
copy[property] = value;
|
|
208
205
|
return copy;
|
|
209
206
|
}
|
|
210
|
-
function getForeign(value) {
|
|
211
|
-
const stringValue = inputToString(value);
|
|
212
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
213
|
-
return void 0;
|
|
214
|
-
}
|
|
215
|
-
return {
|
|
216
|
-
foreign: stringValue
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
function getIdentifierFilter(value) {
|
|
220
|
-
const stringValue = inputToString(value);
|
|
221
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
222
|
-
return void 0;
|
|
223
|
-
}
|
|
224
|
-
return {
|
|
225
|
-
identifier: stringValue
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function inputToString(value) {
|
|
229
|
-
if (value === void 0 || value === null) {
|
|
230
|
-
return value;
|
|
231
|
-
}
|
|
232
|
-
return value + "";
|
|
233
|
-
}
|
|
234
207
|
function toQueryString(obj) {
|
|
235
208
|
return Object.keys(obj).filter((key) => obj[key] !== void 0).map(
|
|
236
209
|
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`
|
|
@@ -349,12 +322,9 @@ function isDateTime(str) {
|
|
|
349
322
|
copyObject,
|
|
350
323
|
getConnectionParams,
|
|
351
324
|
getConnectionUrl,
|
|
352
|
-
getForeign,
|
|
353
325
|
getIdentifier,
|
|
354
|
-
getIdentifierFilter,
|
|
355
326
|
getRandomHex,
|
|
356
327
|
getTxIdSync,
|
|
357
|
-
inputToString,
|
|
358
328
|
isDate,
|
|
359
329
|
isDateTime,
|
|
360
330
|
isFutureDate,
|
package/dist/lib/utils.js
CHANGED
|
@@ -166,30 +166,6 @@ function checkCopyObject(input, property, value) {
|
|
|
166
166
|
copy[property] = value;
|
|
167
167
|
return copy;
|
|
168
168
|
}
|
|
169
|
-
function getForeign(value) {
|
|
170
|
-
const stringValue = inputToString(value);
|
|
171
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
172
|
-
return void 0;
|
|
173
|
-
}
|
|
174
|
-
return {
|
|
175
|
-
foreign: stringValue
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
function getIdentifierFilter(value) {
|
|
179
|
-
const stringValue = inputToString(value);
|
|
180
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
181
|
-
return void 0;
|
|
182
|
-
}
|
|
183
|
-
return {
|
|
184
|
-
identifier: stringValue
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
function inputToString(value) {
|
|
188
|
-
if (value === void 0 || value === null) {
|
|
189
|
-
return value;
|
|
190
|
-
}
|
|
191
|
-
return value + "";
|
|
192
|
-
}
|
|
193
169
|
function toQueryString(obj) {
|
|
194
170
|
return Object.keys(obj).filter((key) => obj[key] !== void 0).map(
|
|
195
171
|
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`
|
|
@@ -307,12 +283,9 @@ export {
|
|
|
307
283
|
copyObject,
|
|
308
284
|
getConnectionParams,
|
|
309
285
|
getConnectionUrl,
|
|
310
|
-
getForeign,
|
|
311
286
|
getIdentifier,
|
|
312
|
-
getIdentifierFilter,
|
|
313
287
|
getRandomHex,
|
|
314
288
|
getTxIdSync,
|
|
315
|
-
inputToString,
|
|
316
289
|
isDate,
|
|
317
290
|
isDateTime,
|
|
318
291
|
isFutureDate,
|
|
@@ -36,6 +36,7 @@ var import_create_transfers_schema_zod = require("../fns/create-transfers/create
|
|
|
36
36
|
var import_create_wallet_schema_zod = require("../fns/create-wallet/create-wallet.schema.zod.browser.cjs");
|
|
37
37
|
var import_create_withdrawal_schema_zod = require("../fns/create-withdrawal/create-withdrawal.schema.zod.browser.cjs");
|
|
38
38
|
var import_export_balance_history_schema_zod = require("../fns/export-balance-history/export-balance-history.schema.zod.browser.cjs");
|
|
39
|
+
var import_export_balances_schema_zod = require("../fns/export-balances/export-balances.schema.zod.browser.cjs");
|
|
39
40
|
var import_export_tokens_schema_zod = require("../fns/export-tokens/export-tokens.schema.zod.browser.cjs");
|
|
40
41
|
var import_export_transfer_groups_schema_zod = require("../fns/export-transfer-groups/export-transfer-groups.schema.zod.browser.cjs");
|
|
41
42
|
var import_export_transfers_schema_zod = require("../fns/export-transfers/export-transfers.schema.zod.browser.cjs");
|
|
@@ -80,6 +81,7 @@ var import_create_transfer_many_schema_zod = require("../txs/create-transfer-man
|
|
|
80
81
|
var import_create_wallet_schema_zod2 = require("../txs/create-wallet/create-wallet.schema.zod.browser.cjs");
|
|
81
82
|
var import_create_withdrawal_schema_zod2 = require("../txs/create-withdrawal/create-withdrawal.schema.zod.browser.cjs");
|
|
82
83
|
var import_export_balance_history_schema_zod2 = require("../txs/export-balance-history/export-balance-history.schema.zod.browser.cjs");
|
|
84
|
+
var import_export_balance_many_schema_zod = require("../txs/export-balance-many/export-balance-many.schema.zod.browser.cjs");
|
|
83
85
|
var import_export_token_many_schema_zod = require("../txs/export-token-many/export-token-many.schema.zod.browser.cjs");
|
|
84
86
|
var import_export_transfer_group_many_schema_zod = require("../txs/export-transfer-group-many/export-transfer-group-many.schema.zod.browser.cjs");
|
|
85
87
|
var import_export_transfer_many_schema_zod = require("../txs/export-transfer-many/export-transfer-many.schema.zod.browser.cjs");
|
|
@@ -146,6 +148,8 @@ var Validator = {
|
|
|
146
148
|
exportBalanceHistoryFnOutput: (0, import_validation.getValidator)(
|
|
147
149
|
import_export_balance_history_schema_zod.exportBalanceHistoryFnOutputSchema
|
|
148
150
|
),
|
|
151
|
+
exportBalancesFnInput: (0, import_validation.getValidator)(import_export_balances_schema_zod.exportBalancesFnInputSchema),
|
|
152
|
+
exportBalancesFnOutput: (0, import_validation.getValidator)(import_export_balances_schema_zod.exportBalancesFnOutputSchema),
|
|
149
153
|
exportTokensFnInput: (0, import_validation.getValidator)(import_export_tokens_schema_zod.exportTokensFnInputSchema),
|
|
150
154
|
exportTokensFnOutput: (0, import_validation.getValidator)(import_export_tokens_schema_zod.exportTokensFnOutputSchema),
|
|
151
155
|
exportTransferGroupsFnInput: (0, import_validation.getValidator)(import_export_transfer_groups_schema_zod.exportTransferGroupsFnInputSchema),
|
|
@@ -246,6 +250,8 @@ var Validator = {
|
|
|
246
250
|
exportBalanceHistoryTxOutput: (0, import_validation.getValidator)(
|
|
247
251
|
import_export_balance_history_schema_zod2.exportBalanceHistoryTxOutputSchema
|
|
248
252
|
),
|
|
253
|
+
exportBalanceManyTxInput: (0, import_validation.getValidator)(import_export_balance_many_schema_zod.exportBalanceManyTxInputSchema),
|
|
254
|
+
exportBalanceManyTxOutput: (0, import_validation.getValidator)(import_export_balance_many_schema_zod.exportBalanceManyTxOutputSchema),
|
|
249
255
|
exportTokenManyTxInput: (0, import_validation.getValidator)(import_export_token_many_schema_zod.exportTokenManyTxInputSchema),
|
|
250
256
|
exportTokenManyTxOutput: (0, import_validation.getValidator)(import_export_token_many_schema_zod.exportTokenManyTxOutputSchema),
|
|
251
257
|
exportTransferGroupManyTxInput: (0, import_validation.getValidator)(
|
|
@@ -48,6 +48,10 @@ import {
|
|
|
48
48
|
exportBalanceHistoryFnInputSchema,
|
|
49
49
|
exportBalanceHistoryFnOutputSchema
|
|
50
50
|
} from "../fns/export-balance-history/export-balance-history.schema.zod.browser.js";
|
|
51
|
+
import {
|
|
52
|
+
exportBalancesFnInputSchema,
|
|
53
|
+
exportBalancesFnOutputSchema
|
|
54
|
+
} from "../fns/export-balances/export-balances.schema.zod.browser.js";
|
|
51
55
|
import {
|
|
52
56
|
exportTokensFnInputSchema,
|
|
53
57
|
exportTokensFnOutputSchema
|
|
@@ -224,6 +228,10 @@ import {
|
|
|
224
228
|
exportBalanceHistoryTxInputSchema,
|
|
225
229
|
exportBalanceHistoryTxOutputSchema
|
|
226
230
|
} from "../txs/export-balance-history/export-balance-history.schema.zod.browser.js";
|
|
231
|
+
import {
|
|
232
|
+
exportBalanceManyTxInputSchema,
|
|
233
|
+
exportBalanceManyTxOutputSchema
|
|
234
|
+
} from "../txs/export-balance-many/export-balance-many.schema.zod.browser.js";
|
|
227
235
|
import {
|
|
228
236
|
exportTokenManyTxInputSchema,
|
|
229
237
|
exportTokenManyTxOutputSchema
|
|
@@ -407,6 +415,8 @@ var Validator = {
|
|
|
407
415
|
exportBalanceHistoryFnOutput: getValidator(
|
|
408
416
|
exportBalanceHistoryFnOutputSchema
|
|
409
417
|
),
|
|
418
|
+
exportBalancesFnInput: getValidator(exportBalancesFnInputSchema),
|
|
419
|
+
exportBalancesFnOutput: getValidator(exportBalancesFnOutputSchema),
|
|
410
420
|
exportTokensFnInput: getValidator(exportTokensFnInputSchema),
|
|
411
421
|
exportTokensFnOutput: getValidator(exportTokensFnOutputSchema),
|
|
412
422
|
exportTransferGroupsFnInput: getValidator(exportTransferGroupsFnInputSchema),
|
|
@@ -507,6 +517,8 @@ var Validator = {
|
|
|
507
517
|
exportBalanceHistoryTxOutput: getValidator(
|
|
508
518
|
exportBalanceHistoryTxOutputSchema
|
|
509
519
|
),
|
|
520
|
+
exportBalanceManyTxInput: getValidator(exportBalanceManyTxInputSchema),
|
|
521
|
+
exportBalanceManyTxOutput: getValidator(exportBalanceManyTxOutputSchema),
|
|
510
522
|
exportTokenManyTxInput: getValidator(exportTokenManyTxInputSchema),
|
|
511
523
|
exportTokenManyTxOutput: getValidator(exportTokenManyTxOutputSchema),
|
|
512
524
|
exportTransferGroupManyTxInput: getValidator(
|
package/dist/lib/validator.cjs
CHANGED
|
@@ -36,6 +36,7 @@ var import_create_transfers_schema_zod = require("../fns/create-transfers/creat
|
|
|
36
36
|
var import_create_wallet_schema_zod = require("../fns/create-wallet/create-wallet.schema.zod.cjs");
|
|
37
37
|
var import_create_withdrawal_schema_zod = require("../fns/create-withdrawal/create-withdrawal.schema.zod.cjs");
|
|
38
38
|
var import_export_balance_history_schema_zod = require("../fns/export-balance-history/export-balance-history.schema.zod.cjs");
|
|
39
|
+
var import_export_balances_schema_zod = require("../fns/export-balances/export-balances.schema.zod.cjs");
|
|
39
40
|
var import_export_tokens_schema_zod = require("../fns/export-tokens/export-tokens.schema.zod.cjs");
|
|
40
41
|
var import_export_transfer_groups_schema_zod = require("../fns/export-transfer-groups/export-transfer-groups.schema.zod.cjs");
|
|
41
42
|
var import_export_transfers_schema_zod = require("../fns/export-transfers/export-transfers.schema.zod.cjs");
|
|
@@ -80,6 +81,7 @@ var import_create_transfer_many_schema_zod = require("../txs/create-transfer-ma
|
|
|
80
81
|
var import_create_wallet_schema_zod2 = require("../txs/create-wallet/create-wallet.schema.zod.cjs");
|
|
81
82
|
var import_create_withdrawal_schema_zod2 = require("../txs/create-withdrawal/create-withdrawal.schema.zod.cjs");
|
|
82
83
|
var import_export_balance_history_schema_zod2 = require("../txs/export-balance-history/export-balance-history.schema.zod.cjs");
|
|
84
|
+
var import_export_balance_many_schema_zod = require("../txs/export-balance-many/export-balance-many.schema.zod.cjs");
|
|
83
85
|
var import_export_token_many_schema_zod = require("../txs/export-token-many/export-token-many.schema.zod.cjs");
|
|
84
86
|
var import_export_transfer_group_many_schema_zod = require("../txs/export-transfer-group-many/export-transfer-group-many.schema.zod.cjs");
|
|
85
87
|
var import_export_transfer_many_schema_zod = require("../txs/export-transfer-many/export-transfer-many.schema.zod.cjs");
|
|
@@ -146,6 +148,8 @@ var Validator = {
|
|
|
146
148
|
exportBalanceHistoryFnOutput: (0, import_validation.getValidator)(
|
|
147
149
|
import_export_balance_history_schema_zod.exportBalanceHistoryFnOutputSchema
|
|
148
150
|
),
|
|
151
|
+
exportBalancesFnInput: (0, import_validation.getValidator)(import_export_balances_schema_zod.exportBalancesFnInputSchema),
|
|
152
|
+
exportBalancesFnOutput: (0, import_validation.getValidator)(import_export_balances_schema_zod.exportBalancesFnOutputSchema),
|
|
149
153
|
exportTokensFnInput: (0, import_validation.getValidator)(import_export_tokens_schema_zod.exportTokensFnInputSchema),
|
|
150
154
|
exportTokensFnOutput: (0, import_validation.getValidator)(import_export_tokens_schema_zod.exportTokensFnOutputSchema),
|
|
151
155
|
exportTransferGroupsFnInput: (0, import_validation.getValidator)(import_export_transfer_groups_schema_zod.exportTransferGroupsFnInputSchema),
|
|
@@ -246,6 +250,8 @@ var Validator = {
|
|
|
246
250
|
exportBalanceHistoryTxOutput: (0, import_validation.getValidator)(
|
|
247
251
|
import_export_balance_history_schema_zod2.exportBalanceHistoryTxOutputSchema
|
|
248
252
|
),
|
|
253
|
+
exportBalanceManyTxInput: (0, import_validation.getValidator)(import_export_balance_many_schema_zod.exportBalanceManyTxInputSchema),
|
|
254
|
+
exportBalanceManyTxOutput: (0, import_validation.getValidator)(import_export_balance_many_schema_zod.exportBalanceManyTxOutputSchema),
|
|
249
255
|
exportTokenManyTxInput: (0, import_validation.getValidator)(import_export_token_many_schema_zod.exportTokenManyTxInputSchema),
|
|
250
256
|
exportTokenManyTxOutput: (0, import_validation.getValidator)(import_export_token_many_schema_zod.exportTokenManyTxOutputSchema),
|
|
251
257
|
exportTransferGroupManyTxInput: (0, import_validation.getValidator)(
|
package/dist/lib/validator.js
CHANGED
|
@@ -48,6 +48,10 @@ import {
|
|
|
48
48
|
exportBalanceHistoryFnInputSchema,
|
|
49
49
|
exportBalanceHistoryFnOutputSchema
|
|
50
50
|
} from "../fns/export-balance-history/export-balance-history.schema.zod.js";
|
|
51
|
+
import {
|
|
52
|
+
exportBalancesFnInputSchema,
|
|
53
|
+
exportBalancesFnOutputSchema
|
|
54
|
+
} from "../fns/export-balances/export-balances.schema.zod.js";
|
|
51
55
|
import {
|
|
52
56
|
exportTokensFnInputSchema,
|
|
53
57
|
exportTokensFnOutputSchema
|
|
@@ -224,6 +228,10 @@ import {
|
|
|
224
228
|
exportBalanceHistoryTxInputSchema,
|
|
225
229
|
exportBalanceHistoryTxOutputSchema
|
|
226
230
|
} from "../txs/export-balance-history/export-balance-history.schema.zod.js";
|
|
231
|
+
import {
|
|
232
|
+
exportBalanceManyTxInputSchema,
|
|
233
|
+
exportBalanceManyTxOutputSchema
|
|
234
|
+
} from "../txs/export-balance-many/export-balance-many.schema.zod.js";
|
|
227
235
|
import {
|
|
228
236
|
exportTokenManyTxInputSchema,
|
|
229
237
|
exportTokenManyTxOutputSchema
|
|
@@ -407,6 +415,8 @@ var Validator = {
|
|
|
407
415
|
exportBalanceHistoryFnOutput: getValidator(
|
|
408
416
|
exportBalanceHistoryFnOutputSchema
|
|
409
417
|
),
|
|
418
|
+
exportBalancesFnInput: getValidator(exportBalancesFnInputSchema),
|
|
419
|
+
exportBalancesFnOutput: getValidator(exportBalancesFnOutputSchema),
|
|
410
420
|
exportTokensFnInput: getValidator(exportTokensFnInputSchema),
|
|
411
421
|
exportTokensFnOutput: getValidator(exportTokensFnOutputSchema),
|
|
412
422
|
exportTransferGroupsFnInput: getValidator(exportTransferGroupsFnInputSchema),
|
|
@@ -507,6 +517,8 @@ var Validator = {
|
|
|
507
517
|
exportBalanceHistoryTxOutput: getValidator(
|
|
508
518
|
exportBalanceHistoryTxOutputSchema
|
|
509
519
|
),
|
|
520
|
+
exportBalanceManyTxInput: getValidator(exportBalanceManyTxInputSchema),
|
|
521
|
+
exportBalanceManyTxOutput: getValidator(exportBalanceManyTxOutputSchema),
|
|
510
522
|
exportTokenManyTxInput: getValidator(exportTokenManyTxInputSchema),
|
|
511
523
|
exportTokenManyTxOutput: getValidator(exportTokenManyTxOutputSchema),
|
|
512
524
|
exportTransferGroupManyTxInput: getValidator(
|
|
@@ -71,7 +71,7 @@ var stringNumberToInteger = import_zod.z.union([
|
|
|
71
71
|
import_zod.z.number().int().positive()
|
|
72
72
|
]).transform((strNr) => Number(strNr));
|
|
73
73
|
var stringNumberToNumber = import_zod.z.union([
|
|
74
|
-
import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
|
|
74
|
+
import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
|
|
75
75
|
import_zod.z.number()
|
|
76
76
|
]).transform((strNr) => parseFloat(String(strNr)));
|
|
77
77
|
var iTxTrackingOptions = import_zod.z.object({
|
|
@@ -104,17 +104,25 @@ var idForeignSubFilter = import_zod.z.object({
|
|
|
104
104
|
foreign: import_zod.z.string().max(255).describe("foreign of the object")
|
|
105
105
|
}).strict().partial();
|
|
106
106
|
var foreignFilter = import_zod.z.union([
|
|
107
|
+
import_zod.z.string(),
|
|
108
|
+
import_zod.z.number(),
|
|
107
109
|
idForeignSubFilter.required({ id: true }),
|
|
108
110
|
idForeignSubFilter.required({ foreign: true })
|
|
109
|
-
])
|
|
111
|
+
]).transform(
|
|
112
|
+
(foreign) => typeof foreign !== "object" ? { foreign: foreign + "" } : foreign
|
|
113
|
+
);
|
|
110
114
|
var idIdentifierSubFilter = import_zod.z.object({
|
|
111
115
|
id: import_zod.z.number().int().positive().describe("id of the object"),
|
|
112
116
|
identifier: import_zod.z.string().max(255).describe("identifier of the object")
|
|
113
117
|
}).strict().partial();
|
|
114
118
|
var identifierFilter = import_zod.z.union([
|
|
119
|
+
import_zod.z.string(),
|
|
120
|
+
import_zod.z.number(),
|
|
115
121
|
idIdentifierSubFilter.required({ id: true }),
|
|
116
122
|
idIdentifierSubFilter.required({ identifier: true })
|
|
117
|
-
])
|
|
123
|
+
]).transform(
|
|
124
|
+
(identifier) => typeof identifier !== "object" ? { identifier: identifier + "" } : identifier
|
|
125
|
+
);
|
|
118
126
|
var iTxMetadataAction = import_zod.z.enum(["replace", "extend"]).default("replace").describe("Whether to replace or extend current metadata with new value");
|
|
119
127
|
var iTxMetadataActionForReverse = import_zod.z.enum([
|
|
120
128
|
"replace",
|
|
@@ -232,6 +240,7 @@ var iTxFunctionNames = import_zod.z.enum([
|
|
|
232
240
|
"createWallet",
|
|
233
241
|
"createWithdrawal",
|
|
234
242
|
"exportBalanceHistory",
|
|
243
|
+
"exportBalanceMany",
|
|
235
244
|
"exportTokenMany",
|
|
236
245
|
"exportTransferGroupMany",
|
|
237
246
|
"exportTransferMany",
|
|
@@ -12,7 +12,7 @@ var stringNumberToInteger = z.union([
|
|
|
12
12
|
z.number().int().positive()
|
|
13
13
|
]).transform((strNr) => Number(strNr));
|
|
14
14
|
var stringNumberToNumber = z.union([
|
|
15
|
-
z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
|
|
15
|
+
z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
|
|
16
16
|
z.number()
|
|
17
17
|
]).transform((strNr) => parseFloat(String(strNr)));
|
|
18
18
|
var iTxTrackingOptions = z.object({
|
|
@@ -45,17 +45,25 @@ var idForeignSubFilter = z.object({
|
|
|
45
45
|
foreign: z.string().max(255).describe("foreign of the object")
|
|
46
46
|
}).strict().partial();
|
|
47
47
|
var foreignFilter = z.union([
|
|
48
|
+
z.string(),
|
|
49
|
+
z.number(),
|
|
48
50
|
idForeignSubFilter.required({ id: true }),
|
|
49
51
|
idForeignSubFilter.required({ foreign: true })
|
|
50
|
-
])
|
|
52
|
+
]).transform(
|
|
53
|
+
(foreign) => typeof foreign !== "object" ? { foreign: foreign + "" } : foreign
|
|
54
|
+
);
|
|
51
55
|
var idIdentifierSubFilter = z.object({
|
|
52
56
|
id: z.number().int().positive().describe("id of the object"),
|
|
53
57
|
identifier: z.string().max(255).describe("identifier of the object")
|
|
54
58
|
}).strict().partial();
|
|
55
59
|
var identifierFilter = z.union([
|
|
60
|
+
z.string(),
|
|
61
|
+
z.number(),
|
|
56
62
|
idIdentifierSubFilter.required({ id: true }),
|
|
57
63
|
idIdentifierSubFilter.required({ identifier: true })
|
|
58
|
-
])
|
|
64
|
+
]).transform(
|
|
65
|
+
(identifier) => typeof identifier !== "object" ? { identifier: identifier + "" } : identifier
|
|
66
|
+
);
|
|
59
67
|
var iTxMetadataAction = z.enum(["replace", "extend"]).default("replace").describe("Whether to replace or extend current metadata with new value");
|
|
60
68
|
var iTxMetadataActionForReverse = z.enum([
|
|
61
69
|
"replace",
|
|
@@ -173,6 +181,7 @@ var iTxFunctionNames = z.enum([
|
|
|
173
181
|
"createWallet",
|
|
174
182
|
"createWithdrawal",
|
|
175
183
|
"exportBalanceHistory",
|
|
184
|
+
"exportBalanceMany",
|
|
176
185
|
"exportTokenMany",
|
|
177
186
|
"exportTransferGroupMany",
|
|
178
187
|
"exportTransferMany",
|
package/dist/txs/consts.cjs
CHANGED
|
@@ -71,7 +71,7 @@ var stringNumberToInteger = import_zod.z.union([
|
|
|
71
71
|
import_zod.z.number().int().positive()
|
|
72
72
|
]).transform((strNr) => Number(strNr));
|
|
73
73
|
var stringNumberToNumber = import_zod.z.union([
|
|
74
|
-
import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
|
|
74
|
+
import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
|
|
75
75
|
import_zod.z.number()
|
|
76
76
|
]).transform((strNr) => parseFloat(String(strNr)));
|
|
77
77
|
var iTxTrackingOptions = import_zod.z.object({
|
|
@@ -104,17 +104,25 @@ var idForeignSubFilter = import_zod.z.object({
|
|
|
104
104
|
foreign: import_zod.z.string().max(255).describe("foreign of the object")
|
|
105
105
|
}).strict().partial();
|
|
106
106
|
var foreignFilter = import_zod.z.union([
|
|
107
|
+
import_zod.z.string(),
|
|
108
|
+
import_zod.z.number(),
|
|
107
109
|
idForeignSubFilter.required({ id: true }),
|
|
108
110
|
idForeignSubFilter.required({ foreign: true })
|
|
109
|
-
])
|
|
111
|
+
]).transform(
|
|
112
|
+
(foreign) => typeof foreign !== "object" ? { foreign: foreign + "" } : foreign
|
|
113
|
+
);
|
|
110
114
|
var idIdentifierSubFilter = import_zod.z.object({
|
|
111
115
|
id: import_zod.z.number().int().positive().describe("id of the object"),
|
|
112
116
|
identifier: import_zod.z.string().max(255).describe("identifier of the object")
|
|
113
117
|
}).strict().partial();
|
|
114
118
|
var identifierFilter = import_zod.z.union([
|
|
119
|
+
import_zod.z.string(),
|
|
120
|
+
import_zod.z.number(),
|
|
115
121
|
idIdentifierSubFilter.required({ id: true }),
|
|
116
122
|
idIdentifierSubFilter.required({ identifier: true })
|
|
117
|
-
])
|
|
123
|
+
]).transform(
|
|
124
|
+
(identifier) => typeof identifier !== "object" ? { identifier: identifier + "" } : identifier
|
|
125
|
+
);
|
|
118
126
|
var iTxMetadataAction = import_zod.z.enum(["replace", "extend"]).default("replace").describe("Whether to replace or extend current metadata with new value");
|
|
119
127
|
var iTxMetadataActionForReverse = import_zod.z.enum([
|
|
120
128
|
"replace",
|
|
@@ -232,6 +240,7 @@ var iTxFunctionNames = import_zod.z.enum([
|
|
|
232
240
|
"createWallet",
|
|
233
241
|
"createWithdrawal",
|
|
234
242
|
"exportBalanceHistory",
|
|
243
|
+
"exportBalanceMany",
|
|
235
244
|
"exportTokenMany",
|
|
236
245
|
"exportTransferGroupMany",
|
|
237
246
|
"exportTransferMany",
|
package/dist/txs/consts.js
CHANGED
|
@@ -12,7 +12,7 @@ var stringNumberToInteger = z.union([
|
|
|
12
12
|
z.number().int().positive()
|
|
13
13
|
]).transform((strNr) => Number(strNr));
|
|
14
14
|
var stringNumberToNumber = z.union([
|
|
15
|
-
z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
|
|
15
|
+
z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
|
|
16
16
|
z.number()
|
|
17
17
|
]).transform((strNr) => parseFloat(String(strNr)));
|
|
18
18
|
var iTxTrackingOptions = z.object({
|
|
@@ -45,17 +45,25 @@ var idForeignSubFilter = z.object({
|
|
|
45
45
|
foreign: z.string().max(255).describe("foreign of the object")
|
|
46
46
|
}).strict().partial();
|
|
47
47
|
var foreignFilter = z.union([
|
|
48
|
+
z.string(),
|
|
49
|
+
z.number(),
|
|
48
50
|
idForeignSubFilter.required({ id: true }),
|
|
49
51
|
idForeignSubFilter.required({ foreign: true })
|
|
50
|
-
])
|
|
52
|
+
]).transform(
|
|
53
|
+
(foreign) => typeof foreign !== "object" ? { foreign: foreign + "" } : foreign
|
|
54
|
+
);
|
|
51
55
|
var idIdentifierSubFilter = z.object({
|
|
52
56
|
id: z.number().int().positive().describe("id of the object"),
|
|
53
57
|
identifier: z.string().max(255).describe("identifier of the object")
|
|
54
58
|
}).strict().partial();
|
|
55
59
|
var identifierFilter = z.union([
|
|
60
|
+
z.string(),
|
|
61
|
+
z.number(),
|
|
56
62
|
idIdentifierSubFilter.required({ id: true }),
|
|
57
63
|
idIdentifierSubFilter.required({ identifier: true })
|
|
58
|
-
])
|
|
64
|
+
]).transform(
|
|
65
|
+
(identifier) => typeof identifier !== "object" ? { identifier: identifier + "" } : identifier
|
|
66
|
+
);
|
|
59
67
|
var iTxMetadataAction = z.enum(["replace", "extend"]).default("replace").describe("Whether to replace or extend current metadata with new value");
|
|
60
68
|
var iTxMetadataActionForReverse = z.enum([
|
|
61
69
|
"replace",
|
|
@@ -173,6 +181,7 @@ var iTxFunctionNames = z.enum([
|
|
|
173
181
|
"createWallet",
|
|
174
182
|
"createWithdrawal",
|
|
175
183
|
"exportBalanceHistory",
|
|
184
|
+
"exportBalanceMany",
|
|
176
185
|
"exportTokenMany",
|
|
177
186
|
"exportTransferGroupMany",
|
|
178
187
|
"exportTransferMany",
|
|
@@ -40,20 +40,37 @@ var createAccessTokenForcedFiltersSchema = import_zod.z.object({
|
|
|
40
40
|
token_foreign: import_token_schema_zod.tokenTableSchema.shape.foreign
|
|
41
41
|
}).partial().describe("Forced filters for requests");
|
|
42
42
|
var createAccessTokenLimitedScopesSchema = import_zod.z.enum([
|
|
43
|
+
// ALLOWED_METHODS
|
|
43
44
|
"aggregateTransferMany",
|
|
45
|
+
"authenticationCheck",
|
|
46
|
+
"createAccessToken",
|
|
47
|
+
"createApikey",
|
|
48
|
+
"createContract",
|
|
49
|
+
"createDeposit",
|
|
50
|
+
"createDistribution",
|
|
51
|
+
"createToken",
|
|
52
|
+
"createTransfer",
|
|
53
|
+
"createTransferGroup",
|
|
54
|
+
"createTransferMany",
|
|
55
|
+
"createWallet",
|
|
56
|
+
"createWithdrawal",
|
|
44
57
|
"exportBalanceHistory",
|
|
58
|
+
"exportBalanceMany",
|
|
45
59
|
"exportTokenMany",
|
|
46
60
|
"exportTransferGroupMany",
|
|
47
61
|
"exportTransferMany",
|
|
48
62
|
"exportWalletMany",
|
|
63
|
+
"findApikeyMany",
|
|
49
64
|
"findBalanceMany",
|
|
50
65
|
"findTokenMany",
|
|
51
66
|
"findTransferGroupMany",
|
|
52
67
|
"findTransferMany",
|
|
53
68
|
"findWalletMany",
|
|
69
|
+
"finishTransaction",
|
|
54
70
|
"getBalance",
|
|
55
71
|
"getBalanceHistory",
|
|
56
72
|
"getExport",
|
|
73
|
+
"getFlags",
|
|
57
74
|
"getStatistics",
|
|
58
75
|
"getToken",
|
|
59
76
|
"getTokenMany",
|
|
@@ -62,7 +79,23 @@ var createAccessTokenLimitedScopesSchema = import_zod.z.enum([
|
|
|
62
79
|
"getWallet",
|
|
63
80
|
"getWalletMany",
|
|
64
81
|
"healthcheck",
|
|
65
|
-
"
|
|
82
|
+
"listDatabaseExports",
|
|
83
|
+
"listExportMany",
|
|
84
|
+
"resetDatabase",
|
|
85
|
+
"reverseTransfer",
|
|
86
|
+
"reverseTransferGroup",
|
|
87
|
+
"reverseTransferGroupMany",
|
|
88
|
+
"reverseTransferMany",
|
|
89
|
+
"setFlags",
|
|
90
|
+
"startTransaction",
|
|
91
|
+
"updateApikey",
|
|
92
|
+
"updateToken",
|
|
93
|
+
"updateTransfer",
|
|
94
|
+
"updateTransferGroup",
|
|
95
|
+
"updateTransferGroupMany",
|
|
96
|
+
"updateTransferMany",
|
|
97
|
+
"updateWallet"
|
|
98
|
+
// ALLOWED_METHODS
|
|
66
99
|
]).describe("Allowed methods");
|
|
67
100
|
var createAccessTokenLimited = import_zod.z.object({
|
|
68
101
|
type: import_zod.z.enum(["limited"]).describe("Type of the accessToken"),
|
|
@@ -10,20 +10,37 @@ var createAccessTokenForcedFiltersSchema = z.object({
|
|
|
10
10
|
token_foreign: tokenTableSchema.shape.foreign
|
|
11
11
|
}).partial().describe("Forced filters for requests");
|
|
12
12
|
var createAccessTokenLimitedScopesSchema = z.enum([
|
|
13
|
+
// ALLOWED_METHODS
|
|
13
14
|
"aggregateTransferMany",
|
|
15
|
+
"authenticationCheck",
|
|
16
|
+
"createAccessToken",
|
|
17
|
+
"createApikey",
|
|
18
|
+
"createContract",
|
|
19
|
+
"createDeposit",
|
|
20
|
+
"createDistribution",
|
|
21
|
+
"createToken",
|
|
22
|
+
"createTransfer",
|
|
23
|
+
"createTransferGroup",
|
|
24
|
+
"createTransferMany",
|
|
25
|
+
"createWallet",
|
|
26
|
+
"createWithdrawal",
|
|
14
27
|
"exportBalanceHistory",
|
|
28
|
+
"exportBalanceMany",
|
|
15
29
|
"exportTokenMany",
|
|
16
30
|
"exportTransferGroupMany",
|
|
17
31
|
"exportTransferMany",
|
|
18
32
|
"exportWalletMany",
|
|
33
|
+
"findApikeyMany",
|
|
19
34
|
"findBalanceMany",
|
|
20
35
|
"findTokenMany",
|
|
21
36
|
"findTransferGroupMany",
|
|
22
37
|
"findTransferMany",
|
|
23
38
|
"findWalletMany",
|
|
39
|
+
"finishTransaction",
|
|
24
40
|
"getBalance",
|
|
25
41
|
"getBalanceHistory",
|
|
26
42
|
"getExport",
|
|
43
|
+
"getFlags",
|
|
27
44
|
"getStatistics",
|
|
28
45
|
"getToken",
|
|
29
46
|
"getTokenMany",
|
|
@@ -32,7 +49,23 @@ var createAccessTokenLimitedScopesSchema = z.enum([
|
|
|
32
49
|
"getWallet",
|
|
33
50
|
"getWalletMany",
|
|
34
51
|
"healthcheck",
|
|
35
|
-
"
|
|
52
|
+
"listDatabaseExports",
|
|
53
|
+
"listExportMany",
|
|
54
|
+
"resetDatabase",
|
|
55
|
+
"reverseTransfer",
|
|
56
|
+
"reverseTransferGroup",
|
|
57
|
+
"reverseTransferGroupMany",
|
|
58
|
+
"reverseTransferMany",
|
|
59
|
+
"setFlags",
|
|
60
|
+
"startTransaction",
|
|
61
|
+
"updateApikey",
|
|
62
|
+
"updateToken",
|
|
63
|
+
"updateTransfer",
|
|
64
|
+
"updateTransferGroup",
|
|
65
|
+
"updateTransferGroupMany",
|
|
66
|
+
"updateTransferMany",
|
|
67
|
+
"updateWallet"
|
|
68
|
+
// ALLOWED_METHODS
|
|
36
69
|
]).describe("Allowed methods");
|
|
37
70
|
var createAccessTokenLimited = z.object({
|
|
38
71
|
type: z.enum(["limited"]).describe("Type of the accessToken"),
|
|
@@ -40,20 +40,37 @@ var createAccessTokenForcedFiltersSchema = import_zod.z.object({
|
|
|
40
40
|
token_foreign: import_token_schema_zod.tokenTableSchema.shape.foreign
|
|
41
41
|
}).partial().describe("Forced filters for requests");
|
|
42
42
|
var createAccessTokenLimitedScopesSchema = import_zod.z.enum([
|
|
43
|
+
// ALLOWED_METHODS
|
|
43
44
|
"aggregateTransferMany",
|
|
45
|
+
"authenticationCheck",
|
|
46
|
+
"createAccessToken",
|
|
47
|
+
"createApikey",
|
|
48
|
+
"createContract",
|
|
49
|
+
"createDeposit",
|
|
50
|
+
"createDistribution",
|
|
51
|
+
"createToken",
|
|
52
|
+
"createTransfer",
|
|
53
|
+
"createTransferGroup",
|
|
54
|
+
"createTransferMany",
|
|
55
|
+
"createWallet",
|
|
56
|
+
"createWithdrawal",
|
|
44
57
|
"exportBalanceHistory",
|
|
58
|
+
"exportBalanceMany",
|
|
45
59
|
"exportTokenMany",
|
|
46
60
|
"exportTransferGroupMany",
|
|
47
61
|
"exportTransferMany",
|
|
48
62
|
"exportWalletMany",
|
|
63
|
+
"findApikeyMany",
|
|
49
64
|
"findBalanceMany",
|
|
50
65
|
"findTokenMany",
|
|
51
66
|
"findTransferGroupMany",
|
|
52
67
|
"findTransferMany",
|
|
53
68
|
"findWalletMany",
|
|
69
|
+
"finishTransaction",
|
|
54
70
|
"getBalance",
|
|
55
71
|
"getBalanceHistory",
|
|
56
72
|
"getExport",
|
|
73
|
+
"getFlags",
|
|
57
74
|
"getStatistics",
|
|
58
75
|
"getToken",
|
|
59
76
|
"getTokenMany",
|
|
@@ -62,7 +79,23 @@ var createAccessTokenLimitedScopesSchema = import_zod.z.enum([
|
|
|
62
79
|
"getWallet",
|
|
63
80
|
"getWalletMany",
|
|
64
81
|
"healthcheck",
|
|
65
|
-
"
|
|
82
|
+
"listDatabaseExports",
|
|
83
|
+
"listExportMany",
|
|
84
|
+
"resetDatabase",
|
|
85
|
+
"reverseTransfer",
|
|
86
|
+
"reverseTransferGroup",
|
|
87
|
+
"reverseTransferGroupMany",
|
|
88
|
+
"reverseTransferMany",
|
|
89
|
+
"setFlags",
|
|
90
|
+
"startTransaction",
|
|
91
|
+
"updateApikey",
|
|
92
|
+
"updateToken",
|
|
93
|
+
"updateTransfer",
|
|
94
|
+
"updateTransferGroup",
|
|
95
|
+
"updateTransferGroupMany",
|
|
96
|
+
"updateTransferMany",
|
|
97
|
+
"updateWallet"
|
|
98
|
+
// ALLOWED_METHODS
|
|
66
99
|
]).describe("Allowed methods");
|
|
67
100
|
var createAccessTokenLimited = import_zod.z.object({
|
|
68
101
|
type: import_zod.z.enum(["limited"]).describe("Type of the accessToken"),
|