wapi-client 0.16.0-beta.1 → 0.16.0-beta.3
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/fns/create-transfer/create-transfer.browser.cjs +2 -2
- package/dist/fns/create-transfer/create-transfer.browser.js +2 -2
- package/dist/fns/create-transfer/create-transfer.cjs +2 -2
- package/dist/fns/create-transfer/create-transfer.js +2 -2
- package/dist/fns/create-transfer/create-transfer.schema.zod.browser.cjs +2 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.browser.js +2 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.cjs +2 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.js +2 -1
- package/dist/fns/create-wallet/create-wallet.browser.cjs +2 -14
- package/dist/fns/create-wallet/create-wallet.browser.js +2 -15
- package/dist/fns/create-wallet/create-wallet.cjs +2 -14
- package/dist/fns/create-wallet/create-wallet.js +2 -15
- package/dist/fns/create-wallet/create-wallet.schema.zod.browser.cjs +3 -1
- package/dist/fns/create-wallet/create-wallet.schema.zod.browser.js +3 -1
- package/dist/fns/create-wallet/create-wallet.schema.zod.cjs +3 -1
- package/dist/fns/create-wallet/create-wallet.schema.zod.js +3 -1
- package/dist/fns/update-wallet/update-wallet.browser.cjs +18 -7
- package/dist/fns/update-wallet/update-wallet.browser.js +20 -7
- package/dist/fns/update-wallet/update-wallet.cjs +18 -7
- package/dist/fns/update-wallet/update-wallet.js +20 -7
- package/dist/fns/update-wallet/update-wallet.schema.zod.browser.cjs +3 -1
- package/dist/fns/update-wallet/update-wallet.schema.zod.browser.js +3 -1
- package/dist/fns/update-wallet/update-wallet.schema.zod.cjs +3 -1
- package/dist/fns/update-wallet/update-wallet.schema.zod.js +3 -1
- 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/txs/create-wallet/create-wallet.schema.zod.browser.cjs +3 -1
- package/dist/txs/create-wallet/create-wallet.schema.zod.browser.js +3 -1
- package/dist/txs/create-wallet/create-wallet.schema.zod.cjs +3 -1
- package/dist/txs/create-wallet/create-wallet.schema.zod.js +3 -1
- package/dist/txs/get-transfer/get-transfer.schema.zod.browser.cjs +2 -1
- package/dist/txs/get-transfer/get-transfer.schema.zod.browser.js +2 -1
- package/dist/txs/get-transfer/get-transfer.schema.zod.cjs +2 -1
- package/dist/txs/get-transfer/get-transfer.schema.zod.js +2 -1
- package/dist/txs/update-wallet/update-wallet.schema.zod.browser.cjs +3 -1
- package/dist/txs/update-wallet/update-wallet.schema.zod.browser.js +3 -1
- package/dist/txs/update-wallet/update-wallet.schema.zod.cjs +3 -1
- package/dist/txs/update-wallet/update-wallet.schema.zod.js +3 -1
- package/dist/types/wapi-client.d.ts +162 -24
- package/dist/wapi-client-web.iife.js +6 -6
- package/dist/wapi-client.iife.js +6 -6
- package/package.json +1 -1
|
@@ -72,7 +72,7 @@ function createTransfer(options, input, fnOptions) {
|
|
|
72
72
|
}
|
|
73
73
|
function transferFnInputToTransferData(input, token) {
|
|
74
74
|
input.type = input.type || "transfer";
|
|
75
|
-
const transfer = {
|
|
75
|
+
const transfer = __spreadValues({
|
|
76
76
|
identifier: input.identifier,
|
|
77
77
|
token: input.token || token,
|
|
78
78
|
amount: (0, import_utils.convertToNumber)(input.amount),
|
|
@@ -81,7 +81,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
81
81
|
type: input.type,
|
|
82
82
|
transfer_group: input.transfer_group,
|
|
83
83
|
created_at: input.created_at
|
|
84
|
-
};
|
|
84
|
+
}, "force" in input ? { force: Boolean(input.force) } : {});
|
|
85
85
|
if (input.type === "transfer") {
|
|
86
86
|
if (input.latest_control_hash) {
|
|
87
87
|
console.warn("deprecated: latest_control_hash is deprecated");
|
|
@@ -54,7 +54,7 @@ function createTransfer(options, input, fnOptions) {
|
|
|
54
54
|
}
|
|
55
55
|
function transferFnInputToTransferData(input, token) {
|
|
56
56
|
input.type = input.type || "transfer";
|
|
57
|
-
const transfer = {
|
|
57
|
+
const transfer = __spreadValues({
|
|
58
58
|
identifier: input.identifier,
|
|
59
59
|
token: input.token || token,
|
|
60
60
|
amount: convertToNumber(input.amount),
|
|
@@ -63,7 +63,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
63
63
|
type: input.type,
|
|
64
64
|
transfer_group: input.transfer_group,
|
|
65
65
|
created_at: input.created_at
|
|
66
|
-
};
|
|
66
|
+
}, "force" in input ? { force: Boolean(input.force) } : {});
|
|
67
67
|
if (input.type === "transfer") {
|
|
68
68
|
if (input.latest_control_hash) {
|
|
69
69
|
console.warn("deprecated: latest_control_hash is deprecated");
|
|
@@ -72,7 +72,7 @@ function createTransfer(options, input, fnOptions) {
|
|
|
72
72
|
}
|
|
73
73
|
function transferFnInputToTransferData(input, token) {
|
|
74
74
|
input.type = input.type || "transfer";
|
|
75
|
-
const transfer = {
|
|
75
|
+
const transfer = __spreadValues({
|
|
76
76
|
identifier: input.identifier,
|
|
77
77
|
token: input.token || token,
|
|
78
78
|
amount: (0, import_utils.convertToNumber)(input.amount),
|
|
@@ -81,7 +81,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
81
81
|
type: input.type,
|
|
82
82
|
transfer_group: input.transfer_group,
|
|
83
83
|
created_at: input.created_at
|
|
84
|
-
};
|
|
84
|
+
}, "force" in input ? { force: Boolean(input.force) } : {});
|
|
85
85
|
if (input.type === "transfer") {
|
|
86
86
|
if (input.latest_control_hash) {
|
|
87
87
|
console.warn("deprecated: latest_control_hash is deprecated");
|
|
@@ -54,7 +54,7 @@ function createTransfer(options, input, fnOptions) {
|
|
|
54
54
|
}
|
|
55
55
|
function transferFnInputToTransferData(input, token) {
|
|
56
56
|
input.type = input.type || "transfer";
|
|
57
|
-
const transfer = {
|
|
57
|
+
const transfer = __spreadValues({
|
|
58
58
|
identifier: input.identifier,
|
|
59
59
|
token: input.token || token,
|
|
60
60
|
amount: convertToNumber(input.amount),
|
|
@@ -63,7 +63,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
63
63
|
type: input.type,
|
|
64
64
|
transfer_group: input.transfer_group,
|
|
65
65
|
created_at: input.created_at
|
|
66
|
-
};
|
|
66
|
+
}, "force" in input ? { force: Boolean(input.force) } : {});
|
|
67
67
|
if (input.type === "transfer") {
|
|
68
68
|
if (input.latest_control_hash) {
|
|
69
69
|
console.warn("deprecated: latest_control_hash is deprecated");
|
|
@@ -53,7 +53,8 @@ var createTransferBaseInputSchema = import_zod.z.object({
|
|
|
53
53
|
"Id of the transfer_group this transfer is linked to"
|
|
54
54
|
),
|
|
55
55
|
created_at: import_transfer_schema_zod.transferTableSchema.shape.created_at,
|
|
56
|
-
type: import_zod.z.literal("transfer")
|
|
56
|
+
type: import_zod.z.literal("transfer"),
|
|
57
|
+
force: import_transfer_schema_zod.transferTableSchema.shape.force
|
|
57
58
|
});
|
|
58
59
|
var createTransferRegularInputSchema = createTransferBaseInputSchema.extend({
|
|
59
60
|
type: import_zod.z.literal("transfer")
|
|
@@ -30,7 +30,8 @@ var createTransferBaseInputSchema = z.object({
|
|
|
30
30
|
"Id of the transfer_group this transfer is linked to"
|
|
31
31
|
),
|
|
32
32
|
created_at: transferTableSchema.shape.created_at,
|
|
33
|
-
type: z.literal("transfer")
|
|
33
|
+
type: z.literal("transfer"),
|
|
34
|
+
force: transferTableSchema.shape.force
|
|
34
35
|
});
|
|
35
36
|
var createTransferRegularInputSchema = createTransferBaseInputSchema.extend({
|
|
36
37
|
type: z.literal("transfer")
|
|
@@ -53,7 +53,8 @@ var createTransferBaseInputSchema = import_zod.z.object({
|
|
|
53
53
|
"Id of the transfer_group this transfer is linked to"
|
|
54
54
|
),
|
|
55
55
|
created_at: import_transfer_schema_zod.transferTableSchema.shape.created_at,
|
|
56
|
-
type: import_zod.z.literal("transfer")
|
|
56
|
+
type: import_zod.z.literal("transfer"),
|
|
57
|
+
force: import_transfer_schema_zod.transferTableSchema.shape.force
|
|
57
58
|
});
|
|
58
59
|
var createTransferRegularInputSchema = createTransferBaseInputSchema.extend({
|
|
59
60
|
type: import_zod.z.literal("transfer")
|
|
@@ -30,7 +30,8 @@ var createTransferBaseInputSchema = z.object({
|
|
|
30
30
|
"Id of the transfer_group this transfer is linked to"
|
|
31
31
|
),
|
|
32
32
|
created_at: transferTableSchema.shape.created_at,
|
|
33
|
-
type: z.literal("transfer")
|
|
33
|
+
type: z.literal("transfer"),
|
|
34
|
+
force: transferTableSchema.shape.force
|
|
34
35
|
});
|
|
35
36
|
var createTransferRegularInputSchema = createTransferBaseInputSchema.extend({
|
|
36
37
|
type: z.literal("transfer")
|
|
@@ -5,18 +5,6 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
8
|
var __objRest = (source, exclude) => {
|
|
21
9
|
var target = {};
|
|
22
10
|
for (var prop in source)
|
|
@@ -55,9 +43,9 @@ var zodValidator = (0, import_validation.getValidator)(import_create_wallet_sche
|
|
|
55
43
|
function createWallet(options, input, fnOptions) {
|
|
56
44
|
const { client } = options;
|
|
57
45
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
58
|
-
const _a = inputCopy, { options: clientOptions
|
|
46
|
+
const _a = inputCopy, { options: clientOptions } = _a, wallet = __objRest(_a, ["options"]);
|
|
59
47
|
return client.api.createWallet({
|
|
60
|
-
wallet
|
|
48
|
+
wallet,
|
|
61
49
|
options: clientOptions
|
|
62
50
|
});
|
|
63
51
|
}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
1
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
2
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
3
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
4
|
var __objRest = (source, exclude) => {
|
|
18
5
|
var target = {};
|
|
19
6
|
for (var prop in source)
|
|
@@ -34,9 +21,9 @@ var zodValidator = getValidator(createWalletFnInputSchema);
|
|
|
34
21
|
function createWallet(options, input, fnOptions) {
|
|
35
22
|
const { client } = options;
|
|
36
23
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
37
|
-
const _a = inputCopy, { options: clientOptions
|
|
24
|
+
const _a = inputCopy, { options: clientOptions } = _a, wallet = __objRest(_a, ["options"]);
|
|
38
25
|
return client.api.createWallet({
|
|
39
|
-
wallet
|
|
26
|
+
wallet,
|
|
40
27
|
options: clientOptions
|
|
41
28
|
});
|
|
42
29
|
}
|
|
@@ -5,18 +5,6 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
8
|
var __objRest = (source, exclude) => {
|
|
21
9
|
var target = {};
|
|
22
10
|
for (var prop in source)
|
|
@@ -55,9 +43,9 @@ var zodValidator = (0, import_validation.getValidator)(import_create_wallet_sche
|
|
|
55
43
|
function createWallet(options, input, fnOptions) {
|
|
56
44
|
const { client } = options;
|
|
57
45
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
58
|
-
const _a = inputCopy, { options: clientOptions
|
|
46
|
+
const _a = inputCopy, { options: clientOptions } = _a, wallet = __objRest(_a, ["options"]);
|
|
59
47
|
return client.api.createWallet({
|
|
60
|
-
wallet
|
|
48
|
+
wallet,
|
|
61
49
|
options: clientOptions
|
|
62
50
|
});
|
|
63
51
|
}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
1
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
2
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
3
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
4
|
var __objRest = (source, exclude) => {
|
|
18
5
|
var target = {};
|
|
19
6
|
for (var prop in source)
|
|
@@ -34,9 +21,9 @@ var zodValidator = getValidator(createWalletFnInputSchema);
|
|
|
34
21
|
function createWallet(options, input, fnOptions) {
|
|
35
22
|
const { client } = options;
|
|
36
23
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
37
|
-
const _a = inputCopy, { options: clientOptions
|
|
24
|
+
const _a = inputCopy, { options: clientOptions } = _a, wallet = __objRest(_a, ["options"]);
|
|
38
25
|
return client.api.createWallet({
|
|
39
|
-
wallet
|
|
26
|
+
wallet,
|
|
40
27
|
options: clientOptions
|
|
41
28
|
});
|
|
42
29
|
}
|
|
@@ -34,7 +34,9 @@ var createWalletInputSchema = import_wallet_schema_zod.walletTableSchema.pick({
|
|
|
34
34
|
foreign: true,
|
|
35
35
|
name: true,
|
|
36
36
|
metadata: true,
|
|
37
|
-
status: true
|
|
37
|
+
status: true,
|
|
38
|
+
default_allow_negative: true,
|
|
39
|
+
default_allow_positive: true
|
|
38
40
|
}).partial().required({
|
|
39
41
|
foreign: true
|
|
40
42
|
});
|
|
@@ -34,7 +34,9 @@ var createWalletInputSchema = import_wallet_schema_zod.walletTableSchema.pick({
|
|
|
34
34
|
foreign: true,
|
|
35
35
|
name: true,
|
|
36
36
|
metadata: true,
|
|
37
|
-
status: true
|
|
37
|
+
status: true,
|
|
38
|
+
default_allow_negative: true,
|
|
39
|
+
default_allow_positive: true
|
|
38
40
|
}).partial().required({
|
|
39
41
|
foreign: true
|
|
40
42
|
});
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __objRest = (source, exclude) => {
|
|
9
|
+
var target = {};
|
|
10
|
+
for (var prop in source)
|
|
11
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
if (source != null && __getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
15
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
16
|
+
target[prop] = source[prop];
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,13 +43,10 @@ var zodValidator = (0, import_validation.getValidator)(import_update_wallet_sche
|
|
|
29
43
|
function updateWallet(options, input, fnOptions) {
|
|
30
44
|
const { client } = options;
|
|
31
45
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
46
|
+
const _a = inputCopy, { options: inputOptions, wallet } = _a, update = __objRest(_a, ["options", "wallet"]);
|
|
32
47
|
return client.api.updateWallet({
|
|
33
|
-
wallet
|
|
34
|
-
update
|
|
35
|
-
|
|
36
|
-
status: inputCopy.status,
|
|
37
|
-
name: inputCopy.name
|
|
38
|
-
},
|
|
39
|
-
options: inputCopy.options
|
|
48
|
+
wallet,
|
|
49
|
+
update,
|
|
50
|
+
options: inputOptions
|
|
40
51
|
});
|
|
41
52
|
}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var __objRest = (source, exclude) => {
|
|
5
|
+
var target = {};
|
|
6
|
+
for (var prop in source)
|
|
7
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8
|
+
target[prop] = source[prop];
|
|
9
|
+
if (source != null && __getOwnPropSymbols)
|
|
10
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
11
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
1
17
|
// src/fns/update-wallet/update-wallet.ts
|
|
2
18
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
3
19
|
import { updateWalletFnInputSchema } from "./update-wallet.schema.zod.browser.js";
|
|
@@ -5,14 +21,11 @@ var zodValidator = getValidator(updateWalletFnInputSchema);
|
|
|
5
21
|
function updateWallet(options, input, fnOptions) {
|
|
6
22
|
const { client } = options;
|
|
7
23
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
24
|
+
const _a = inputCopy, { options: inputOptions, wallet } = _a, update = __objRest(_a, ["options", "wallet"]);
|
|
8
25
|
return client.api.updateWallet({
|
|
9
|
-
wallet
|
|
10
|
-
update
|
|
11
|
-
|
|
12
|
-
status: inputCopy.status,
|
|
13
|
-
name: inputCopy.name
|
|
14
|
-
},
|
|
15
|
-
options: inputCopy.options
|
|
26
|
+
wallet,
|
|
27
|
+
update,
|
|
28
|
+
options: inputOptions
|
|
16
29
|
});
|
|
17
30
|
}
|
|
18
31
|
export {
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __objRest = (source, exclude) => {
|
|
9
|
+
var target = {};
|
|
10
|
+
for (var prop in source)
|
|
11
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
if (source != null && __getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
15
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
16
|
+
target[prop] = source[prop];
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,14 +43,11 @@ var zodValidator = (0, import_validation.getValidator)(import_update_wallet_sche
|
|
|
29
43
|
function updateWallet(options, input, fnOptions) {
|
|
30
44
|
const { client } = options;
|
|
31
45
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
46
|
+
const _a = inputCopy, { options: inputOptions, wallet } = _a, update = __objRest(_a, ["options", "wallet"]);
|
|
32
47
|
return client.api.updateWallet({
|
|
33
|
-
wallet
|
|
34
|
-
update
|
|
35
|
-
|
|
36
|
-
status: inputCopy.status,
|
|
37
|
-
name: inputCopy.name
|
|
38
|
-
},
|
|
39
|
-
options: inputCopy.options
|
|
48
|
+
wallet,
|
|
49
|
+
update,
|
|
50
|
+
options: inputOptions
|
|
40
51
|
});
|
|
41
52
|
}
|
|
42
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var __objRest = (source, exclude) => {
|
|
5
|
+
var target = {};
|
|
6
|
+
for (var prop in source)
|
|
7
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8
|
+
target[prop] = source[prop];
|
|
9
|
+
if (source != null && __getOwnPropSymbols)
|
|
10
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
11
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
1
17
|
// src/fns/update-wallet/update-wallet.ts
|
|
2
18
|
import { getValidator } from "../../lib/validation.js";
|
|
3
19
|
import { updateWalletFnInputSchema } from "./update-wallet.schema.zod.js";
|
|
@@ -5,14 +21,11 @@ var zodValidator = getValidator(updateWalletFnInputSchema);
|
|
|
5
21
|
function updateWallet(options, input, fnOptions) {
|
|
6
22
|
const { client } = options;
|
|
7
23
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
24
|
+
const _a = inputCopy, { options: inputOptions, wallet } = _a, update = __objRest(_a, ["options", "wallet"]);
|
|
8
25
|
return client.api.updateWallet({
|
|
9
|
-
wallet
|
|
10
|
-
update
|
|
11
|
-
|
|
12
|
-
status: inputCopy.status,
|
|
13
|
-
name: inputCopy.name
|
|
14
|
-
},
|
|
15
|
-
options: inputCopy.options
|
|
26
|
+
wallet,
|
|
27
|
+
update,
|
|
28
|
+
options: inputOptions
|
|
16
29
|
});
|
|
17
30
|
}
|
|
18
31
|
export {
|
|
@@ -36,7 +36,9 @@ var updateWalletInputSchema = import_zod.z.object({
|
|
|
36
36
|
wallet: import_consts.allowedStringIntSchema.describe("Wallet foreign"),
|
|
37
37
|
metadata: import_wallet_schema_zod.walletTableSchema.shape.metadata,
|
|
38
38
|
name: import_wallet_schema_zod.walletTableSchema.shape.name,
|
|
39
|
-
status: import_wallet_schema_zod.walletTableSchema.shape.status
|
|
39
|
+
status: import_wallet_schema_zod.walletTableSchema.shape.status,
|
|
40
|
+
default_allow_positive: import_wallet_schema_zod.walletTableSchema.shape.default_allow_positive,
|
|
41
|
+
default_allow_negative: import_wallet_schema_zod.walletTableSchema.shape.default_allow_negative
|
|
40
42
|
}).partial().required({
|
|
41
43
|
wallet: true
|
|
42
44
|
});
|
|
@@ -11,7 +11,9 @@ var updateWalletInputSchema = z.object({
|
|
|
11
11
|
wallet: allowedStringIntSchema.describe("Wallet foreign"),
|
|
12
12
|
metadata: walletTableSchema.shape.metadata,
|
|
13
13
|
name: walletTableSchema.shape.name,
|
|
14
|
-
status: walletTableSchema.shape.status
|
|
14
|
+
status: walletTableSchema.shape.status,
|
|
15
|
+
default_allow_positive: walletTableSchema.shape.default_allow_positive,
|
|
16
|
+
default_allow_negative: walletTableSchema.shape.default_allow_negative
|
|
15
17
|
}).partial().required({
|
|
16
18
|
wallet: true
|
|
17
19
|
});
|
|
@@ -36,7 +36,9 @@ var updateWalletInputSchema = import_zod.z.object({
|
|
|
36
36
|
wallet: import_consts.allowedStringIntSchema.describe("Wallet foreign"),
|
|
37
37
|
metadata: import_wallet_schema_zod.walletTableSchema.shape.metadata,
|
|
38
38
|
name: import_wallet_schema_zod.walletTableSchema.shape.name,
|
|
39
|
-
status: import_wallet_schema_zod.walletTableSchema.shape.status
|
|
39
|
+
status: import_wallet_schema_zod.walletTableSchema.shape.status,
|
|
40
|
+
default_allow_positive: import_wallet_schema_zod.walletTableSchema.shape.default_allow_positive,
|
|
41
|
+
default_allow_negative: import_wallet_schema_zod.walletTableSchema.shape.default_allow_negative
|
|
40
42
|
}).partial().required({
|
|
41
43
|
wallet: true
|
|
42
44
|
});
|
|
@@ -11,7 +11,9 @@ var updateWalletInputSchema = z.object({
|
|
|
11
11
|
wallet: allowedStringIntSchema.describe("Wallet foreign"),
|
|
12
12
|
metadata: walletTableSchema.shape.metadata,
|
|
13
13
|
name: walletTableSchema.shape.name,
|
|
14
|
-
status: walletTableSchema.shape.status
|
|
14
|
+
status: walletTableSchema.shape.status,
|
|
15
|
+
default_allow_positive: walletTableSchema.shape.default_allow_positive,
|
|
16
|
+
default_allow_negative: walletTableSchema.shape.default_allow_negative
|
|
15
17
|
}).partial().required({
|
|
16
18
|
wallet: true
|
|
17
19
|
});
|
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.16.0-beta.
|
|
27
|
+
var CLIENT_VERSION = "0.16.0-beta.3";
|
|
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.16.0-beta.
|
|
27
|
+
var CLIENT_VERSION = "0.16.0-beta.3";
|
|
28
28
|
function getEnvConfig(key, defaultValue) {
|
|
29
29
|
const val = getVariable(key);
|
|
30
30
|
if (val === void 0) {
|
package/dist/lib/env.js
CHANGED
|
@@ -12159,7 +12159,9 @@ var walletInputSchema = external_exports.object({
|
|
|
12159
12159
|
name: import_wallet_schema_zod.walletTableSchema.shape.name,
|
|
12160
12160
|
metadata: import_wallet_schema_zod.walletTableSchema.shape.metadata,
|
|
12161
12161
|
type: import_wallet_schema_zod.walletTableTypeSchema,
|
|
12162
|
-
status: import_wallet_schema_zod.walletTableStatusSchema
|
|
12162
|
+
status: import_wallet_schema_zod.walletTableStatusSchema,
|
|
12163
|
+
default_allow_positive: import_wallet_schema_zod.walletTableSchema.shape.default_allow_positive,
|
|
12164
|
+
default_allow_negative: import_wallet_schema_zod.walletTableSchema.shape.default_allow_negative
|
|
12163
12165
|
}).partial().required({
|
|
12164
12166
|
foreign: true
|
|
12165
12167
|
});
|
|
@@ -12141,7 +12141,9 @@ var walletInputSchema = external_exports.object({
|
|
|
12141
12141
|
name: walletTableSchema.shape.name,
|
|
12142
12142
|
metadata: walletTableSchema.shape.metadata,
|
|
12143
12143
|
type: walletTableTypeSchema,
|
|
12144
|
-
status: walletTableStatusSchema
|
|
12144
|
+
status: walletTableStatusSchema,
|
|
12145
|
+
default_allow_positive: walletTableSchema.shape.default_allow_positive,
|
|
12146
|
+
default_allow_negative: walletTableSchema.shape.default_allow_negative
|
|
12145
12147
|
}).partial().required({
|
|
12146
12148
|
foreign: true
|
|
12147
12149
|
});
|
|
@@ -34,7 +34,9 @@ var walletInputSchema = import_zod.z.object({
|
|
|
34
34
|
name: import_wallet_schema_zod.walletTableSchema.shape.name,
|
|
35
35
|
metadata: import_wallet_schema_zod.walletTableSchema.shape.metadata,
|
|
36
36
|
type: import_wallet_schema_zod.walletTableTypeSchema,
|
|
37
|
-
status: import_wallet_schema_zod.walletTableStatusSchema
|
|
37
|
+
status: import_wallet_schema_zod.walletTableStatusSchema,
|
|
38
|
+
default_allow_positive: import_wallet_schema_zod.walletTableSchema.shape.default_allow_positive,
|
|
39
|
+
default_allow_negative: import_wallet_schema_zod.walletTableSchema.shape.default_allow_negative
|
|
38
40
|
}).partial().required({
|
|
39
41
|
foreign: true
|
|
40
42
|
});
|
|
@@ -11,7 +11,9 @@ var walletInputSchema = z.object({
|
|
|
11
11
|
name: walletTableSchema.shape.name,
|
|
12
12
|
metadata: walletTableSchema.shape.metadata,
|
|
13
13
|
type: walletTableTypeSchema,
|
|
14
|
-
status: walletTableStatusSchema
|
|
14
|
+
status: walletTableStatusSchema,
|
|
15
|
+
default_allow_positive: walletTableSchema.shape.default_allow_positive,
|
|
16
|
+
default_allow_negative: walletTableSchema.shape.default_allow_negative
|
|
15
17
|
}).partial().required({
|
|
16
18
|
foreign: true
|
|
17
19
|
});
|
|
@@ -12175,7 +12175,8 @@ var transferOutputSchema = import_transfer_schema_zod.transferTableSchema.extend
|
|
|
12175
12175
|
to_wallet_foreign: import_wallet_schema_zod.walletTableSchema.shape.foreign,
|
|
12176
12176
|
token_foreign: import_token_schema_zod.tokenTableSchema.shape.foreign,
|
|
12177
12177
|
transfer_group_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer_group this transfer belongs to"),
|
|
12178
|
-
reverses_identifier: import_transfer_schema_zod.transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses")
|
|
12178
|
+
reverses_identifier: import_transfer_schema_zod.transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses"),
|
|
12179
|
+
reversed_by_identifier: import_transfer_schema_zod.transferTableSchema.shape.identifier.nullable().optional().describe("Identifier of the transfer that reverses this transfer")
|
|
12179
12180
|
});
|
|
12180
12181
|
var transferWithBalanceOutputSchema = transferOutputSchema.extend({
|
|
12181
12182
|
balance_id: import_transfer_log_schema_zod.transferLogTableSchema.shape.id.nullable().describe("Iterator marking the position of the balance in the continuum"),
|
|
@@ -12151,7 +12151,8 @@ var transferOutputSchema = transferTableSchema.extend({
|
|
|
12151
12151
|
to_wallet_foreign: walletTableSchema.shape.foreign,
|
|
12152
12152
|
token_foreign: tokenTableSchema.shape.foreign,
|
|
12153
12153
|
transfer_group_identifier: transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer_group this transfer belongs to"),
|
|
12154
|
-
reverses_identifier: transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses")
|
|
12154
|
+
reverses_identifier: transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses"),
|
|
12155
|
+
reversed_by_identifier: transferTableSchema.shape.identifier.nullable().optional().describe("Identifier of the transfer that reverses this transfer")
|
|
12155
12156
|
});
|
|
12156
12157
|
var transferWithBalanceOutputSchema = transferOutputSchema.extend({
|
|
12157
12158
|
balance_id: transferLogTableSchema.shape.id.nullable().describe("Iterator marking the position of the balance in the continuum"),
|
|
@@ -50,7 +50,8 @@ var transferOutputSchema = import_transfer_schema_zod.transferTableSchema.extend
|
|
|
50
50
|
to_wallet_foreign: import_wallet_schema_zod.walletTableSchema.shape.foreign,
|
|
51
51
|
token_foreign: import_token_schema_zod.tokenTableSchema.shape.foreign,
|
|
52
52
|
transfer_group_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer_group this transfer belongs to"),
|
|
53
|
-
reverses_identifier: import_transfer_schema_zod.transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses")
|
|
53
|
+
reverses_identifier: import_transfer_schema_zod.transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses"),
|
|
54
|
+
reversed_by_identifier: import_transfer_schema_zod.transferTableSchema.shape.identifier.nullable().optional().describe("Identifier of the transfer that reverses this transfer")
|
|
54
55
|
});
|
|
55
56
|
var transferWithBalanceOutputSchema = transferOutputSchema.extend({
|
|
56
57
|
balance_id: import_transfer_log_schema_zod.transferLogTableSchema.shape.id.nullable().describe("Iterator marking the position of the balance in the continuum"),
|
|
@@ -21,7 +21,8 @@ var transferOutputSchema = transferTableSchema.extend({
|
|
|
21
21
|
to_wallet_foreign: walletTableSchema.shape.foreign,
|
|
22
22
|
token_foreign: tokenTableSchema.shape.foreign,
|
|
23
23
|
transfer_group_identifier: transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer_group this transfer belongs to"),
|
|
24
|
-
reverses_identifier: transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses")
|
|
24
|
+
reverses_identifier: transferTableSchema.shape.identifier.nullable().describe("Identifier of the transfer this transfer reverses"),
|
|
25
|
+
reversed_by_identifier: transferTableSchema.shape.identifier.nullable().optional().describe("Identifier of the transfer that reverses this transfer")
|
|
25
26
|
});
|
|
26
27
|
var transferWithBalanceOutputSchema = transferOutputSchema.extend({
|
|
27
28
|
balance_id: transferLogTableSchema.shape.id.nullable().describe("Iterator marking the position of the balance in the continuum"),
|