wapi-client 0.8.13 → 0.9.1
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 +21 -14
- package/dist/api/base-client.browser.js +22 -20
- package/dist/api/base-client.cjs +21 -14
- package/dist/api/base-client.d.ts +8 -0
- package/dist/api/base-client.js +22 -20
- package/dist/api/jsonrpc/jsonrpc.enums.d.ts +5 -4
- package/dist/api/ws-client.browser.cjs +3 -11
- package/dist/api/ws-client.browser.js +4 -16
- package/dist/api/ws-client.cjs +4 -12
- package/dist/api/ws-client.js +5 -17
- package/dist/client.browser.cjs +29 -5
- package/dist/client.browser.js +30 -6
- package/dist/client.cjs +30 -6
- package/dist/client.d.ts +26 -0
- package/dist/client.js +31 -7
- package/dist/fns/create-deposit/create-deposit.browser.cjs +1 -4
- package/dist/fns/create-deposit/create-deposit.browser.js +2 -5
- package/dist/fns/create-deposit/create-deposit.cjs +1 -4
- package/dist/fns/create-deposit/create-deposit.js +2 -5
- package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +1 -4
- package/dist/fns/create-withdrawal/create-withdrawal.browser.js +2 -5
- package/dist/fns/create-withdrawal/create-withdrawal.cjs +1 -4
- package/dist/fns/create-withdrawal/create-withdrawal.js +2 -5
- package/dist/fns/find-transfers/find-transfers.browser.cjs +8 -20
- package/dist/fns/find-transfers/find-transfers.browser.js +9 -21
- package/dist/fns/find-transfers/find-transfers.cjs +8 -20
- package/dist/fns/find-transfers/find-transfers.js +9 -21
- package/dist/fns/get-balance/get-balance.browser.cjs +2 -8
- package/dist/fns/get-balance/get-balance.browser.js +3 -9
- package/dist/fns/get-balance/get-balance.cjs +2 -8
- package/dist/fns/get-balance/get-balance.js +3 -9
- package/dist/fns/get-balance-history/get-balance-history.browser.cjs +1 -4
- package/dist/fns/get-balance-history/get-balance-history.browser.js +2 -5
- package/dist/fns/get-balance-history/get-balance-history.cjs +1 -4
- package/dist/fns/get-balance-history/get-balance-history.js +2 -5
- package/dist/fns/get-token/get-token.browser.cjs +1 -4
- package/dist/fns/get-token/get-token.browser.js +2 -5
- package/dist/fns/get-token/get-token.cjs +1 -4
- package/dist/fns/get-token/get-token.js +2 -5
- package/dist/fns/healthcheck/healthcheck.browser.cjs +56 -0
- package/dist/fns/healthcheck/healthcheck.browser.js +38 -0
- package/dist/fns/healthcheck/healthcheck.cjs +60 -0
- package/dist/fns/healthcheck/healthcheck.d.ts +9 -0
- package/dist/fns/healthcheck/healthcheck.enums.browser.cjs +17 -0
- package/dist/fns/healthcheck/healthcheck.enums.browser.js +0 -0
- package/dist/fns/healthcheck/healthcheck.enums.cjs +17 -0
- package/dist/fns/healthcheck/healthcheck.enums.d.ts +20 -0
- package/dist/fns/healthcheck/healthcheck.enums.js +0 -0
- package/dist/fns/healthcheck/healthcheck.guards.browser.cjs +36 -0
- package/dist/fns/healthcheck/healthcheck.guards.browser.js +16 -0
- package/dist/fns/healthcheck/healthcheck.guards.cjs +41 -0
- package/dist/fns/healthcheck/healthcheck.guards.d.ts +4 -0
- package/dist/fns/healthcheck/healthcheck.guards.js +16 -0
- package/dist/fns/healthcheck/healthcheck.js +38 -0
- package/dist/fns/healthcheck/healthcheck.schema.input.json +25 -0
- package/dist/fns/healthcheck/healthcheck.schema.output.json +8 -0
- package/dist/fns/import-data/import-data.cjs +2 -5
- package/dist/fns/import-data/import-data.js +3 -6
- package/dist/fns/import-data/import-data.node.browser.cjs +2 -5
- package/dist/fns/import-data/import-data.node.browser.js +3 -6
- package/dist/fns/import-data/import-data.node.cjs +2 -5
- package/dist/fns/import-data/import-data.node.js +3 -6
- package/dist/fns/index.browser.cjs +9 -0
- package/dist/fns/index.browser.js +9 -0
- package/dist/fns/index.cjs +12 -0
- package/dist/fns/index.d.ts +7 -1
- package/dist/fns/index.js +9 -0
- package/dist/fns/set-flags/set-flags.browser.cjs +3 -3
- package/dist/fns/set-flags/set-flags.browser.js +3 -3
- package/dist/fns/set-flags/set-flags.cjs +3 -3
- package/dist/fns/set-flags/set-flags.js +3 -3
- package/dist/index.browser.cjs +13 -1
- package/dist/index.browser.js +25 -1
- package/dist/index.cjs +25 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -1
- package/dist/lib/errors.browser.cjs +642 -214
- package/dist/lib/errors.browser.js +645 -214
- package/dist/lib/errors.cjs +652 -218
- package/dist/lib/errors.d.ts +1411 -342
- package/dist/lib/errors.js +645 -214
- package/dist/lib/query-builder.browser.cjs +2 -2
- package/dist/lib/query-builder.browser.js +2 -2
- package/dist/lib/query-builder.cjs +2 -2
- package/dist/lib/query-builder.js +2 -2
- package/dist/lib/stream-promise.browser.cjs +3 -4
- package/dist/lib/stream-promise.browser.js +4 -5
- package/dist/lib/stream-promise.cjs +3 -4
- package/dist/lib/stream-promise.js +4 -5
- package/dist/lib/utils.browser.cjs +9 -13
- package/dist/lib/utils.browser.js +9 -13
- package/dist/lib/utils.cjs +9 -13
- package/dist/lib/utils.js +9 -13
- package/dist/lib/validator.browser.cjs +46 -4
- package/dist/lib/validator.browser.js +46 -4
- package/dist/lib/validator.cjs +46 -4
- package/dist/lib/validator.d.ts +5 -1
- package/dist/lib/validator.js +46 -4
- package/dist/txs/healthcheck/healthcheck.enums.browser.cjs +17 -0
- package/dist/txs/healthcheck/healthcheck.enums.browser.js +0 -0
- package/dist/txs/healthcheck/healthcheck.enums.cjs +17 -0
- package/dist/txs/healthcheck/healthcheck.enums.d.ts +22 -0
- package/dist/txs/healthcheck/healthcheck.enums.js +0 -0
- package/dist/txs/healthcheck/healthcheck.schema.input.json +23 -0
- package/dist/txs/healthcheck/healthcheck.schema.output.json +32 -0
- package/dist/txs/index.browser.cjs +7 -0
- package/dist/txs/index.browser.js +7 -0
- package/dist/txs/index.cjs +9 -0
- package/dist/txs/index.d.ts +5 -0
- package/dist/txs/index.js +7 -0
- package/dist/types/index.d.ts +2425 -1239
- package/dist/wapi-client-web.iife.js +4 -4
- package/dist/wapi-client.iife.js +4 -4
- package/package.json +1 -1
|
@@ -362,8 +362,8 @@ function aggregatorInputToAggregator(fn, input) {
|
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
if (!input.includes(" as ")) {
|
|
365
|
-
throw new import_errors.InputError({
|
|
366
|
-
|
|
365
|
+
throw new import_errors.InputError("UNCLEAR_AGGREGATOR", {
|
|
366
|
+
input
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
const [field, alias] = input.split(" as ");
|
|
@@ -340,8 +340,8 @@ function aggregatorInputToAggregator(fn, input) {
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
if (!input.includes(" as ")) {
|
|
343
|
-
throw new InputError({
|
|
344
|
-
|
|
343
|
+
throw new InputError("UNCLEAR_AGGREGATOR", {
|
|
344
|
+
input
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
const [field, alias] = input.split(" as ");
|
|
@@ -362,8 +362,8 @@ function aggregatorInputToAggregator(fn, input) {
|
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
if (!input.includes(" as ")) {
|
|
365
|
-
throw new import_errors.InputError({
|
|
366
|
-
|
|
365
|
+
throw new import_errors.InputError("UNCLEAR_AGGREGATOR", {
|
|
366
|
+
input
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
const [field, alias] = input.split(" as ");
|
|
@@ -340,8 +340,8 @@ function aggregatorInputToAggregator(fn, input) {
|
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
if (!input.includes(" as ")) {
|
|
343
|
-
throw new InputError({
|
|
344
|
-
|
|
343
|
+
throw new InputError("UNCLEAR_AGGREGATOR", {
|
|
344
|
+
input
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
const [field, alias] = input.split(" as ");
|
|
@@ -179,10 +179,9 @@ var StreamPromise = class {
|
|
|
179
179
|
result[key] = value;
|
|
180
180
|
} else {
|
|
181
181
|
this.streamObject.destroy(
|
|
182
|
-
new import_errors.StreamError({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
data: value
|
|
182
|
+
new import_errors.StreamError("INVALID_RESPONSE_STREAM_CHUNK", {
|
|
183
|
+
property: key,
|
|
184
|
+
value
|
|
186
185
|
})
|
|
187
186
|
);
|
|
188
187
|
err = true;
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
|
|
21
21
|
// src/lib/stream-promise.ts
|
|
22
|
-
import {
|
|
22
|
+
import { getError, StreamError } from "./errors.browser.js";
|
|
23
23
|
import { JSONRPC } from "../api/jsonrpc/jsonrpc.enums.browser.js";
|
|
24
24
|
import { ReadStream } from "./isomorphic/web/streams.browser.js";
|
|
25
25
|
import { debugLog } from "./debug.browser.js";
|
|
@@ -159,10 +159,9 @@ var StreamPromise = class {
|
|
|
159
159
|
result[key] = value;
|
|
160
160
|
} else {
|
|
161
161
|
this.streamObject.destroy(
|
|
162
|
-
new StreamError({
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
data: value
|
|
162
|
+
new StreamError("INVALID_RESPONSE_STREAM_CHUNK", {
|
|
163
|
+
property: key,
|
|
164
|
+
value
|
|
166
165
|
})
|
|
167
166
|
);
|
|
168
167
|
err = true;
|
|
@@ -179,10 +179,9 @@ var StreamPromise = class {
|
|
|
179
179
|
result[key] = value;
|
|
180
180
|
} else {
|
|
181
181
|
this.streamObject.destroy(
|
|
182
|
-
new import_errors.StreamError({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
data: value
|
|
182
|
+
new import_errors.StreamError("INVALID_RESPONSE_STREAM_CHUNK", {
|
|
183
|
+
property: key,
|
|
184
|
+
value
|
|
186
185
|
})
|
|
187
186
|
);
|
|
188
187
|
err = true;
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
|
|
21
21
|
// src/lib/stream-promise.ts
|
|
22
|
-
import {
|
|
22
|
+
import { getError, StreamError } from "./errors";
|
|
23
23
|
import { JSONRPC } from "../api/jsonrpc/jsonrpc.enums";
|
|
24
24
|
import { ReadStream } from "./isomorphic/node/streams";
|
|
25
25
|
import { debugLog } from "./debug";
|
|
@@ -159,10 +159,9 @@ var StreamPromise = class {
|
|
|
159
159
|
result[key] = value;
|
|
160
160
|
} else {
|
|
161
161
|
this.streamObject.destroy(
|
|
162
|
-
new StreamError({
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
data: value
|
|
162
|
+
new StreamError("INVALID_RESPONSE_STREAM_CHUNK", {
|
|
163
|
+
property: key,
|
|
164
|
+
value
|
|
166
165
|
})
|
|
167
166
|
);
|
|
168
167
|
err = true;
|
|
@@ -39,7 +39,6 @@ __export(utils_exports, {
|
|
|
39
39
|
wait: () => wait
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(utils_exports);
|
|
42
|
-
var import__ = require('../index.cjs');
|
|
43
42
|
var import_errors = require('./errors.cjs');
|
|
44
43
|
|
|
45
44
|
// node_modules/uuid/dist/esm-browser/rng.js
|
|
@@ -137,10 +136,7 @@ function getTxIdSync(object) {
|
|
|
137
136
|
}
|
|
138
137
|
const key = internalMap.getKey(object);
|
|
139
138
|
if (internalMap.get(key)) {
|
|
140
|
-
throw new import_errors.InputError({
|
|
141
|
-
message: import__.ErrorMessage.INPUT_NEEDS_IDENTIFIER,
|
|
142
|
-
data: object
|
|
143
|
-
});
|
|
139
|
+
throw new import_errors.InputError("INPUT_NEEDS_IDENTIFIER", { object });
|
|
144
140
|
}
|
|
145
141
|
const value = v4_default();
|
|
146
142
|
internalMap.set(key, value);
|
|
@@ -158,18 +154,18 @@ function copyObject(input) {
|
|
|
158
154
|
function checkCopyObject(input, property, value) {
|
|
159
155
|
if (property in input) {
|
|
160
156
|
if (input[property] === void 0) {
|
|
161
|
-
throw new import_errors.ValidationError(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
157
|
+
throw new import_errors.ValidationError(
|
|
158
|
+
{ input },
|
|
159
|
+
`undefined provided for ${property}`
|
|
160
|
+
);
|
|
165
161
|
}
|
|
166
162
|
return input;
|
|
167
163
|
}
|
|
168
164
|
if (!value) {
|
|
169
|
-
throw new import_errors.ValidationError(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
throw new import_errors.ValidationError(
|
|
166
|
+
{ input },
|
|
167
|
+
`${property} is required if no default set`
|
|
168
|
+
);
|
|
173
169
|
}
|
|
174
170
|
const copy = copyObject(input);
|
|
175
171
|
copy[property] = value;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/lib/utils.ts
|
|
2
|
-
import { ErrorMessage } from "../index.browser.js";
|
|
3
2
|
import { InputError, ValidationError } from "./errors.browser.js";
|
|
4
3
|
|
|
5
4
|
// node_modules/uuid/dist/esm-browser/rng.js
|
|
@@ -97,10 +96,7 @@ function getTxIdSync(object) {
|
|
|
97
96
|
}
|
|
98
97
|
const key = internalMap.getKey(object);
|
|
99
98
|
if (internalMap.get(key)) {
|
|
100
|
-
throw new InputError({
|
|
101
|
-
message: ErrorMessage.INPUT_NEEDS_IDENTIFIER,
|
|
102
|
-
data: object
|
|
103
|
-
});
|
|
99
|
+
throw new InputError("INPUT_NEEDS_IDENTIFIER", { object });
|
|
104
100
|
}
|
|
105
101
|
const value = v4_default();
|
|
106
102
|
internalMap.set(key, value);
|
|
@@ -118,18 +114,18 @@ function copyObject(input) {
|
|
|
118
114
|
function checkCopyObject(input, property, value) {
|
|
119
115
|
if (property in input) {
|
|
120
116
|
if (input[property] === void 0) {
|
|
121
|
-
throw new ValidationError(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
throw new ValidationError(
|
|
118
|
+
{ input },
|
|
119
|
+
`undefined provided for ${property}`
|
|
120
|
+
);
|
|
125
121
|
}
|
|
126
122
|
return input;
|
|
127
123
|
}
|
|
128
124
|
if (!value) {
|
|
129
|
-
throw new ValidationError(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
throw new ValidationError(
|
|
126
|
+
{ input },
|
|
127
|
+
`${property} is required if no default set`
|
|
128
|
+
);
|
|
133
129
|
}
|
|
134
130
|
const copy = copyObject(input);
|
|
135
131
|
copy[property] = value;
|
package/dist/lib/utils.cjs
CHANGED
|
@@ -571,7 +571,6 @@ __export(utils_exports, {
|
|
|
571
571
|
wait: () => wait
|
|
572
572
|
});
|
|
573
573
|
module.exports = __toCommonJS(utils_exports);
|
|
574
|
-
var import__ = require('../index.cjs');
|
|
575
574
|
var import_errors = require('./errors.cjs');
|
|
576
575
|
var import_uuid = __toESM(require_dist(), 1);
|
|
577
576
|
var import_get_random_hex = require('./isomorphic/node/get-random-hex.cjs');
|
|
@@ -620,10 +619,7 @@ function getTxIdSync(object) {
|
|
|
620
619
|
}
|
|
621
620
|
const key = internalMap.getKey(object);
|
|
622
621
|
if (internalMap.get(key)) {
|
|
623
|
-
throw new import_errors.InputError({
|
|
624
|
-
message: import__.ErrorMessage.INPUT_NEEDS_IDENTIFIER,
|
|
625
|
-
data: object
|
|
626
|
-
});
|
|
622
|
+
throw new import_errors.InputError("INPUT_NEEDS_IDENTIFIER", { object });
|
|
627
623
|
}
|
|
628
624
|
const value = (0, import_uuid.v4)();
|
|
629
625
|
internalMap.set(key, value);
|
|
@@ -641,18 +637,18 @@ function copyObject(input) {
|
|
|
641
637
|
function checkCopyObject(input, property, value) {
|
|
642
638
|
if (property in input) {
|
|
643
639
|
if (input[property] === void 0) {
|
|
644
|
-
throw new import_errors.ValidationError(
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
640
|
+
throw new import_errors.ValidationError(
|
|
641
|
+
{ input },
|
|
642
|
+
`undefined provided for ${property}`
|
|
643
|
+
);
|
|
648
644
|
}
|
|
649
645
|
return input;
|
|
650
646
|
}
|
|
651
647
|
if (!value) {
|
|
652
|
-
throw new import_errors.ValidationError(
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
648
|
+
throw new import_errors.ValidationError(
|
|
649
|
+
{ input },
|
|
650
|
+
`${property} is required if no default set`
|
|
651
|
+
);
|
|
656
652
|
}
|
|
657
653
|
const copy = copyObject(input);
|
|
658
654
|
copy[property] = value;
|
package/dist/lib/utils.js
CHANGED
|
@@ -551,7 +551,6 @@ var require_dist = __commonJS({
|
|
|
551
551
|
|
|
552
552
|
// src/lib/utils.ts
|
|
553
553
|
var import_uuid = __toESM(require_dist(), 1);
|
|
554
|
-
import { ErrorMessage } from "../index";
|
|
555
554
|
import { InputError, ValidationError } from "./errors";
|
|
556
555
|
import { getRandomHex } from "./isomorphic/node/get-random-hex";
|
|
557
556
|
var internalMap = {
|
|
@@ -599,10 +598,7 @@ function getTxIdSync(object) {
|
|
|
599
598
|
}
|
|
600
599
|
const key = internalMap.getKey(object);
|
|
601
600
|
if (internalMap.get(key)) {
|
|
602
|
-
throw new InputError({
|
|
603
|
-
message: ErrorMessage.INPUT_NEEDS_IDENTIFIER,
|
|
604
|
-
data: object
|
|
605
|
-
});
|
|
601
|
+
throw new InputError("INPUT_NEEDS_IDENTIFIER", { object });
|
|
606
602
|
}
|
|
607
603
|
const value = (0, import_uuid.v4)();
|
|
608
604
|
internalMap.set(key, value);
|
|
@@ -620,18 +616,18 @@ function copyObject(input) {
|
|
|
620
616
|
function checkCopyObject(input, property, value) {
|
|
621
617
|
if (property in input) {
|
|
622
618
|
if (input[property] === void 0) {
|
|
623
|
-
throw new ValidationError(
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
619
|
+
throw new ValidationError(
|
|
620
|
+
{ input },
|
|
621
|
+
`undefined provided for ${property}`
|
|
622
|
+
);
|
|
627
623
|
}
|
|
628
624
|
return input;
|
|
629
625
|
}
|
|
630
626
|
if (!value) {
|
|
631
|
-
throw new ValidationError(
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
627
|
+
throw new ValidationError(
|
|
628
|
+
{ input },
|
|
629
|
+
`${property} is required if no default set`
|
|
630
|
+
);
|
|
635
631
|
}
|
|
636
632
|
const copy = copyObject(input);
|
|
637
633
|
copy[property] = value;
|
|
@@ -6898,6 +6898,8 @@ var import_get_transfer_group_schema_input = __toESM(require('../fns/get-transfe
|
|
|
6898
6898
|
var import_get_transfer_group_schema_output = __toESM(require('../fns/get-transfer-group/get-transfer-group.schema.output.json'), 1);
|
|
6899
6899
|
var import_get_wallet_schema_input = __toESM(require('../fns/get-wallet/get-wallet.schema.input.json'), 1);
|
|
6900
6900
|
var import_get_wallet_schema_output = __toESM(require('../fns/get-wallet/get-wallet.schema.output.json'), 1);
|
|
6901
|
+
var import_healthcheck_schema_input = __toESM(require('../fns/healthcheck/healthcheck.schema.input.json'), 1);
|
|
6902
|
+
var import_healthcheck_schema_output = __toESM(require('../fns/healthcheck/healthcheck.schema.output.json'), 1);
|
|
6901
6903
|
var import_import_data_schema_input = __toESM(require('../fns/import-data/import-data.schema.input.json'), 1);
|
|
6902
6904
|
var import_import_data_schema_output = __toESM(require('../fns/import-data/import-data.schema.output.json'), 1);
|
|
6903
6905
|
var import_reverse_transfer_schema_input = __toESM(require('../fns/reverse-transfer/reverse-transfer.schema.input.json'), 1);
|
|
@@ -6982,6 +6984,8 @@ var import_get_wallet_schema_input2 = __toESM(require('../txs/get-wallet/get-wal
|
|
|
6982
6984
|
var import_get_wallet_schema_output2 = __toESM(require('../txs/get-wallet/get-wallet.schema.output.json'), 1);
|
|
6983
6985
|
var import_get_wallet_many_schema_input = __toESM(require('../txs/get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
6984
6986
|
var import_get_wallet_many_schema_output = __toESM(require('../txs/get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
6987
|
+
var import_healthcheck_schema_input2 = __toESM(require('../txs/healthcheck/healthcheck.schema.input.json'), 1);
|
|
6988
|
+
var import_healthcheck_schema_output2 = __toESM(require('../txs/healthcheck/healthcheck.schema.output.json'), 1);
|
|
6985
6989
|
var import_import_actions_schema_input = __toESM(require('../txs/import-actions/import-actions.schema.input.json'), 1);
|
|
6986
6990
|
var import_import_actions_schema_output = __toESM(require('../txs/import-actions/import-actions.schema.output.json'), 1);
|
|
6987
6991
|
var import_import_database_schema_input = __toESM(require('../txs/import-database/import-database.schema.input.json'), 1);
|
|
@@ -7036,10 +7040,12 @@ function getValidationError(errors, errorsText) {
|
|
|
7036
7040
|
if (errorsText === void 0) {
|
|
7037
7041
|
return;
|
|
7038
7042
|
}
|
|
7039
|
-
return new import_errors.ValidationError(
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
+
return new import_errors.ValidationError(
|
|
7044
|
+
{
|
|
7045
|
+
errors
|
|
7046
|
+
},
|
|
7047
|
+
errorsText
|
|
7048
|
+
);
|
|
7043
7049
|
}
|
|
7044
7050
|
function wrapValidator(validate) {
|
|
7045
7051
|
return function(input) {
|
|
@@ -7669,6 +7675,22 @@ ajv.addSchema(
|
|
|
7669
7675
|
"/fns/get-wallet/get-wallet.schema.output.json"
|
|
7670
7676
|
);
|
|
7671
7677
|
Schemas.GetWalletFnOutput = import_get_wallet_schema_output.default;
|
|
7678
|
+
ajv.addSchema(
|
|
7679
|
+
fixSelfRefs(
|
|
7680
|
+
import_healthcheck_schema_input.default,
|
|
7681
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
7682
|
+
),
|
|
7683
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
7684
|
+
);
|
|
7685
|
+
Schemas.HealthcheckFnInput = import_healthcheck_schema_input.default;
|
|
7686
|
+
ajv.addSchema(
|
|
7687
|
+
fixSelfRefs(
|
|
7688
|
+
import_healthcheck_schema_output.default,
|
|
7689
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
7690
|
+
),
|
|
7691
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
7692
|
+
);
|
|
7693
|
+
Schemas.HealthcheckFnOutput = import_healthcheck_schema_output.default;
|
|
7672
7694
|
ajv.addSchema(
|
|
7673
7695
|
fixSelfRefs(
|
|
7674
7696
|
import_import_data_schema_input.default,
|
|
@@ -8359,6 +8381,22 @@ ajv.addSchema(
|
|
|
8359
8381
|
"/txs/get-wallet-many/get-wallet-many.schema.output.json"
|
|
8360
8382
|
);
|
|
8361
8383
|
Schemas.GetWalletManyTxOutput = import_get_wallet_many_schema_output.default;
|
|
8384
|
+
ajv.addSchema(
|
|
8385
|
+
fixSelfRefs(
|
|
8386
|
+
import_healthcheck_schema_input2.default,
|
|
8387
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
8388
|
+
),
|
|
8389
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
8390
|
+
);
|
|
8391
|
+
Schemas.HealthcheckTxInput = import_healthcheck_schema_input2.default;
|
|
8392
|
+
ajv.addSchema(
|
|
8393
|
+
fixSelfRefs(
|
|
8394
|
+
import_healthcheck_schema_output2.default,
|
|
8395
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
8396
|
+
),
|
|
8397
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
8398
|
+
);
|
|
8399
|
+
Schemas.HealthcheckTxOutput = import_healthcheck_schema_output2.default;
|
|
8362
8400
|
ajv.addSchema(
|
|
8363
8401
|
fixSelfRefs(
|
|
8364
8402
|
import_import_actions_schema_input.default,
|
|
@@ -8739,6 +8777,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
8739
8777
|
SchemaNames2["GetTransferGroupFnOutput"] = "GetTransferGroupFnOutput";
|
|
8740
8778
|
SchemaNames2["GetWalletFnInput"] = "GetWalletFnInput";
|
|
8741
8779
|
SchemaNames2["GetWalletFnOutput"] = "GetWalletFnOutput";
|
|
8780
|
+
SchemaNames2["HealthcheckFnInput"] = "HealthcheckFnInput";
|
|
8781
|
+
SchemaNames2["HealthcheckFnOutput"] = "HealthcheckFnOutput";
|
|
8742
8782
|
SchemaNames2["ImportDataFnInput"] = "ImportDataFnInput";
|
|
8743
8783
|
SchemaNames2["ImportDataFnOptions"] = "ImportDataFnOptions";
|
|
8744
8784
|
SchemaNames2["ImportDataFnStreamChunk"] = "ImportDataFnStreamChunk";
|
|
@@ -8825,6 +8865,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
8825
8865
|
SchemaNames2["GetWalletTxOutput"] = "GetWalletTxOutput";
|
|
8826
8866
|
SchemaNames2["GetWalletManyTxInput"] = "GetWalletManyTxInput";
|
|
8827
8867
|
SchemaNames2["GetWalletManyTxOutput"] = "GetWalletManyTxOutput";
|
|
8868
|
+
SchemaNames2["HealthcheckTxInput"] = "HealthcheckTxInput";
|
|
8869
|
+
SchemaNames2["HealthcheckTxOutput"] = "HealthcheckTxOutput";
|
|
8828
8870
|
SchemaNames2["ImportActionsTxInput"] = "ImportActionsTxInput";
|
|
8829
8871
|
SchemaNames2["ImportActionsTxOptions"] = "ImportActionsTxOptions";
|
|
8830
8872
|
SchemaNames2["ImportActionsTxStreamChunk"] = "ImportActionsTxStreamChunk";
|
|
@@ -6885,6 +6885,8 @@ import GetTransferGroupFnInputSchema from "../fns/get-transfer-group/get-transfe
|
|
|
6885
6885
|
import GetTransferGroupFnOutputSchema from "../fns/get-transfer-group/get-transfer-group.schema.output.json";
|
|
6886
6886
|
import GetWalletFnInputSchema from "../fns/get-wallet/get-wallet.schema.input.json";
|
|
6887
6887
|
import GetWalletFnOutputSchema from "../fns/get-wallet/get-wallet.schema.output.json";
|
|
6888
|
+
import HealthcheckFnInputSchema from "../fns/healthcheck/healthcheck.schema.input.json";
|
|
6889
|
+
import HealthcheckFnOutputSchema from "../fns/healthcheck/healthcheck.schema.output.json";
|
|
6888
6890
|
import ImportDataFnInputSchema from "../fns/import-data/import-data.schema.input.json";
|
|
6889
6891
|
import ImportDataFnOutputSchema from "../fns/import-data/import-data.schema.output.json";
|
|
6890
6892
|
import ReverseTransferFnInputSchema from "../fns/reverse-transfer/reverse-transfer.schema.input.json";
|
|
@@ -6969,6 +6971,8 @@ import GetWalletTxInputSchema from "../txs/get-wallet/get-wallet.schema.input.js
|
|
|
6969
6971
|
import GetWalletTxOutputSchema from "../txs/get-wallet/get-wallet.schema.output.json";
|
|
6970
6972
|
import GetWalletManyTxInputSchema from "../txs/get-wallet-many/get-wallet-many.schema.input.json";
|
|
6971
6973
|
import GetWalletManyTxOutputSchema from "../txs/get-wallet-many/get-wallet-many.schema.output.json";
|
|
6974
|
+
import HealthcheckTxInputSchema from "../txs/healthcheck/healthcheck.schema.input.json";
|
|
6975
|
+
import HealthcheckTxOutputSchema from "../txs/healthcheck/healthcheck.schema.output.json";
|
|
6972
6976
|
import ImportActionsTxInputSchema from "../txs/import-actions/import-actions.schema.input.json";
|
|
6973
6977
|
import ImportActionsTxOutputSchema from "../txs/import-actions/import-actions.schema.output.json";
|
|
6974
6978
|
import ImportDatabaseTxInputSchema from "../txs/import-database/import-database.schema.input.json";
|
|
@@ -7023,10 +7027,12 @@ function getValidationError(errors, errorsText) {
|
|
|
7023
7027
|
if (errorsText === void 0) {
|
|
7024
7028
|
return;
|
|
7025
7029
|
}
|
|
7026
|
-
return new ValidationError(
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
+
return new ValidationError(
|
|
7031
|
+
{
|
|
7032
|
+
errors
|
|
7033
|
+
},
|
|
7034
|
+
errorsText
|
|
7035
|
+
);
|
|
7030
7036
|
}
|
|
7031
7037
|
function wrapValidator(validate) {
|
|
7032
7038
|
return function(input) {
|
|
@@ -7656,6 +7662,22 @@ ajv.addSchema(
|
|
|
7656
7662
|
"/fns/get-wallet/get-wallet.schema.output.json"
|
|
7657
7663
|
);
|
|
7658
7664
|
Schemas.GetWalletFnOutput = GetWalletFnOutputSchema;
|
|
7665
|
+
ajv.addSchema(
|
|
7666
|
+
fixSelfRefs(
|
|
7667
|
+
HealthcheckFnInputSchema,
|
|
7668
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
7669
|
+
),
|
|
7670
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
7671
|
+
);
|
|
7672
|
+
Schemas.HealthcheckFnInput = HealthcheckFnInputSchema;
|
|
7673
|
+
ajv.addSchema(
|
|
7674
|
+
fixSelfRefs(
|
|
7675
|
+
HealthcheckFnOutputSchema,
|
|
7676
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
7677
|
+
),
|
|
7678
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
7679
|
+
);
|
|
7680
|
+
Schemas.HealthcheckFnOutput = HealthcheckFnOutputSchema;
|
|
7659
7681
|
ajv.addSchema(
|
|
7660
7682
|
fixSelfRefs(
|
|
7661
7683
|
ImportDataFnInputSchema,
|
|
@@ -8346,6 +8368,22 @@ ajv.addSchema(
|
|
|
8346
8368
|
"/txs/get-wallet-many/get-wallet-many.schema.output.json"
|
|
8347
8369
|
);
|
|
8348
8370
|
Schemas.GetWalletManyTxOutput = GetWalletManyTxOutputSchema;
|
|
8371
|
+
ajv.addSchema(
|
|
8372
|
+
fixSelfRefs(
|
|
8373
|
+
HealthcheckTxInputSchema,
|
|
8374
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
8375
|
+
),
|
|
8376
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
8377
|
+
);
|
|
8378
|
+
Schemas.HealthcheckTxInput = HealthcheckTxInputSchema;
|
|
8379
|
+
ajv.addSchema(
|
|
8380
|
+
fixSelfRefs(
|
|
8381
|
+
HealthcheckTxOutputSchema,
|
|
8382
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
8383
|
+
),
|
|
8384
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
8385
|
+
);
|
|
8386
|
+
Schemas.HealthcheckTxOutput = HealthcheckTxOutputSchema;
|
|
8349
8387
|
ajv.addSchema(
|
|
8350
8388
|
fixSelfRefs(
|
|
8351
8389
|
ImportActionsTxInputSchema,
|
|
@@ -8726,6 +8764,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
8726
8764
|
SchemaNames2["GetTransferGroupFnOutput"] = "GetTransferGroupFnOutput";
|
|
8727
8765
|
SchemaNames2["GetWalletFnInput"] = "GetWalletFnInput";
|
|
8728
8766
|
SchemaNames2["GetWalletFnOutput"] = "GetWalletFnOutput";
|
|
8767
|
+
SchemaNames2["HealthcheckFnInput"] = "HealthcheckFnInput";
|
|
8768
|
+
SchemaNames2["HealthcheckFnOutput"] = "HealthcheckFnOutput";
|
|
8729
8769
|
SchemaNames2["ImportDataFnInput"] = "ImportDataFnInput";
|
|
8730
8770
|
SchemaNames2["ImportDataFnOptions"] = "ImportDataFnOptions";
|
|
8731
8771
|
SchemaNames2["ImportDataFnStreamChunk"] = "ImportDataFnStreamChunk";
|
|
@@ -8812,6 +8852,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
8812
8852
|
SchemaNames2["GetWalletTxOutput"] = "GetWalletTxOutput";
|
|
8813
8853
|
SchemaNames2["GetWalletManyTxInput"] = "GetWalletManyTxInput";
|
|
8814
8854
|
SchemaNames2["GetWalletManyTxOutput"] = "GetWalletManyTxOutput";
|
|
8855
|
+
SchemaNames2["HealthcheckTxInput"] = "HealthcheckTxInput";
|
|
8856
|
+
SchemaNames2["HealthcheckTxOutput"] = "HealthcheckTxOutput";
|
|
8815
8857
|
SchemaNames2["ImportActionsTxInput"] = "ImportActionsTxInput";
|
|
8816
8858
|
SchemaNames2["ImportActionsTxOptions"] = "ImportActionsTxOptions";
|
|
8817
8859
|
SchemaNames2["ImportActionsTxStreamChunk"] = "ImportActionsTxStreamChunk";
|
package/dist/lib/validator.cjs
CHANGED
|
@@ -126,6 +126,8 @@ var import_get_transfer_group_schema_input = __toESM(require('../fns/get-transfe
|
|
|
126
126
|
var import_get_transfer_group_schema_output = __toESM(require('../fns/get-transfer-group/get-transfer-group.schema.output.json'), 1);
|
|
127
127
|
var import_get_wallet_schema_input = __toESM(require('../fns/get-wallet/get-wallet.schema.input.json'), 1);
|
|
128
128
|
var import_get_wallet_schema_output = __toESM(require('../fns/get-wallet/get-wallet.schema.output.json'), 1);
|
|
129
|
+
var import_healthcheck_schema_input = __toESM(require('../fns/healthcheck/healthcheck.schema.input.json'), 1);
|
|
130
|
+
var import_healthcheck_schema_output = __toESM(require('../fns/healthcheck/healthcheck.schema.output.json'), 1);
|
|
129
131
|
var import_import_data_schema_input = __toESM(require('../fns/import-data/import-data.schema.input.json'), 1);
|
|
130
132
|
var import_import_data_schema_output = __toESM(require('../fns/import-data/import-data.schema.output.json'), 1);
|
|
131
133
|
var import_reverse_transfer_schema_input = __toESM(require('../fns/reverse-transfer/reverse-transfer.schema.input.json'), 1);
|
|
@@ -210,6 +212,8 @@ var import_get_wallet_schema_input2 = __toESM(require('../txs/get-wallet/get-wal
|
|
|
210
212
|
var import_get_wallet_schema_output2 = __toESM(require('../txs/get-wallet/get-wallet.schema.output.json'), 1);
|
|
211
213
|
var import_get_wallet_many_schema_input = __toESM(require('../txs/get-wallet-many/get-wallet-many.schema.input.json'), 1);
|
|
212
214
|
var import_get_wallet_many_schema_output = __toESM(require('../txs/get-wallet-many/get-wallet-many.schema.output.json'), 1);
|
|
215
|
+
var import_healthcheck_schema_input2 = __toESM(require('../txs/healthcheck/healthcheck.schema.input.json'), 1);
|
|
216
|
+
var import_healthcheck_schema_output2 = __toESM(require('../txs/healthcheck/healthcheck.schema.output.json'), 1);
|
|
213
217
|
var import_import_actions_schema_input = __toESM(require('../txs/import-actions/import-actions.schema.input.json'), 1);
|
|
214
218
|
var import_import_actions_schema_output = __toESM(require('../txs/import-actions/import-actions.schema.output.json'), 1);
|
|
215
219
|
var import_import_database_schema_input = __toESM(require('../txs/import-database/import-database.schema.input.json'), 1);
|
|
@@ -264,10 +268,12 @@ function getValidationError(errors, errorsText) {
|
|
|
264
268
|
if (errorsText === void 0) {
|
|
265
269
|
return;
|
|
266
270
|
}
|
|
267
|
-
return new import_errors.ValidationError(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
+
return new import_errors.ValidationError(
|
|
272
|
+
{
|
|
273
|
+
errors
|
|
274
|
+
},
|
|
275
|
+
errorsText
|
|
276
|
+
);
|
|
271
277
|
}
|
|
272
278
|
function wrapValidator(validate) {
|
|
273
279
|
return function(input) {
|
|
@@ -897,6 +903,22 @@ ajv.addSchema(
|
|
|
897
903
|
"/fns/get-wallet/get-wallet.schema.output.json"
|
|
898
904
|
);
|
|
899
905
|
Schemas.GetWalletFnOutput = import_get_wallet_schema_output.default;
|
|
906
|
+
ajv.addSchema(
|
|
907
|
+
fixSelfRefs(
|
|
908
|
+
import_healthcheck_schema_input.default,
|
|
909
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
910
|
+
),
|
|
911
|
+
"/fns/healthcheck/healthcheck.schema.input.json"
|
|
912
|
+
);
|
|
913
|
+
Schemas.HealthcheckFnInput = import_healthcheck_schema_input.default;
|
|
914
|
+
ajv.addSchema(
|
|
915
|
+
fixSelfRefs(
|
|
916
|
+
import_healthcheck_schema_output.default,
|
|
917
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
918
|
+
),
|
|
919
|
+
"/fns/healthcheck/healthcheck.schema.output.json"
|
|
920
|
+
);
|
|
921
|
+
Schemas.HealthcheckFnOutput = import_healthcheck_schema_output.default;
|
|
900
922
|
ajv.addSchema(
|
|
901
923
|
fixSelfRefs(
|
|
902
924
|
import_import_data_schema_input.default,
|
|
@@ -1587,6 +1609,22 @@ ajv.addSchema(
|
|
|
1587
1609
|
"/txs/get-wallet-many/get-wallet-many.schema.output.json"
|
|
1588
1610
|
);
|
|
1589
1611
|
Schemas.GetWalletManyTxOutput = import_get_wallet_many_schema_output.default;
|
|
1612
|
+
ajv.addSchema(
|
|
1613
|
+
fixSelfRefs(
|
|
1614
|
+
import_healthcheck_schema_input2.default,
|
|
1615
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
1616
|
+
),
|
|
1617
|
+
"/txs/healthcheck/healthcheck.schema.input.json"
|
|
1618
|
+
);
|
|
1619
|
+
Schemas.HealthcheckTxInput = import_healthcheck_schema_input2.default;
|
|
1620
|
+
ajv.addSchema(
|
|
1621
|
+
fixSelfRefs(
|
|
1622
|
+
import_healthcheck_schema_output2.default,
|
|
1623
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
1624
|
+
),
|
|
1625
|
+
"/txs/healthcheck/healthcheck.schema.output.json"
|
|
1626
|
+
);
|
|
1627
|
+
Schemas.HealthcheckTxOutput = import_healthcheck_schema_output2.default;
|
|
1590
1628
|
ajv.addSchema(
|
|
1591
1629
|
fixSelfRefs(
|
|
1592
1630
|
import_import_actions_schema_input.default,
|
|
@@ -1967,6 +2005,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
1967
2005
|
SchemaNames2["GetTransferGroupFnOutput"] = "GetTransferGroupFnOutput";
|
|
1968
2006
|
SchemaNames2["GetWalletFnInput"] = "GetWalletFnInput";
|
|
1969
2007
|
SchemaNames2["GetWalletFnOutput"] = "GetWalletFnOutput";
|
|
2008
|
+
SchemaNames2["HealthcheckFnInput"] = "HealthcheckFnInput";
|
|
2009
|
+
SchemaNames2["HealthcheckFnOutput"] = "HealthcheckFnOutput";
|
|
1970
2010
|
SchemaNames2["ImportDataFnInput"] = "ImportDataFnInput";
|
|
1971
2011
|
SchemaNames2["ImportDataFnOptions"] = "ImportDataFnOptions";
|
|
1972
2012
|
SchemaNames2["ImportDataFnStreamChunk"] = "ImportDataFnStreamChunk";
|
|
@@ -2053,6 +2093,8 @@ var SchemaNames = /* @__PURE__ */ ((SchemaNames2) => {
|
|
|
2053
2093
|
SchemaNames2["GetWalletTxOutput"] = "GetWalletTxOutput";
|
|
2054
2094
|
SchemaNames2["GetWalletManyTxInput"] = "GetWalletManyTxInput";
|
|
2055
2095
|
SchemaNames2["GetWalletManyTxOutput"] = "GetWalletManyTxOutput";
|
|
2096
|
+
SchemaNames2["HealthcheckTxInput"] = "HealthcheckTxInput";
|
|
2097
|
+
SchemaNames2["HealthcheckTxOutput"] = "HealthcheckTxOutput";
|
|
2056
2098
|
SchemaNames2["ImportActionsTxInput"] = "ImportActionsTxInput";
|
|
2057
2099
|
SchemaNames2["ImportActionsTxOptions"] = "ImportActionsTxOptions";
|
|
2058
2100
|
SchemaNames2["ImportActionsTxStreamChunk"] = "ImportActionsTxStreamChunk";
|