wapi-client 0.14.4 → 0.14.10
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/client.browser.cjs +1 -1
- package/dist/client.browser.js +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.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/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/txs/consts.browser.cjs +10 -2
- package/dist/txs/consts.browser.js +10 -2
- package/dist/txs/consts.cjs +10 -2
- package/dist/txs/consts.js +10 -2
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.cjs +33 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.js +33 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.cjs +33 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.js +33 -1
- package/dist/types/wapi-client.d.ts +5551 -833
- package/dist/wapi-client-web.iife.js +7 -7
- package/dist/wapi-client.iife.js +7 -7
- package/package.json +1 -1
|
@@ -23,7 +23,6 @@ __export(reverse_transfer_group_exports, {
|
|
|
23
23
|
reverseTransferGroup: () => reverseTransferGroup
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(reverse_transfer_group_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.cjs");
|
|
28
27
|
var import_reverse_transfer_group_schema_zod = require("./reverse-transfer-group.schema.zod.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_reverse_transfer_group_schema_zod.reverseTransferGroupFnInputSchema);
|
|
@@ -36,7 +35,7 @@ function reverseTransferGroup(options, input, fnOptions) {
|
|
|
36
35
|
);
|
|
37
36
|
}
|
|
38
37
|
return client.api.reverseTransferGroup({
|
|
39
|
-
transfer_group:
|
|
38
|
+
transfer_group: inputCopy.transfer_group,
|
|
40
39
|
reverse: {
|
|
41
40
|
status: inputCopy.status,
|
|
42
41
|
force: inputCopy.force,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/reverse-transfer-group/reverse-transfer-group.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.js";
|
|
4
3
|
import { reverseTransferGroupFnInputSchema } from "./reverse-transfer-group.schema.zod.js";
|
|
5
4
|
var zodValidator = getValidator(reverseTransferGroupFnInputSchema);
|
|
@@ -12,7 +11,7 @@ function reverseTransferGroup(options, input, fnOptions) {
|
|
|
12
11
|
);
|
|
13
12
|
}
|
|
14
13
|
return client.api.reverseTransferGroup({
|
|
15
|
-
transfer_group:
|
|
14
|
+
transfer_group: inputCopy.transfer_group,
|
|
16
15
|
reverse: {
|
|
17
16
|
status: inputCopy.status,
|
|
18
17
|
force: inputCopy.force,
|
|
@@ -23,7 +23,6 @@ __export(update_token_exports, {
|
|
|
23
23
|
updateToken: () => updateToken
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_token_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
28
27
|
var import_update_token_schema_zod = require("./update-token.schema.zod.browser.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_token_schema_zod.updateTokenFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateToken(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateToken({
|
|
34
|
-
token:
|
|
33
|
+
token: inputCopy.token,
|
|
35
34
|
update: {
|
|
36
35
|
public: inputCopy.public,
|
|
37
36
|
metadata: inputCopy.metadata,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-token/update-token.ts
|
|
2
|
-
import { getForeign } from "../../lib/utils.browser.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
4
3
|
import { updateTokenFnInputSchema } from "./update-token.schema.zod.browser.js";
|
|
5
4
|
var zodValidator = getValidator(updateTokenFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateToken(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateToken({
|
|
10
|
-
token:
|
|
9
|
+
token: inputCopy.token,
|
|
11
10
|
update: {
|
|
12
11
|
public: inputCopy.public,
|
|
13
12
|
metadata: inputCopy.metadata,
|
|
@@ -23,7 +23,6 @@ __export(update_token_exports, {
|
|
|
23
23
|
updateToken: () => updateToken
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_token_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.cjs");
|
|
28
27
|
var import_update_token_schema_zod = require("./update-token.schema.zod.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_token_schema_zod.updateTokenFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateToken(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateToken({
|
|
34
|
-
token:
|
|
33
|
+
token: inputCopy.token,
|
|
35
34
|
update: {
|
|
36
35
|
public: inputCopy.public,
|
|
37
36
|
metadata: inputCopy.metadata,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-token/update-token.ts
|
|
2
|
-
import { getForeign } from "../../lib/utils.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.js";
|
|
4
3
|
import { updateTokenFnInputSchema } from "./update-token.schema.zod.js";
|
|
5
4
|
var zodValidator = getValidator(updateTokenFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateToken(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateToken({
|
|
10
|
-
token:
|
|
9
|
+
token: inputCopy.token,
|
|
11
10
|
update: {
|
|
12
11
|
public: inputCopy.public,
|
|
13
12
|
metadata: inputCopy.metadata,
|
|
@@ -23,7 +23,6 @@ __export(update_transfer_exports, {
|
|
|
23
23
|
updateTransfer: () => updateTransfer
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_transfer_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
28
27
|
var import_update_transfer_schema_zod = require("./update-transfer.schema.zod.browser.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_transfer_schema_zod.updateTransferFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateTransfer(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateTransfer({
|
|
34
|
-
transfer:
|
|
33
|
+
transfer: inputCopy.transfer,
|
|
35
34
|
update: {
|
|
36
35
|
status: inputCopy.status,
|
|
37
36
|
metadata: inputCopy.metadata,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-transfer/update-transfer.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.browser.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
4
3
|
import { updateTransferFnInputSchema } from "./update-transfer.schema.zod.browser.js";
|
|
5
4
|
var zodValidator = getValidator(updateTransferFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateTransfer(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateTransfer({
|
|
10
|
-
transfer:
|
|
9
|
+
transfer: inputCopy.transfer,
|
|
11
10
|
update: {
|
|
12
11
|
status: inputCopy.status,
|
|
13
12
|
metadata: inputCopy.metadata,
|
|
@@ -23,7 +23,6 @@ __export(update_transfer_exports, {
|
|
|
23
23
|
updateTransfer: () => updateTransfer
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_transfer_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.cjs");
|
|
28
27
|
var import_update_transfer_schema_zod = require("./update-transfer.schema.zod.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_transfer_schema_zod.updateTransferFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateTransfer(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateTransfer({
|
|
34
|
-
transfer:
|
|
33
|
+
transfer: inputCopy.transfer,
|
|
35
34
|
update: {
|
|
36
35
|
status: inputCopy.status,
|
|
37
36
|
metadata: inputCopy.metadata,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-transfer/update-transfer.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.js";
|
|
4
3
|
import { updateTransferFnInputSchema } from "./update-transfer.schema.zod.js";
|
|
5
4
|
var zodValidator = getValidator(updateTransferFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateTransfer(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateTransfer({
|
|
10
|
-
transfer:
|
|
9
|
+
transfer: inputCopy.transfer,
|
|
11
10
|
update: {
|
|
12
11
|
status: inputCopy.status,
|
|
13
12
|
metadata: inputCopy.metadata,
|
|
@@ -23,7 +23,6 @@ __export(update_transfer_group_exports, {
|
|
|
23
23
|
updateTransferGroup: () => updateTransferGroup
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_transfer_group_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
28
27
|
var import_update_transfer_group_schema_zod = require("./update-transfer-group.schema.zod.browser.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_transfer_group_schema_zod.updateTransferGroupFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateTransferGroup(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateTransferGroup({
|
|
34
|
-
transfer_group:
|
|
33
|
+
transfer_group: inputCopy.transfer_group,
|
|
35
34
|
update: {
|
|
36
35
|
transfer_status: inputCopy.transfer_status,
|
|
37
36
|
status: inputCopy.status,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-transfer-group/update-transfer-group.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.browser.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
4
3
|
import { updateTransferGroupFnInputSchema } from "./update-transfer-group.schema.zod.browser.js";
|
|
5
4
|
var zodValidator = getValidator(updateTransferGroupFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateTransferGroup(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateTransferGroup({
|
|
10
|
-
transfer_group:
|
|
9
|
+
transfer_group: inputCopy.transfer_group,
|
|
11
10
|
update: {
|
|
12
11
|
transfer_status: inputCopy.transfer_status,
|
|
13
12
|
status: inputCopy.status,
|
|
@@ -23,7 +23,6 @@ __export(update_transfer_group_exports, {
|
|
|
23
23
|
updateTransferGroup: () => updateTransferGroup
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_transfer_group_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.cjs");
|
|
28
27
|
var import_update_transfer_group_schema_zod = require("./update-transfer-group.schema.zod.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_transfer_group_schema_zod.updateTransferGroupFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateTransferGroup(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateTransferGroup({
|
|
34
|
-
transfer_group:
|
|
33
|
+
transfer_group: inputCopy.transfer_group,
|
|
35
34
|
update: {
|
|
36
35
|
transfer_status: inputCopy.transfer_status,
|
|
37
36
|
status: inputCopy.status,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-transfer-group/update-transfer-group.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.js";
|
|
4
3
|
import { updateTransferGroupFnInputSchema } from "./update-transfer-group.schema.zod.js";
|
|
5
4
|
var zodValidator = getValidator(updateTransferGroupFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateTransferGroup(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateTransferGroup({
|
|
10
|
-
transfer_group:
|
|
9
|
+
transfer_group: inputCopy.transfer_group,
|
|
11
10
|
update: {
|
|
12
11
|
transfer_status: inputCopy.transfer_status,
|
|
13
12
|
status: inputCopy.status,
|
|
@@ -23,7 +23,6 @@ __export(update_wallet_exports, {
|
|
|
23
23
|
updateWallet: () => updateWallet
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_wallet_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
28
27
|
var import_update_wallet_schema_zod = require("./update-wallet.schema.zod.browser.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_wallet_schema_zod.updateWalletFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateWallet(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateWallet({
|
|
34
|
-
wallet:
|
|
33
|
+
wallet: inputCopy.wallet,
|
|
35
34
|
update: {
|
|
36
35
|
metadata: inputCopy.metadata,
|
|
37
36
|
status: inputCopy.status,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-wallet/update-wallet.ts
|
|
2
|
-
import { getForeign } from "../../lib/utils.browser.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
4
3
|
import { updateWalletFnInputSchema } from "./update-wallet.schema.zod.browser.js";
|
|
5
4
|
var zodValidator = getValidator(updateWalletFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateWallet(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateWallet({
|
|
10
|
-
wallet:
|
|
9
|
+
wallet: inputCopy.wallet,
|
|
11
10
|
update: {
|
|
12
11
|
metadata: inputCopy.metadata,
|
|
13
12
|
status: inputCopy.status,
|
|
@@ -23,7 +23,6 @@ __export(update_wallet_exports, {
|
|
|
23
23
|
updateWallet: () => updateWallet
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(update_wallet_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.cjs");
|
|
28
27
|
var import_update_wallet_schema_zod = require("./update-wallet.schema.zod.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_update_wallet_schema_zod.updateWalletFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function updateWallet(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.updateWallet({
|
|
34
|
-
wallet:
|
|
33
|
+
wallet: inputCopy.wallet,
|
|
35
34
|
update: {
|
|
36
35
|
metadata: inputCopy.metadata,
|
|
37
36
|
status: inputCopy.status,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/update-wallet/update-wallet.ts
|
|
2
|
-
import { getForeign } from "../../lib/utils.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.js";
|
|
4
3
|
import { updateWalletFnInputSchema } from "./update-wallet.schema.zod.js";
|
|
5
4
|
var zodValidator = getValidator(updateWalletFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function updateWallet(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.updateWallet({
|
|
10
|
-
wallet:
|
|
9
|
+
wallet: inputCopy.wallet,
|
|
11
10
|
update: {
|
|
12
11
|
metadata: inputCopy.metadata,
|
|
13
12
|
status: inputCopy.status,
|
package/dist/lib/env.browser.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __export(env_exports, {
|
|
|
24
24
|
getEnvConfig: () => getEnvConfig
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(env_exports);
|
|
27
|
-
var CLIENT_VERSION = "0.14.
|
|
27
|
+
var CLIENT_VERSION = "0.14.10";
|
|
28
28
|
function getEnvConfig(key, defaultValue) {
|
|
29
29
|
const val = getVariable(key);
|
|
30
30
|
if (val === void 0) {
|
package/dist/lib/env.browser.js
CHANGED
package/dist/lib/env.cjs
CHANGED
|
@@ -24,7 +24,7 @@ __export(env_exports, {
|
|
|
24
24
|
getEnvConfig: () => getEnvConfig
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(env_exports);
|
|
27
|
-
var CLIENT_VERSION = "0.14.
|
|
27
|
+
var CLIENT_VERSION = "0.14.10";
|
|
28
28
|
function getEnvConfig(key, defaultValue) {
|
|
29
29
|
const val = getVariable(key);
|
|
30
30
|
if (val === void 0) {
|
package/dist/lib/env.js
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,
|
|
@@ -208,30 +205,6 @@ function checkCopyObject(input, property, value) {
|
|
|
208
205
|
copy[property] = value;
|
|
209
206
|
return copy;
|
|
210
207
|
}
|
|
211
|
-
function getForeign(value) {
|
|
212
|
-
const stringValue = inputToString(value);
|
|
213
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
214
|
-
return void 0;
|
|
215
|
-
}
|
|
216
|
-
return {
|
|
217
|
-
foreign: stringValue
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
function getIdentifierFilter(value) {
|
|
221
|
-
const stringValue = inputToString(value);
|
|
222
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
223
|
-
return void 0;
|
|
224
|
-
}
|
|
225
|
-
return {
|
|
226
|
-
identifier: stringValue
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
function inputToString(value) {
|
|
230
|
-
if (value === void 0 || value === null) {
|
|
231
|
-
return value;
|
|
232
|
-
}
|
|
233
|
-
return value + "";
|
|
234
|
-
}
|
|
235
208
|
function toQueryString(obj) {
|
|
236
209
|
return Object.keys(obj).filter((key) => obj[key] !== void 0).map(
|
|
237
210
|
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`
|
|
@@ -167,30 +167,6 @@ function checkCopyObject(input, property, value) {
|
|
|
167
167
|
copy[property] = value;
|
|
168
168
|
return copy;
|
|
169
169
|
}
|
|
170
|
-
function getForeign(value) {
|
|
171
|
-
const stringValue = inputToString(value);
|
|
172
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
173
|
-
return void 0;
|
|
174
|
-
}
|
|
175
|
-
return {
|
|
176
|
-
foreign: stringValue
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
function getIdentifierFilter(value) {
|
|
180
|
-
const stringValue = inputToString(value);
|
|
181
|
-
if (stringValue === void 0 || stringValue === null) {
|
|
182
|
-
return void 0;
|
|
183
|
-
}
|
|
184
|
-
return {
|
|
185
|
-
identifier: stringValue
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function inputToString(value) {
|
|
189
|
-
if (value === void 0 || value === null) {
|
|
190
|
-
return value;
|
|
191
|
-
}
|
|
192
|
-
return value + "";
|
|
193
|
-
}
|
|
194
170
|
function toQueryString(obj) {
|
|
195
171
|
return Object.keys(obj).filter((key) => obj[key] !== void 0).map(
|
|
196
172
|
(key) => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`
|
|
@@ -308,12 +284,9 @@ export {
|
|
|
308
284
|
copyObject,
|
|
309
285
|
getConnectionParams,
|
|
310
286
|
getConnectionUrl,
|
|
311
|
-
getForeign,
|
|
312
287
|
getIdentifier,
|
|
313
|
-
getIdentifierFilter,
|
|
314
288
|
getRandomHex,
|
|
315
289
|
getTxIdSync,
|
|
316
|
-
inputToString,
|
|
317
290
|
isDate,
|
|
318
291
|
isDateTime,
|
|
319
292
|
isFutureDate,
|
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,
|
|
@@ -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",
|
|
@@ -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",
|
package/dist/txs/consts.cjs
CHANGED
|
@@ -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",
|
package/dist/txs/consts.js
CHANGED
|
@@ -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",
|