wapi-client 0.12.0-beta.1 → 0.12.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/dist/fns/consts.browser.cjs +5 -0
- package/dist/fns/consts.browser.js +5 -0
- package/dist/fns/consts.cjs +6 -0
- package/dist/fns/consts.d.ts +1 -0
- package/dist/fns/consts.js +5 -0
- package/dist/fns/create-deposit/create-deposit.browser.cjs +1 -0
- package/dist/fns/create-deposit/create-deposit.browser.js +2 -0
- package/dist/fns/create-deposit/create-deposit.cjs +1 -0
- package/dist/fns/create-deposit/create-deposit.js +2 -0
- package/dist/fns/create-deposit/create-deposit.schema.zod.browser.cjs +1 -1
- package/dist/fns/create-deposit/create-deposit.schema.zod.browser.js +5 -2
- package/dist/fns/create-deposit/create-deposit.schema.zod.cjs +1 -1
- package/dist/fns/create-deposit/create-deposit.schema.zod.d.ts +6 -6
- package/dist/fns/create-deposit/create-deposit.schema.zod.js +5 -2
- package/dist/fns/create-transfer/create-transfer.browser.cjs +1 -1
- package/dist/fns/create-transfer/create-transfer.browser.js +2 -1
- package/dist/fns/create-transfer/create-transfer.cjs +1 -1
- package/dist/fns/create-transfer/create-transfer.js +2 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.browser.cjs +1 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.browser.js +5 -2
- package/dist/fns/create-transfer/create-transfer.schema.zod.cjs +1 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.d.ts +30 -30
- package/dist/fns/create-transfer/create-transfer.schema.zod.js +5 -2
- package/dist/fns/create-transfer-group/create-transfer-group.schema.zod.d.ts +48 -48
- package/dist/fns/create-transfers/create-transfers.schema.zod.d.ts +15 -15
- package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +1 -0
- package/dist/fns/create-withdrawal/create-withdrawal.browser.js +2 -0
- package/dist/fns/create-withdrawal/create-withdrawal.cjs +1 -0
- package/dist/fns/create-withdrawal/create-withdrawal.js +2 -0
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.browser.cjs +1 -1
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.browser.js +5 -2
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.cjs +1 -1
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.d.ts +6 -6
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.js +5 -2
- package/dist/fns/import-data/import-data.schema.zod.d.ts +186 -186
- package/dist/fns/index.d.ts +93 -93
- package/dist/lib/utils.browser.cjs +7 -0
- package/dist/lib/utils.browser.js +7 -0
- package/dist/lib/utils.cjs +8 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +7 -0
- package/dist/types/index.d.ts +386 -384
- package/dist/wapi-client-web.iife.js +1 -1
- package/dist/wapi-client.iife.js +1 -1
- package/package.json +1 -1
package/dist/api/ws-client.cjs
CHANGED
|
@@ -76,7 +76,7 @@ var import_base_client = require('./base-client.cjs');
|
|
|
76
76
|
var import_connection = require('./connection/connection.enums.cjs');
|
|
77
77
|
var import__ = require('../index.cjs');
|
|
78
78
|
var _a;
|
|
79
|
-
var CLIENT_VERSION = (_a = '0.12.0-beta.
|
|
79
|
+
var CLIENT_VERSION = (_a = '0.12.0-beta.2') != null ? _a : "";
|
|
80
80
|
function createWsClient(opts, config) {
|
|
81
81
|
const initialConnection = createConnection(opts, {
|
|
82
82
|
timeout: config == null ? void 0 : config.connectingTimeout
|
package/dist/api/ws-client.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./connection/connection.enums";
|
|
49
49
|
import { WapiClientType } from "../index";
|
|
50
50
|
var _a;
|
|
51
|
-
var CLIENT_VERSION = (_a = '0.12.0-beta.
|
|
51
|
+
var CLIENT_VERSION = (_a = '0.12.0-beta.2') != null ? _a : "";
|
|
52
52
|
function createWsClient(opts, config) {
|
|
53
53
|
const initialConnection = createConnection(opts, {
|
|
54
54
|
timeout: config == null ? void 0 : config.connectingTimeout
|
package/dist/client.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var import_api = require('./api/index.cjs');
|
|
|
63
63
|
var import_errors = require('./lib/errors.cjs');
|
|
64
64
|
var import_fns = require('./fns/index.cjs');
|
|
65
65
|
var _a;
|
|
66
|
-
var CLIENT_VERSION = (_a = '0.12.0-beta.
|
|
66
|
+
var CLIENT_VERSION = (_a = '0.12.0-beta.2') != null ? _a : "";
|
|
67
67
|
var Client = class {
|
|
68
68
|
/**
|
|
69
69
|
* @internal
|
package/dist/client.js
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import { ConfigError } from "./lib/errors";
|
|
45
45
|
import { ClientFunctions } from "./fns";
|
|
46
46
|
var _a;
|
|
47
|
-
var CLIENT_VERSION = (_a = '0.12.0-beta.
|
|
47
|
+
var CLIENT_VERSION = (_a = '0.12.0-beta.2') != null ? _a : "";
|
|
48
48
|
var Client = class {
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
@@ -58,6 +58,7 @@ var consts_exports = {};
|
|
|
58
58
|
__export(consts_exports, {
|
|
59
59
|
allowedStringIntSchema: () => allowedStringIntSchema,
|
|
60
60
|
allowedStringNumberSchema: () => allowedStringNumberSchema,
|
|
61
|
+
allowedStringPositiveNumericSchema: () => allowedStringPositiveNumericSchema,
|
|
61
62
|
iFnFindOptionsExtraSchema: () => iFnFindOptionsExtraSchema,
|
|
62
63
|
iFnFindOptionsSchema: () => iFnFindOptionsSchema
|
|
63
64
|
});
|
|
@@ -4026,5 +4027,9 @@ var iFnFindOptionsExtraSchema = z.object({
|
|
|
4026
4027
|
order_by: z.string().describe("Ordering options in string format")
|
|
4027
4028
|
}).describe("extra find options for client functions");
|
|
4028
4029
|
var iFnFindOptionsSchema = import_consts2.iTxLimitingOptions.merge(import_consts.iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
|
|
4030
|
+
var allowedStringPositiveNumericSchema = z.union([
|
|
4031
|
+
z.number().positive(),
|
|
4032
|
+
z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
|
|
4033
|
+
]);
|
|
4029
4034
|
var allowedStringIntSchema = z.union([z.string(), z.number().int()]);
|
|
4030
4035
|
var allowedStringNumberSchema = z.union([z.string(), z.number()]);
|
|
@@ -4003,11 +4003,16 @@ var iFnFindOptionsExtraSchema = z.object({
|
|
|
4003
4003
|
order_by: z.string().describe("Ordering options in string format")
|
|
4004
4004
|
}).describe("extra find options for client functions");
|
|
4005
4005
|
var iFnFindOptionsSchema = iTxLimitingOptions.merge(iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
|
|
4006
|
+
var allowedStringPositiveNumericSchema = z.union([
|
|
4007
|
+
z.number().positive(),
|
|
4008
|
+
z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
|
|
4009
|
+
]);
|
|
4006
4010
|
var allowedStringIntSchema = z.union([z.string(), z.number().int()]);
|
|
4007
4011
|
var allowedStringNumberSchema = z.union([z.string(), z.number()]);
|
|
4008
4012
|
export {
|
|
4009
4013
|
allowedStringIntSchema,
|
|
4010
4014
|
allowedStringNumberSchema,
|
|
4015
|
+
allowedStringPositiveNumericSchema,
|
|
4011
4016
|
iFnFindOptionsExtraSchema,
|
|
4012
4017
|
iFnFindOptionsSchema
|
|
4013
4018
|
};
|
package/dist/fns/consts.cjs
CHANGED
|
@@ -31,6 +31,7 @@ var consts_exports = {};
|
|
|
31
31
|
__export(consts_exports, {
|
|
32
32
|
allowedStringIntSchema: () => allowedStringIntSchema,
|
|
33
33
|
allowedStringNumberSchema: () => allowedStringNumberSchema,
|
|
34
|
+
allowedStringPositiveNumericSchema: () => allowedStringPositiveNumericSchema,
|
|
34
35
|
iFnFindOptionsExtraSchema: () => iFnFindOptionsExtraSchema,
|
|
35
36
|
iFnFindOptionsSchema: () => iFnFindOptionsSchema
|
|
36
37
|
});
|
|
@@ -42,12 +43,17 @@ var iFnFindOptionsExtraSchema = import_zod.default.object({
|
|
|
42
43
|
order_by: import_zod.default.string().describe("Ordering options in string format")
|
|
43
44
|
}).describe("extra find options for client functions");
|
|
44
45
|
var iFnFindOptionsSchema = import_consts2.iTxLimitingOptions.merge(import_consts.iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
|
|
46
|
+
var allowedStringPositiveNumericSchema = import_zod.default.union([
|
|
47
|
+
import_zod.default.number().positive(),
|
|
48
|
+
import_zod.default.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
|
|
49
|
+
]);
|
|
45
50
|
var allowedStringIntSchema = import_zod.default.union([import_zod.default.string(), import_zod.default.number().int()]);
|
|
46
51
|
var allowedStringNumberSchema = import_zod.default.union([import_zod.default.string(), import_zod.default.number()]);
|
|
47
52
|
// Annotate the CommonJS export names for ESM import in node:
|
|
48
53
|
0 && (module.exports = {
|
|
49
54
|
allowedStringIntSchema,
|
|
50
55
|
allowedStringNumberSchema,
|
|
56
|
+
allowedStringPositiveNumericSchema,
|
|
51
57
|
iFnFindOptionsExtraSchema,
|
|
52
58
|
iFnFindOptionsSchema
|
|
53
59
|
});
|
package/dist/fns/consts.d.ts
CHANGED
|
@@ -44,5 +44,6 @@ export declare const iFnFindOptionsSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
44
44
|
offset?: number | undefined;
|
|
45
45
|
limit?: number | undefined;
|
|
46
46
|
}>;
|
|
47
|
+
export declare const allowedStringPositiveNumericSchema: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
47
48
|
export declare const allowedStringIntSchema: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
48
49
|
export declare const allowedStringNumberSchema: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
package/dist/fns/consts.js
CHANGED
|
@@ -6,11 +6,16 @@ var iFnFindOptionsExtraSchema = z.object({
|
|
|
6
6
|
order_by: z.string().describe("Ordering options in string format")
|
|
7
7
|
}).describe("extra find options for client functions");
|
|
8
8
|
var iFnFindOptionsSchema = iTxLimitingOptions.merge(iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
|
|
9
|
+
var allowedStringPositiveNumericSchema = z.union([
|
|
10
|
+
z.number().positive(),
|
|
11
|
+
z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
|
|
12
|
+
]);
|
|
9
13
|
var allowedStringIntSchema = z.union([z.string(), z.number().int()]);
|
|
10
14
|
var allowedStringNumberSchema = z.union([z.string(), z.number()]);
|
|
11
15
|
export {
|
|
12
16
|
allowedStringIntSchema,
|
|
13
17
|
allowedStringNumberSchema,
|
|
18
|
+
allowedStringPositiveNumericSchema,
|
|
14
19
|
iFnFindOptionsExtraSchema,
|
|
15
20
|
iFnFindOptionsSchema
|
|
16
21
|
};
|
|
@@ -82,6 +82,7 @@ function createDeposit(options, input, fnOptions) {
|
|
|
82
82
|
"options"
|
|
83
83
|
]);
|
|
84
84
|
const deposit = __spreadValues(__spreadProps(__spreadValues({}, partialDeposit), {
|
|
85
|
+
amount: (0, import_utils.convertToNumber)(partialDeposit.amount),
|
|
85
86
|
transfer_group: (0, import_utils.getIdentifierFilter)(inputCopy.transfer_group),
|
|
86
87
|
token: (0, import_utils.getForeign)(token),
|
|
87
88
|
to_wallet: (0, import_utils.getForeign)(wallet),
|
|
@@ -33,6 +33,7 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
// src/fns/create-deposit/create-deposit.ts
|
|
34
34
|
import {
|
|
35
35
|
checkCopyObject,
|
|
36
|
+
convertToNumber,
|
|
36
37
|
getForeign,
|
|
37
38
|
getIdentifierFilter,
|
|
38
39
|
getTxIdSync,
|
|
@@ -67,6 +68,7 @@ function createDeposit(options, input, fnOptions) {
|
|
|
67
68
|
"options"
|
|
68
69
|
]);
|
|
69
70
|
const deposit = __spreadValues(__spreadProps(__spreadValues({}, partialDeposit), {
|
|
71
|
+
amount: convertToNumber(partialDeposit.amount),
|
|
70
72
|
transfer_group: getIdentifierFilter(inputCopy.transfer_group),
|
|
71
73
|
token: getForeign(token),
|
|
72
74
|
to_wallet: getForeign(wallet),
|
|
@@ -82,6 +82,7 @@ function createDeposit(options, input, fnOptions) {
|
|
|
82
82
|
"options"
|
|
83
83
|
]);
|
|
84
84
|
const deposit = __spreadValues(__spreadProps(__spreadValues({}, partialDeposit), {
|
|
85
|
+
amount: (0, import_utils.convertToNumber)(partialDeposit.amount),
|
|
85
86
|
transfer_group: (0, import_utils.getIdentifierFilter)(inputCopy.transfer_group),
|
|
86
87
|
token: (0, import_utils.getForeign)(token),
|
|
87
88
|
to_wallet: (0, import_utils.getForeign)(wallet),
|
|
@@ -33,6 +33,7 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
// src/fns/create-deposit/create-deposit.ts
|
|
34
34
|
import {
|
|
35
35
|
checkCopyObject,
|
|
36
|
+
convertToNumber,
|
|
36
37
|
getForeign,
|
|
37
38
|
getIdentifierFilter,
|
|
38
39
|
getTxIdSync,
|
|
@@ -67,6 +68,7 @@ function createDeposit(options, input, fnOptions) {
|
|
|
67
68
|
"options"
|
|
68
69
|
]);
|
|
69
70
|
const deposit = __spreadValues(__spreadProps(__spreadValues({}, partialDeposit), {
|
|
71
|
+
amount: convertToNumber(partialDeposit.amount),
|
|
70
72
|
transfer_group: getIdentifierFilter(inputCopy.transfer_group),
|
|
71
73
|
token: getForeign(token),
|
|
72
74
|
to_wallet: getForeign(wallet),
|
|
@@ -4035,7 +4035,7 @@ var createDepositInputSchema = z.object({
|
|
|
4035
4035
|
identifier: import_transfer_schema.transferTableSchema.shape.identifier,
|
|
4036
4036
|
token: import_consts2.allowedStringIntSchema.describe("Id of the token to deposit as"),
|
|
4037
4037
|
wallet: import_consts2.allowedStringIntSchema.describe("Id of the wallet to deposit to"),
|
|
4038
|
-
amount:
|
|
4038
|
+
amount: import_consts2.allowedStringPositiveNumericSchema.describe("amount to deposit"),
|
|
4039
4039
|
metadata: import_transfer_schema.transferTableSchema.shape.metadata,
|
|
4040
4040
|
status: import_transfer_schema.transferTableStatusInputSchema,
|
|
4041
4041
|
transfer_group: import_consts2.allowedStringIntSchema.describe(
|
|
@@ -4001,7 +4001,10 @@ import {
|
|
|
4001
4001
|
} from "../../db/transfer/transfer.schema.zod.browser.js";
|
|
4002
4002
|
import { iTxGeneralOptions } from "../../txs/consts.browser.js";
|
|
4003
4003
|
import { createDepositTxOutputSchema } from "../../txs/create-deposit/create-deposit.schema.zod.browser.js";
|
|
4004
|
-
import {
|
|
4004
|
+
import {
|
|
4005
|
+
allowedStringIntSchema,
|
|
4006
|
+
allowedStringPositiveNumericSchema
|
|
4007
|
+
} from "../consts.browser.js";
|
|
4005
4008
|
var createDepositFnOptionsSchema = iTxGeneralOptions.extend({
|
|
4006
4009
|
return_balance: z.boolean().describe("return balance after deposit"),
|
|
4007
4010
|
create_wallet_if_not_exists: z.boolean().describe(
|
|
@@ -4012,7 +4015,7 @@ var createDepositInputSchema = z.object({
|
|
|
4012
4015
|
identifier: transferTableSchema.shape.identifier,
|
|
4013
4016
|
token: allowedStringIntSchema.describe("Id of the token to deposit as"),
|
|
4014
4017
|
wallet: allowedStringIntSchema.describe("Id of the wallet to deposit to"),
|
|
4015
|
-
amount:
|
|
4018
|
+
amount: allowedStringPositiveNumericSchema.describe("amount to deposit"),
|
|
4016
4019
|
metadata: transferTableSchema.shape.metadata,
|
|
4017
4020
|
status: transferTableStatusInputSchema,
|
|
4018
4021
|
transfer_group: allowedStringIntSchema.describe(
|
|
@@ -41,7 +41,7 @@ var createDepositInputSchema = import_zod.z.object({
|
|
|
41
41
|
identifier: import_transfer_schema.transferTableSchema.shape.identifier,
|
|
42
42
|
token: import_consts2.allowedStringIntSchema.describe("Id of the token to deposit as"),
|
|
43
43
|
wallet: import_consts2.allowedStringIntSchema.describe("Id of the wallet to deposit to"),
|
|
44
|
-
amount:
|
|
44
|
+
amount: import_consts2.allowedStringPositiveNumericSchema.describe("amount to deposit"),
|
|
45
45
|
metadata: import_transfer_schema.transferTableSchema.shape.metadata,
|
|
46
46
|
status: import_transfer_schema.transferTableStatusInputSchema,
|
|
47
47
|
transfer_group: import_consts2.allowedStringIntSchema.describe(
|
|
@@ -21,11 +21,11 @@ export declare const createDepositInputSchema: z.ZodObject<{
|
|
|
21
21
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
22
22
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
23
23
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
24
|
-
amount: z.ZodNumber
|
|
24
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
25
25
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
26
26
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
amount: number;
|
|
28
|
+
amount: string | number;
|
|
29
29
|
wallet: string | number;
|
|
30
30
|
status?: "pending" | "finished" | undefined;
|
|
31
31
|
identifier?: string | undefined;
|
|
@@ -34,7 +34,7 @@ export declare const createDepositInputSchema: z.ZodObject<{
|
|
|
34
34
|
created_at?: string | undefined;
|
|
35
35
|
transfer_group?: string | number | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
amount: number;
|
|
37
|
+
amount: string | number;
|
|
38
38
|
wallet: string | number;
|
|
39
39
|
status?: "pending" | "finished" | undefined;
|
|
40
40
|
identifier?: string | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const createDepositFnInputSchema: z.ZodObject<z.objectUtil.extend
|
|
|
49
49
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
50
50
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
51
51
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
52
|
-
amount: z.ZodNumber
|
|
52
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
53
53
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
54
54
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
55
55
|
}, {
|
|
@@ -70,7 +70,7 @@ export declare const createDepositFnInputSchema: z.ZodObject<z.objectUtil.extend
|
|
|
70
70
|
return_balance?: boolean | undefined;
|
|
71
71
|
}>>;
|
|
72
72
|
}>, "strict", z.ZodTypeAny, {
|
|
73
|
-
amount: number;
|
|
73
|
+
amount: string | number;
|
|
74
74
|
wallet: string | number;
|
|
75
75
|
options?: {
|
|
76
76
|
tracking_id?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const createDepositFnInputSchema: z.ZodObject<z.objectUtil.extend
|
|
|
85
85
|
created_at?: string | undefined;
|
|
86
86
|
transfer_group?: string | number | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
amount: number;
|
|
88
|
+
amount: string | number;
|
|
89
89
|
wallet: string | number;
|
|
90
90
|
options?: {
|
|
91
91
|
tracking_id?: string | undefined;
|
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
} from "../../db/transfer/transfer.schema.zod";
|
|
7
7
|
import { iTxGeneralOptions } from "../../txs/consts";
|
|
8
8
|
import { createDepositTxOutputSchema } from "../../txs/create-deposit/create-deposit.schema.zod";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
allowedStringIntSchema,
|
|
11
|
+
allowedStringPositiveNumericSchema
|
|
12
|
+
} from "../consts";
|
|
10
13
|
var createDepositFnOptionsSchema = iTxGeneralOptions.extend({
|
|
11
14
|
return_balance: z.boolean().describe("return balance after deposit"),
|
|
12
15
|
create_wallet_if_not_exists: z.boolean().describe(
|
|
@@ -17,7 +20,7 @@ var createDepositInputSchema = z.object({
|
|
|
17
20
|
identifier: transferTableSchema.shape.identifier,
|
|
18
21
|
token: allowedStringIntSchema.describe("Id of the token to deposit as"),
|
|
19
22
|
wallet: allowedStringIntSchema.describe("Id of the wallet to deposit to"),
|
|
20
|
-
amount:
|
|
23
|
+
amount: allowedStringPositiveNumericSchema.describe("amount to deposit"),
|
|
21
24
|
metadata: transferTableSchema.shape.metadata,
|
|
22
25
|
status: transferTableStatusInputSchema,
|
|
23
26
|
transfer_group: allowedStringIntSchema.describe(
|
|
@@ -75,7 +75,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
75
75
|
const transfer = {
|
|
76
76
|
identifier: input.identifier,
|
|
77
77
|
token: (0, import_utils.getForeign)(input.token || token),
|
|
78
|
-
amount: input.amount,
|
|
78
|
+
amount: (0, import_utils.convertToNumber)(input.amount),
|
|
79
79
|
metadata: input.metadata,
|
|
80
80
|
status: input.status,
|
|
81
81
|
type: input.type,
|
|
@@ -21,6 +21,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21
21
|
// src/fns/create-transfer/create-transfer.ts
|
|
22
22
|
import {
|
|
23
23
|
checkCopyObject,
|
|
24
|
+
convertToNumber,
|
|
24
25
|
getForeign,
|
|
25
26
|
getIdentifierFilter,
|
|
26
27
|
getTxIdSync
|
|
@@ -58,7 +59,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
58
59
|
const transfer = {
|
|
59
60
|
identifier: input.identifier,
|
|
60
61
|
token: getForeign(input.token || token),
|
|
61
|
-
amount: input.amount,
|
|
62
|
+
amount: convertToNumber(input.amount),
|
|
62
63
|
metadata: input.metadata,
|
|
63
64
|
status: input.status,
|
|
64
65
|
type: input.type,
|
|
@@ -75,7 +75,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
75
75
|
const transfer = {
|
|
76
76
|
identifier: input.identifier,
|
|
77
77
|
token: (0, import_utils.getForeign)(input.token || token),
|
|
78
|
-
amount: input.amount,
|
|
78
|
+
amount: (0, import_utils.convertToNumber)(input.amount),
|
|
79
79
|
metadata: input.metadata,
|
|
80
80
|
status: input.status,
|
|
81
81
|
type: input.type,
|
|
@@ -21,6 +21,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21
21
|
// src/fns/create-transfer/create-transfer.ts
|
|
22
22
|
import {
|
|
23
23
|
checkCopyObject,
|
|
24
|
+
convertToNumber,
|
|
24
25
|
getForeign,
|
|
25
26
|
getIdentifierFilter,
|
|
26
27
|
getTxIdSync
|
|
@@ -58,7 +59,7 @@ function transferFnInputToTransferData(input, token) {
|
|
|
58
59
|
const transfer = {
|
|
59
60
|
identifier: input.identifier,
|
|
60
61
|
token: getForeign(input.token || token),
|
|
61
|
-
amount: input.amount,
|
|
62
|
+
amount: convertToNumber(input.amount),
|
|
62
63
|
metadata: input.metadata,
|
|
63
64
|
status: input.status,
|
|
64
65
|
type: input.type,
|
|
@@ -4039,7 +4039,7 @@ var createTransferBaseInputSchema = z.object({
|
|
|
4039
4039
|
"Foreign of the wallet to deposit to"
|
|
4040
4040
|
),
|
|
4041
4041
|
latest_control_hash: import_transfer_schema.transferTableSchema.shape.control_hash,
|
|
4042
|
-
amount:
|
|
4042
|
+
amount: import_consts.allowedStringPositiveNumericSchema.describe("amount to withdraw"),
|
|
4043
4043
|
metadata: import_transfer_schema.transferTableSchema.shape.metadata,
|
|
4044
4044
|
status: import_transfer_schema.transferTableStatusInputSchema.describe("status of the transfer"),
|
|
4045
4045
|
transfer_group: import_consts.allowedStringIntSchema.describe(
|
|
@@ -4003,7 +4003,10 @@ import {
|
|
|
4003
4003
|
createTransferTxInputOptionsSchema,
|
|
4004
4004
|
createTransferTxOutputSchema
|
|
4005
4005
|
} from "../../txs/create-transfer/create-transfer.schema.zod.browser.js";
|
|
4006
|
-
import {
|
|
4006
|
+
import {
|
|
4007
|
+
allowedStringIntSchema,
|
|
4008
|
+
allowedStringPositiveNumericSchema
|
|
4009
|
+
} from "../consts.browser.js";
|
|
4007
4010
|
var createTransferFnOptionsSchema = createTransferTxInputOptionsSchema.describe("Optional flags for input");
|
|
4008
4011
|
var createTransferBaseInputSchema = z.object({
|
|
4009
4012
|
identifier: transferTableSchema.shape.identifier,
|
|
@@ -4015,7 +4018,7 @@ var createTransferBaseInputSchema = z.object({
|
|
|
4015
4018
|
"Foreign of the wallet to deposit to"
|
|
4016
4019
|
),
|
|
4017
4020
|
latest_control_hash: transferTableSchema.shape.control_hash,
|
|
4018
|
-
amount:
|
|
4021
|
+
amount: allowedStringPositiveNumericSchema.describe("amount to withdraw"),
|
|
4019
4022
|
metadata: transferTableSchema.shape.metadata,
|
|
4020
4023
|
status: transferTableStatusInputSchema.describe("status of the transfer"),
|
|
4021
4024
|
transfer_group: allowedStringIntSchema.describe(
|
|
@@ -45,7 +45,7 @@ var createTransferBaseInputSchema = import_zod.z.object({
|
|
|
45
45
|
"Foreign of the wallet to deposit to"
|
|
46
46
|
),
|
|
47
47
|
latest_control_hash: import_transfer_schema.transferTableSchema.shape.control_hash,
|
|
48
|
-
amount:
|
|
48
|
+
amount: import_consts.allowedStringPositiveNumericSchema.describe("amount to withdraw"),
|
|
49
49
|
metadata: import_transfer_schema.transferTableSchema.shape.metadata,
|
|
50
50
|
status: import_transfer_schema.transferTableStatusInputSchema.describe("status of the transfer"),
|
|
51
51
|
transfer_group: import_consts.allowedStringIntSchema.describe(
|
|
@@ -24,7 +24,7 @@ export declare const createTransferBaseInputSchema: z.ZodObject<{
|
|
|
24
24
|
from_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
25
25
|
to_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
26
26
|
latest_control_hash: z.ZodNullable<z.ZodString>;
|
|
27
|
-
amount: z.ZodNumber
|
|
27
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
28
28
|
metadata: z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>;
|
|
29
29
|
status: z.ZodEnum<["pending", "finished"]>;
|
|
30
30
|
transfer_group: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
@@ -36,7 +36,7 @@ export declare const createTransferBaseInputSchema: z.ZodObject<{
|
|
|
36
36
|
identifier: string;
|
|
37
37
|
token: string | number;
|
|
38
38
|
created_at: string;
|
|
39
|
-
amount: number;
|
|
39
|
+
amount: string | number;
|
|
40
40
|
latest_control_hash: string | null;
|
|
41
41
|
transfer_group: string | number;
|
|
42
42
|
from_wallet: string | number;
|
|
@@ -48,7 +48,7 @@ export declare const createTransferBaseInputSchema: z.ZodObject<{
|
|
|
48
48
|
identifier: string;
|
|
49
49
|
token: string | number;
|
|
50
50
|
created_at: string;
|
|
51
|
-
amount: number;
|
|
51
|
+
amount: string | number;
|
|
52
52
|
latest_control_hash: string | null;
|
|
53
53
|
transfer_group: string | number;
|
|
54
54
|
from_wallet: string | number;
|
|
@@ -62,13 +62,13 @@ export declare const createTransferRegularInputSchema: z.ZodObject<{
|
|
|
62
62
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
63
63
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
64
64
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
65
|
-
amount: z.ZodNumber
|
|
65
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
66
66
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
68
68
|
from_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
69
69
|
to_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
amount: number;
|
|
71
|
+
amount: string | number;
|
|
72
72
|
from_wallet: string | number;
|
|
73
73
|
to_wallet: string | number;
|
|
74
74
|
type?: "transfer" | undefined;
|
|
@@ -80,7 +80,7 @@ export declare const createTransferRegularInputSchema: z.ZodObject<{
|
|
|
80
80
|
latest_control_hash?: string | null | undefined;
|
|
81
81
|
transfer_group?: string | number | undefined;
|
|
82
82
|
}, {
|
|
83
|
-
amount: number;
|
|
83
|
+
amount: string | number;
|
|
84
84
|
from_wallet: string | number;
|
|
85
85
|
to_wallet: string | number;
|
|
86
86
|
type?: "transfer" | undefined;
|
|
@@ -99,13 +99,13 @@ export declare const createTransferWithdrawalInputSchema: z.ZodObject<{
|
|
|
99
99
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
100
100
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
101
101
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
102
|
-
amount: z.ZodNumber
|
|
102
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
103
103
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
104
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
105
105
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
107
|
type: "withdrawal";
|
|
108
|
-
amount: number;
|
|
108
|
+
amount: string | number;
|
|
109
109
|
wallet: string | number;
|
|
110
110
|
status?: "pending" | "finished" | undefined;
|
|
111
111
|
identifier?: string | undefined;
|
|
@@ -116,7 +116,7 @@ export declare const createTransferWithdrawalInputSchema: z.ZodObject<{
|
|
|
116
116
|
transfer_group?: string | number | undefined;
|
|
117
117
|
}, {
|
|
118
118
|
type: "withdrawal";
|
|
119
|
-
amount: number;
|
|
119
|
+
amount: string | number;
|
|
120
120
|
wallet: string | number;
|
|
121
121
|
status?: "pending" | "finished" | undefined;
|
|
122
122
|
identifier?: string | undefined;
|
|
@@ -133,13 +133,13 @@ export declare const createTransferDepositInputSchema: z.ZodObject<{
|
|
|
133
133
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
134
134
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
135
135
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
136
|
-
amount: z.ZodNumber
|
|
136
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
137
137
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
138
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
139
139
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
type: "deposit";
|
|
142
|
-
amount: number;
|
|
142
|
+
amount: string | number;
|
|
143
143
|
wallet: string | number;
|
|
144
144
|
status?: "pending" | "finished" | undefined;
|
|
145
145
|
identifier?: string | undefined;
|
|
@@ -150,7 +150,7 @@ export declare const createTransferDepositInputSchema: z.ZodObject<{
|
|
|
150
150
|
transfer_group?: string | number | undefined;
|
|
151
151
|
}, {
|
|
152
152
|
type: "deposit";
|
|
153
|
-
amount: number;
|
|
153
|
+
amount: string | number;
|
|
154
154
|
wallet: string | number;
|
|
155
155
|
status?: "pending" | "finished" | undefined;
|
|
156
156
|
identifier?: string | undefined;
|
|
@@ -167,13 +167,13 @@ export declare const createTransferWildInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
167
167
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
168
168
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
169
169
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
170
|
-
amount: z.ZodNumber
|
|
170
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
171
171
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
172
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
173
173
|
from_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
174
174
|
to_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
amount: number;
|
|
176
|
+
amount: string | number;
|
|
177
177
|
from_wallet: string | number;
|
|
178
178
|
to_wallet: string | number;
|
|
179
179
|
type?: "transfer" | undefined;
|
|
@@ -185,7 +185,7 @@ export declare const createTransferWildInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
185
185
|
latest_control_hash?: string | null | undefined;
|
|
186
186
|
transfer_group?: string | number | undefined;
|
|
187
187
|
}, {
|
|
188
|
-
amount: number;
|
|
188
|
+
amount: string | number;
|
|
189
189
|
from_wallet: string | number;
|
|
190
190
|
to_wallet: string | number;
|
|
191
191
|
type?: "transfer" | undefined;
|
|
@@ -203,13 +203,13 @@ export declare const createTransferWildInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
203
203
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
204
204
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
205
205
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
206
|
-
amount: z.ZodNumber
|
|
206
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
207
207
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
208
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
209
209
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
211
|
type: "deposit";
|
|
212
|
-
amount: number;
|
|
212
|
+
amount: string | number;
|
|
213
213
|
wallet: string | number;
|
|
214
214
|
status?: "pending" | "finished" | undefined;
|
|
215
215
|
identifier?: string | undefined;
|
|
@@ -220,7 +220,7 @@ export declare const createTransferWildInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
220
220
|
transfer_group?: string | number | undefined;
|
|
221
221
|
}, {
|
|
222
222
|
type: "deposit";
|
|
223
|
-
amount: number;
|
|
223
|
+
amount: string | number;
|
|
224
224
|
wallet: string | number;
|
|
225
225
|
status?: "pending" | "finished" | undefined;
|
|
226
226
|
identifier?: string | undefined;
|
|
@@ -236,13 +236,13 @@ export declare const createTransferWildInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
236
236
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
237
237
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
238
238
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
239
|
-
amount: z.ZodNumber
|
|
239
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
240
240
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
241
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
242
242
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
244
|
type: "withdrawal";
|
|
245
|
-
amount: number;
|
|
245
|
+
amount: string | number;
|
|
246
246
|
wallet: string | number;
|
|
247
247
|
status?: "pending" | "finished" | undefined;
|
|
248
248
|
identifier?: string | undefined;
|
|
@@ -253,7 +253,7 @@ export declare const createTransferWildInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
253
253
|
transfer_group?: string | number | undefined;
|
|
254
254
|
}, {
|
|
255
255
|
type: "withdrawal";
|
|
256
|
-
amount: number;
|
|
256
|
+
amount: string | number;
|
|
257
257
|
wallet: string | number;
|
|
258
258
|
status?: "pending" | "finished" | undefined;
|
|
259
259
|
identifier?: string | undefined;
|
|
@@ -270,13 +270,13 @@ export declare const createTransferFnInputSchema: z.ZodIntersection<z.ZodUnion<[
|
|
|
270
270
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
271
271
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
272
272
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
273
|
-
amount: z.ZodNumber
|
|
273
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
274
274
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
275
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
276
276
|
from_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
277
277
|
to_wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
amount: number;
|
|
279
|
+
amount: string | number;
|
|
280
280
|
from_wallet: string | number;
|
|
281
281
|
to_wallet: string | number;
|
|
282
282
|
type?: "transfer" | undefined;
|
|
@@ -288,7 +288,7 @@ export declare const createTransferFnInputSchema: z.ZodIntersection<z.ZodUnion<[
|
|
|
288
288
|
latest_control_hash?: string | null | undefined;
|
|
289
289
|
transfer_group?: string | number | undefined;
|
|
290
290
|
}, {
|
|
291
|
-
amount: number;
|
|
291
|
+
amount: string | number;
|
|
292
292
|
from_wallet: string | number;
|
|
293
293
|
to_wallet: string | number;
|
|
294
294
|
type?: "transfer" | undefined;
|
|
@@ -306,13 +306,13 @@ export declare const createTransferFnInputSchema: z.ZodIntersection<z.ZodUnion<[
|
|
|
306
306
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
307
307
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
308
308
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
309
|
-
amount: z.ZodNumber
|
|
309
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
310
310
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
311
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
312
312
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
314
|
type: "deposit";
|
|
315
|
-
amount: number;
|
|
315
|
+
amount: string | number;
|
|
316
316
|
wallet: string | number;
|
|
317
317
|
status?: "pending" | "finished" | undefined;
|
|
318
318
|
identifier?: string | undefined;
|
|
@@ -323,7 +323,7 @@ export declare const createTransferFnInputSchema: z.ZodIntersection<z.ZodUnion<[
|
|
|
323
323
|
transfer_group?: string | number | undefined;
|
|
324
324
|
}, {
|
|
325
325
|
type: "deposit";
|
|
326
|
-
amount: number;
|
|
326
|
+
amount: string | number;
|
|
327
327
|
wallet: string | number;
|
|
328
328
|
status?: "pending" | "finished" | undefined;
|
|
329
329
|
identifier?: string | undefined;
|
|
@@ -339,13 +339,13 @@ export declare const createTransferFnInputSchema: z.ZodIntersection<z.ZodUnion<[
|
|
|
339
339
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../../db/consts").Metadata, z.ZodTypeDef, import("../../db/consts").Metadata>>>;
|
|
340
340
|
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
341
341
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>>;
|
|
342
|
-
amount: z.ZodNumber
|
|
342
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
343
343
|
latest_control_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
344
|
wallet: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
345
345
|
transfer_group: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
346
346
|
}, "strip", z.ZodTypeAny, {
|
|
347
347
|
type: "withdrawal";
|
|
348
|
-
amount: number;
|
|
348
|
+
amount: string | number;
|
|
349
349
|
wallet: string | number;
|
|
350
350
|
status?: "pending" | "finished" | undefined;
|
|
351
351
|
identifier?: string | undefined;
|
|
@@ -356,7 +356,7 @@ export declare const createTransferFnInputSchema: z.ZodIntersection<z.ZodUnion<[
|
|
|
356
356
|
transfer_group?: string | number | undefined;
|
|
357
357
|
}, {
|
|
358
358
|
type: "withdrawal";
|
|
359
|
-
amount: number;
|
|
359
|
+
amount: string | number;
|
|
360
360
|
wallet: string | number;
|
|
361
361
|
status?: "pending" | "finished" | undefined;
|
|
362
362
|
identifier?: string | undefined;
|