wapi-client 0.15.5 → 0.15.9
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-group/get-transfer-group.schema.zod.browser.cjs +8 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.js +8 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.cjs +8 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.js +8 -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 +631 -0
- 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.15.
|
|
27
|
+
var CLIENT_VERSION = "0.15.9";
|
|
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.15.
|
|
27
|
+
var CLIENT_VERSION = "0.15.9";
|
|
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
|
});
|
|
@@ -12154,6 +12154,7 @@ config(en_default());
|
|
|
12154
12154
|
|
|
12155
12155
|
// src/txs/get-transfer-group/get-transfer-group.schema.zod.ts
|
|
12156
12156
|
var import_consts = require("../consts.browser.cjs");
|
|
12157
|
+
var import_get_transfer_schema_zod = require("../get-transfer/get-transfer.schema.zod.browser.cjs");
|
|
12157
12158
|
var import_transfer_group_schema_zod = require("../../db/transfer-group/transfer-group.schema.zod.browser.cjs");
|
|
12158
12159
|
var uniqueTransferGroupFilter = import_consts.identifierFilter.describe(
|
|
12159
12160
|
"Unique transferGroup filter"
|
|
@@ -12164,6 +12165,10 @@ var getTransferGroupTxInputOptionsSchema = import_consts.iTxGeneralOptions.exten
|
|
|
12164
12165
|
),
|
|
12165
12166
|
return_only_id: external_exports.boolean().default(false).describe(
|
|
12166
12167
|
"If true then the returning object is only guaranteed to have id"
|
|
12168
|
+
),
|
|
12169
|
+
return_transfers: external_exports.boolean().default(false).describe("If true the returning object will include transfers"),
|
|
12170
|
+
return_reversed_by: external_exports.boolean().default(false).describe(
|
|
12171
|
+
"If true the returning object will include reversed_by_identifier -> identifier of the transfer_group that reverses this one"
|
|
12167
12172
|
)
|
|
12168
12173
|
}).partial();
|
|
12169
12174
|
var getTransferGroupTxInputSchema = external_exports.object({
|
|
@@ -12173,7 +12178,9 @@ var getTransferGroupTxInputSchema = external_exports.object({
|
|
|
12173
12178
|
transfer_group: true
|
|
12174
12179
|
}).describe("Input for getTransferGroup");
|
|
12175
12180
|
var transferGroupOutputSchema = import_transfer_group_schema_zod.transferGroupTableSchema.extend({
|
|
12176
|
-
reverses_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`)
|
|
12181
|
+
reverses_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`),
|
|
12182
|
+
transfers: import_get_transfer_schema_zod.transferOutputSchema.array().nullable(),
|
|
12183
|
+
reversed_by_identifier: import_transfer_group_schema_zod.transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer group that reverses this one")
|
|
12177
12184
|
}).partial().required({
|
|
12178
12185
|
id: true
|
|
12179
12186
|
}).describe("requested transfer_group");
|
|
@@ -12131,6 +12131,7 @@ config(en_default());
|
|
|
12131
12131
|
|
|
12132
12132
|
// src/txs/get-transfer-group/get-transfer-group.schema.zod.ts
|
|
12133
12133
|
import { identifierFilter, iTxGeneralOptions } from "../consts.browser.js";
|
|
12134
|
+
import { transferOutputSchema } from "../get-transfer/get-transfer.schema.zod.browser.js";
|
|
12134
12135
|
import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
|
|
12135
12136
|
var uniqueTransferGroupFilter = identifierFilter.describe(
|
|
12136
12137
|
"Unique transferGroup filter"
|
|
@@ -12141,6 +12142,10 @@ var getTransferGroupTxInputOptionsSchema = iTxGeneralOptions.extend({
|
|
|
12141
12142
|
),
|
|
12142
12143
|
return_only_id: external_exports.boolean().default(false).describe(
|
|
12143
12144
|
"If true then the returning object is only guaranteed to have id"
|
|
12145
|
+
),
|
|
12146
|
+
return_transfers: external_exports.boolean().default(false).describe("If true the returning object will include transfers"),
|
|
12147
|
+
return_reversed_by: external_exports.boolean().default(false).describe(
|
|
12148
|
+
"If true the returning object will include reversed_by_identifier -> identifier of the transfer_group that reverses this one"
|
|
12144
12149
|
)
|
|
12145
12150
|
}).partial();
|
|
12146
12151
|
var getTransferGroupTxInputSchema = external_exports.object({
|
|
@@ -12150,7 +12155,9 @@ var getTransferGroupTxInputSchema = external_exports.object({
|
|
|
12150
12155
|
transfer_group: true
|
|
12151
12156
|
}).describe("Input for getTransferGroup");
|
|
12152
12157
|
var transferGroupOutputSchema = transferGroupTableSchema.extend({
|
|
12153
|
-
reverses_identifier: transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`)
|
|
12158
|
+
reverses_identifier: transferGroupTableSchema.shape.identifier.nullable().describe(`Identifier of the transfer group this reverses`),
|
|
12159
|
+
transfers: transferOutputSchema.array().nullable(),
|
|
12160
|
+
reversed_by_identifier: transferGroupTableSchema.shape.identifier.nullable().describe("Identifier of the transfer group that reverses this one")
|
|
12154
12161
|
}).partial().required({
|
|
12155
12162
|
id: true
|
|
12156
12163
|
}).describe("requested transfer_group");
|