wapi-client 0.9.1 → 0.9.4
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/ws-client.cjs +1 -1
- package/dist/api/ws-client.d.ts +0 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.js +1 -1
- package/dist/fns/aggregate-transfers/aggregate-transfers.d.ts +1 -1
- package/dist/fns/find-tokens/find-tokens.enums.d.ts +2 -3
- package/dist/fns/find-tokens/find-tokens.schema.input.json +1 -16
- package/dist/fns/find-transfer-groups/find-transfer-groups.enums.d.ts +2 -8
- package/dist/fns/find-transfer-groups/find-transfer-groups.schema.input.json +3 -34
- package/dist/fns/find-wallets/find-wallets.enums.d.ts +1 -1
- package/dist/fns/import-data/import-data.cjs +22 -0
- package/dist/fns/import-data/import-data.js +22 -0
- package/dist/fns/import-data/import-data.node.browser.cjs +22 -0
- package/dist/fns/import-data/import-data.node.browser.js +22 -0
- package/dist/fns/import-data/import-data.node.cjs +22 -0
- package/dist/fns/import-data/import-data.node.js +22 -0
- package/dist/fns/reverse-transfers/reverse-transfers.d.ts +1 -1
- package/dist/fns/update-transfer-groups/update-transfer-groups.d.ts +1 -1
- package/dist/fns/update-transfers/update-transfers.d.ts +1 -1
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/isomorphic/node/fetch.cjs +20 -17
- package/dist/lib/isomorphic/node/fetch.js +20 -17
- package/dist/lib/isomorphic/node/streams.d.ts +0 -2
- package/dist/lib/query-builder.d.ts +6 -8
- package/dist/lib/validator.browser.cjs +611 -960
- package/dist/lib/validator.browser.js +611 -960
- package/dist/lib/validator.cjs +1 -1
- package/dist/lib/validator.js +1 -1
- package/dist/lib/ws-types.d.ts +0 -1
- package/dist/txs/create-distribution/create-distribution.enums.d.ts +1 -1
- package/dist/txs/find-balance-many/find-balance-many.enums.d.ts +1 -1
- package/dist/txs/find-token-many/find-token-many.enums.d.ts +4 -3
- package/dist/txs/find-token-many/find-token-many.schema.input.json +6 -0
- package/dist/txs/find-token-many/find-token-many.schema.output.json +8 -1
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +10 -4
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json +4 -3
- package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.output.json +23 -1
- package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +1 -1
- package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +5 -1
- package/dist/txs/get-balance-history/get-balance-history.schema.output.json +7 -1
- package/dist/txs/get-token/get-token.enums.d.ts +43 -1
- package/dist/txs/get-token/get-token.schema.input.json +5 -1
- package/dist/txs/get-token/get-token.schema.output.json +63 -2
- package/dist/txs/get-token-many/get-token-many.enums.d.ts +6 -2
- package/dist/txs/get-token-many/get-token-many.schema.input.json +5 -0
- package/dist/txs/get-token-many/get-token-many.schema.output.json +3 -0
- package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +1 -1
- package/dist/types/index.d.ts +92 -47
- package/dist/wapi-client-web.iife.js +6 -11
- package/dist/wapi-client.iife.js +6 -11
- package/package.json +5 -6
|
@@ -4455,12 +4455,12 @@ var require_streams = __commonJS({
|
|
|
4455
4455
|
var POOL_SIZE2 = 65536;
|
|
4456
4456
|
if (!globalThis.ReadableStream) {
|
|
4457
4457
|
try {
|
|
4458
|
-
const process2 = __require("process");
|
|
4458
|
+
const process2 = __require("node:process");
|
|
4459
4459
|
const { emitWarning } = process2;
|
|
4460
4460
|
try {
|
|
4461
4461
|
process2.emitWarning = () => {
|
|
4462
4462
|
};
|
|
4463
|
-
Object.assign(globalThis, __require("stream/web"));
|
|
4463
|
+
Object.assign(globalThis, __require("node:stream/web"));
|
|
4464
4464
|
process2.emitWarning = emitWarning;
|
|
4465
4465
|
} catch (error) {
|
|
4466
4466
|
process2.emitWarning = emitWarning;
|
|
@@ -4961,8 +4961,8 @@ var require_node_domexception = __commonJS({
|
|
|
4961
4961
|
});
|
|
4962
4962
|
|
|
4963
4963
|
// node_modules/fetch-blob/from.js
|
|
4964
|
-
import { statSync, createReadStream, promises as fs } from "fs";
|
|
4965
|
-
import { basename } from "path";
|
|
4964
|
+
import { statSync, createReadStream, promises as fs } from "node:fs";
|
|
4965
|
+
import { basename } from "node:path";
|
|
4966
4966
|
var import_node_domexception, stat, blobFromSync, blobFrom, fileFrom, fileFromSync, fromBlob, fromFile, _path, _start, _BlobDataItem, BlobDataItem;
|
|
4967
4967
|
var init_from = __esm({
|
|
4968
4968
|
"node_modules/fetch-blob/from.js"() {
|
|
@@ -5266,6 +5266,7 @@ var init_multipart_parser = __esm({
|
|
|
5266
5266
|
state = S.HEADER_FIELD;
|
|
5267
5267
|
mark("onHeaderField");
|
|
5268
5268
|
index = 0;
|
|
5269
|
+
// falls through
|
|
5269
5270
|
case S.HEADER_FIELD:
|
|
5270
5271
|
if (c === CR) {
|
|
5271
5272
|
clear("onHeaderField");
|
|
@@ -5295,6 +5296,7 @@ var init_multipart_parser = __esm({
|
|
|
5295
5296
|
}
|
|
5296
5297
|
mark("onHeaderValue");
|
|
5297
5298
|
state = S.HEADER_VALUE;
|
|
5299
|
+
// falls through
|
|
5298
5300
|
case S.HEADER_VALUE:
|
|
5299
5301
|
if (c === CR) {
|
|
5300
5302
|
dataCallback("onHeaderValue", true);
|
|
@@ -5318,6 +5320,7 @@ var init_multipart_parser = __esm({
|
|
|
5318
5320
|
case S.PART_DATA_START:
|
|
5319
5321
|
state = S.PART_DATA;
|
|
5320
5322
|
mark("onPartData");
|
|
5323
|
+
// falls through
|
|
5321
5324
|
case S.PART_DATA:
|
|
5322
5325
|
previousIndex = index;
|
|
5323
5326
|
if (index === 0) {
|
|
@@ -5403,9 +5406,9 @@ var init_multipart_parser = __esm({
|
|
|
5403
5406
|
});
|
|
5404
5407
|
|
|
5405
5408
|
// node_modules/node-fetch/src/body.js
|
|
5406
|
-
import Stream, { PassThrough } from "stream";
|
|
5407
|
-
import { types, deprecate, promisify } from "util";
|
|
5408
|
-
import { Buffer as Buffer2 } from "buffer";
|
|
5409
|
+
import Stream, { PassThrough } from "node:stream";
|
|
5410
|
+
import { types, deprecate, promisify } from "node:util";
|
|
5411
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
5409
5412
|
function consumeBody(data) {
|
|
5410
5413
|
return __async(this, null, function* () {
|
|
5411
5414
|
if (data[INTERNALS].disturbed) {
|
|
@@ -5685,8 +5688,8 @@ var init_body = __esm({
|
|
|
5685
5688
|
});
|
|
5686
5689
|
|
|
5687
5690
|
// node_modules/node-fetch/src/headers.js
|
|
5688
|
-
import { types as types2 } from "util";
|
|
5689
|
-
import http from "http";
|
|
5691
|
+
import { types as types2 } from "node:util";
|
|
5692
|
+
import http from "node:http";
|
|
5690
5693
|
function fromRawHeaders(headers = []) {
|
|
5691
5694
|
return new Headers(
|
|
5692
5695
|
headers.reduce((result, value, index, array) => {
|
|
@@ -6027,7 +6030,7 @@ var init_get_search = __esm({
|
|
|
6027
6030
|
});
|
|
6028
6031
|
|
|
6029
6032
|
// node_modules/node-fetch/src/utils/referrer.js
|
|
6030
|
-
import { isIP } from "net";
|
|
6033
|
+
import { isIP } from "node:net";
|
|
6031
6034
|
function stripURLForUseAsAReferrer(url, originOnly = false) {
|
|
6032
6035
|
if (url == null) {
|
|
6033
6036
|
return "no-referrer";
|
|
@@ -6172,8 +6175,8 @@ var init_referrer = __esm({
|
|
|
6172
6175
|
});
|
|
6173
6176
|
|
|
6174
6177
|
// node_modules/node-fetch/src/request.js
|
|
6175
|
-
import { format as formatUrl } from "url";
|
|
6176
|
-
import { deprecate as deprecate2 } from "util";
|
|
6178
|
+
import { format as formatUrl } from "node:url";
|
|
6179
|
+
import { deprecate as deprecate2 } from "node:util";
|
|
6177
6180
|
var INTERNALS3, isRequest, doBadDataWarn, Request, getNodeRequestOptions;
|
|
6178
6181
|
var init_request = __esm({
|
|
6179
6182
|
"node_modules/node-fetch/src/request.js"() {
|
|
@@ -6407,11 +6410,11 @@ __export(src_exports, {
|
|
|
6407
6410
|
fileFromSync: () => fileFromSync,
|
|
6408
6411
|
isRedirect: () => isRedirect
|
|
6409
6412
|
});
|
|
6410
|
-
import http2 from "http";
|
|
6411
|
-
import https from "https";
|
|
6412
|
-
import zlib from "zlib";
|
|
6413
|
-
import Stream2, { PassThrough as PassThrough2, pipeline as pump } from "stream";
|
|
6414
|
-
import { Buffer as Buffer3 } from "buffer";
|
|
6413
|
+
import http2 from "node:http";
|
|
6414
|
+
import https from "node:https";
|
|
6415
|
+
import zlib from "node:zlib";
|
|
6416
|
+
import Stream2, { PassThrough as PassThrough2, pipeline as pump } from "node:stream";
|
|
6417
|
+
import { Buffer as Buffer3 } from "node:buffer";
|
|
6415
6418
|
function fetch(url, options_) {
|
|
6416
6419
|
return __async(this, null, function* () {
|
|
6417
6420
|
return new Promise((resolve, reject) => {
|
|
@@ -110,7 +110,7 @@ export type QueryBuilderOrderingInputObject = {
|
|
|
110
110
|
nulls?: 'first' | 'last';
|
|
111
111
|
};
|
|
112
112
|
export type QueryBuilderOrderingInput = string | QueryBuilderOrderingInputObject;
|
|
113
|
-
export declare class QueryBuilderInterface<TableFields extends string, StringFields extends string, MetadataFields extends string, Result> extends QueryBuilderInner<TableFields, StringFields, MetadataFields, Result> {
|
|
113
|
+
export declare class QueryBuilderInterface<TableFields extends string, StringFields extends string, MetadataFields extends string, Options, Result> extends QueryBuilderInner<TableFields, StringFields, MetadataFields, Result> {
|
|
114
114
|
private execFn;
|
|
115
115
|
protected optionsObject: {
|
|
116
116
|
[k: string]: unknown;
|
|
@@ -125,9 +125,7 @@ export declare class QueryBuilderInterface<TableFields extends string, StringFie
|
|
|
125
125
|
});
|
|
126
126
|
private start;
|
|
127
127
|
toJSON(): BuiltQuery;
|
|
128
|
-
options(optionsInput:
|
|
129
|
-
[key: string]: unknown;
|
|
130
|
-
}): this;
|
|
128
|
+
options(optionsInput: Options): this;
|
|
131
129
|
then<TResult1 = Result, TResult2 = never>(onfulfilled?: (value: Result) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: Error) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>;
|
|
132
130
|
catch<TResult2 = never>(onerror: (reason: Error) => TResult2 | PromiseLike<TResult2>): Promise<Result | TResult2>;
|
|
133
131
|
stream(): ReadStream;
|
|
@@ -162,7 +160,7 @@ export declare class QueryBuilderInterface<TableFields extends string, StringFie
|
|
|
162
160
|
*
|
|
163
161
|
* ```
|
|
164
162
|
*/
|
|
165
|
-
export declare class QueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, ResultFields extends string, Options extends BaseOptions, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Result> {
|
|
163
|
+
export declare class QueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, ResultFields extends string, Options extends BaseOptions, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Options, Result> {
|
|
166
164
|
constructor({ start, modifiers, optionsModifiers, }: {
|
|
167
165
|
start: (query: BuiltQuery) => StreamPromise<Result>;
|
|
168
166
|
modifiers?: (field: TableFields | StringFields | MetadataFields, value: Primitive | {
|
|
@@ -205,7 +203,7 @@ export declare class QueryBuilder<TableFields extends string, StringFields exten
|
|
|
205
203
|
*
|
|
206
204
|
* ```
|
|
207
205
|
*/
|
|
208
|
-
export declare class AggregateQueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, GroupFields extends string, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Result> {
|
|
206
|
+
export declare class AggregateQueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, GroupFields extends string, Options, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Options, Result> {
|
|
209
207
|
private aggregatorObject;
|
|
210
208
|
private timezoneString;
|
|
211
209
|
constructor({ start, modifiers, optionsModifiers, }: {
|
|
@@ -225,7 +223,7 @@ export declare class AggregateQueryBuilder<TableFields extends string, StringFie
|
|
|
225
223
|
max(input?: string): this;
|
|
226
224
|
sum(input?: string): this;
|
|
227
225
|
}
|
|
228
|
-
export declare class UpdateQueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, ResultFields extends string, UpdateFields, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Result> {
|
|
226
|
+
export declare class UpdateQueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, ResultFields extends string, UpdateFields, Options, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Options, Result> {
|
|
229
227
|
private updateObject;
|
|
230
228
|
constructor({ start, modifiers, optionsModifiers, }: {
|
|
231
229
|
start?: (query: BuiltUpdateQuery) => StreamPromise<Result>;
|
|
@@ -237,7 +235,7 @@ export declare class UpdateQueryBuilder<TableFields extends string, StringFields
|
|
|
237
235
|
toJSON(): BuiltUpdateQuery;
|
|
238
236
|
update(updateData: UpdateFields): this;
|
|
239
237
|
}
|
|
240
|
-
export declare class ReverseQueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, ReverseModifications, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Result> {
|
|
238
|
+
export declare class ReverseQueryBuilder<TableFields extends string, StringFields extends string, MetadataFields extends string, ReverseModifications, Options, Result> extends QueryBuilderInterface<TableFields, StringFields, MetadataFields, Options, Result> {
|
|
241
239
|
private reverseModifications;
|
|
242
240
|
constructor({ start, modifiers, optionsModifiers, }: {
|
|
243
241
|
start?: (query: BuiltReverseQuery) => StreamPromise<Result>;
|