wapi-client 0.14.4 → 0.14.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/base-client.browser.cjs +15 -0
- package/dist/api/base-client.browser.js +15 -0
- package/dist/api/base-client.cjs +15 -0
- package/dist/api/base-client.js +15 -0
- package/dist/client.browser.cjs +28 -2
- package/dist/client.browser.js +28 -2
- package/dist/client.cjs +28 -2
- package/dist/client.js +28 -2
- package/dist/fns/consts.browser.cjs +1 -1
- package/dist/fns/consts.browser.js +1 -1
- package/dist/fns/consts.cjs +1 -1
- package/dist/fns/consts.js +1 -1
- package/dist/fns/create-contract/create-contract.browser.cjs +4 -5
- package/dist/fns/create-contract/create-contract.browser.js +4 -5
- package/dist/fns/create-contract/create-contract.cjs +4 -5
- package/dist/fns/create-contract/create-contract.js +4 -5
- package/dist/fns/create-deposit/create-deposit.browser.cjs +3 -3
- package/dist/fns/create-deposit/create-deposit.browser.js +3 -5
- package/dist/fns/create-deposit/create-deposit.cjs +3 -3
- package/dist/fns/create-deposit/create-deposit.js +3 -5
- package/dist/fns/create-exchange/create-exchange.browser.cjs +6 -6
- package/dist/fns/create-exchange/create-exchange.browser.js +7 -7
- package/dist/fns/create-exchange/create-exchange.cjs +6 -6
- package/dist/fns/create-exchange/create-exchange.js +7 -7
- package/dist/fns/create-token/create-token.browser.cjs +1 -2
- package/dist/fns/create-token/create-token.browser.js +1 -2
- package/dist/fns/create-token/create-token.cjs +1 -2
- package/dist/fns/create-token/create-token.js +1 -2
- package/dist/fns/create-transfer/create-transfer.browser.cjs +6 -6
- package/dist/fns/create-transfer/create-transfer.browser.js +6 -8
- package/dist/fns/create-transfer/create-transfer.cjs +6 -6
- package/dist/fns/create-transfer/create-transfer.js +6 -8
- package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +3 -3
- package/dist/fns/create-withdrawal/create-withdrawal.browser.js +3 -5
- package/dist/fns/create-withdrawal/create-withdrawal.cjs +3 -3
- package/dist/fns/create-withdrawal/create-withdrawal.js +3 -5
- package/dist/fns/export-balance-history/export-balance-history.browser.cjs +1 -2
- package/dist/fns/export-balance-history/export-balance-history.browser.js +1 -2
- package/dist/fns/export-balance-history/export-balance-history.cjs +1 -2
- package/dist/fns/export-balance-history/export-balance-history.js +1 -2
- package/dist/fns/export-balances/export-balances.browser.cjs +49 -0
- package/dist/fns/export-balances/export-balances.browser.js +28 -0
- package/dist/fns/export-balances/export-balances.cjs +53 -0
- package/dist/fns/export-balances/export-balances.enums.browser.cjs +18 -0
- package/dist/fns/export-balances/export-balances.enums.browser.js +0 -0
- package/dist/fns/export-balances/export-balances.enums.cjs +18 -0
- package/dist/fns/export-balances/export-balances.enums.js +0 -0
- package/dist/fns/export-balances/export-balances.js +28 -0
- package/dist/fns/export-balances/export-balances.schema.zod.browser.cjs +40 -0
- package/dist/fns/export-balances/export-balances.schema.zod.browser.js +22 -0
- package/dist/fns/export-balances/export-balances.schema.zod.cjs +48 -0
- package/dist/fns/export-balances/export-balances.schema.zod.js +22 -0
- package/dist/fns/find-balances/find-balances.schema.zod.browser.cjs +14 -5
- package/dist/fns/find-balances/find-balances.schema.zod.browser.js +12 -3
- package/dist/fns/find-balances/find-balances.schema.zod.cjs +14 -5
- package/dist/fns/find-balances/find-balances.schema.zod.js +12 -3
- package/dist/fns/fn-types.browser.cjs +1 -0
- package/dist/fns/fn-types.browser.js +1 -0
- package/dist/fns/fn-types.cjs +2 -0
- package/dist/fns/fn-types.js +1 -0
- package/dist/fns/get-balance/get-balance.browser.cjs +2 -2
- package/dist/fns/get-balance/get-balance.browser.js +3 -3
- package/dist/fns/get-balance/get-balance.cjs +2 -2
- package/dist/fns/get-balance/get-balance.js +3 -3
- package/dist/fns/get-balance-history/get-balance-history.browser.cjs +2 -3
- package/dist/fns/get-balance-history/get-balance-history.browser.js +2 -3
- package/dist/fns/get-balance-history/get-balance-history.cjs +2 -3
- package/dist/fns/get-balance-history/get-balance-history.js +2 -3
- package/dist/fns/get-token/get-token.browser.cjs +1 -2
- package/dist/fns/get-token/get-token.browser.js +1 -2
- package/dist/fns/get-token/get-token.cjs +1 -2
- package/dist/fns/get-token/get-token.js +1 -2
- package/dist/fns/get-transfer/get-transfer.browser.cjs +1 -2
- package/dist/fns/get-transfer/get-transfer.browser.js +1 -2
- package/dist/fns/get-transfer/get-transfer.cjs +1 -2
- package/dist/fns/get-transfer/get-transfer.js +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.browser.cjs +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.browser.js +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.cjs +1 -2
- package/dist/fns/get-transfer-group/get-transfer-group.js +1 -2
- package/dist/fns/get-wallet/get-wallet.browser.cjs +1 -2
- package/dist/fns/get-wallet/get-wallet.browser.js +1 -2
- package/dist/fns/get-wallet/get-wallet.cjs +1 -2
- package/dist/fns/get-wallet/get-wallet.js +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.browser.cjs +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.browser.js +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.cjs +1 -2
- package/dist/fns/reverse-transfer/reverse-transfer.js +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.cjs +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.browser.js +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.cjs +1 -2
- package/dist/fns/reverse-transfer-group/reverse-transfer-group.js +1 -2
- package/dist/fns/update-token/update-token.browser.cjs +1 -2
- package/dist/fns/update-token/update-token.browser.js +1 -2
- package/dist/fns/update-token/update-token.cjs +1 -2
- package/dist/fns/update-token/update-token.js +1 -2
- package/dist/fns/update-transfer/update-transfer.browser.cjs +1 -2
- package/dist/fns/update-transfer/update-transfer.browser.js +1 -2
- package/dist/fns/update-transfer/update-transfer.cjs +1 -2
- package/dist/fns/update-transfer/update-transfer.js +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.browser.cjs +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.browser.js +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.cjs +1 -2
- package/dist/fns/update-transfer-group/update-transfer-group.js +1 -2
- package/dist/fns/update-wallet/update-wallet.browser.cjs +1 -2
- package/dist/fns/update-wallet/update-wallet.browser.js +1 -2
- package/dist/fns/update-wallet/update-wallet.cjs +1 -2
- package/dist/fns/update-wallet/update-wallet.js +1 -2
- package/dist/lib/env.browser.cjs +1 -1
- package/dist/lib/env.browser.js +1 -1
- package/dist/lib/env.cjs +1 -1
- package/dist/lib/env.js +1 -1
- package/dist/lib/utils.browser.cjs +0 -27
- package/dist/lib/utils.browser.js +0 -27
- package/dist/lib/utils.cjs +0 -30
- package/dist/lib/utils.js +0 -27
- package/dist/lib/validator.browser.cjs +6 -0
- package/dist/lib/validator.browser.js +12 -0
- package/dist/lib/validator.cjs +6 -0
- package/dist/lib/validator.js +12 -0
- package/dist/txs/consts.browser.cjs +12 -3
- package/dist/txs/consts.browser.js +12 -3
- package/dist/txs/consts.cjs +12 -3
- package/dist/txs/consts.js +12 -3
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.cjs +34 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.js +34 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.cjs +34 -1
- package/dist/txs/create-access-token/create-access-token.schema.zod.js +34 -1
- package/dist/txs/export-balance-many/export-balance-many.enums.browser.cjs +18 -0
- package/dist/txs/export-balance-many/export-balance-many.enums.browser.js +0 -0
- package/dist/txs/export-balance-many/export-balance-many.enums.cjs +18 -0
- package/dist/txs/export-balance-many/export-balance-many.enums.js +0 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.browser.cjs +48 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.browser.js +30 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.cjs +55 -0
- package/dist/txs/export-balance-many/export-balance-many.schema.zod.js +30 -0
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.cjs +4 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.js +4 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.cjs +4 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.js +4 -1
- package/dist/txs/get-balance/get-balance.schema.zod.browser.cjs +2 -0
- package/dist/txs/get-balance/get-balance.schema.zod.browser.js +2 -0
- package/dist/txs/get-balance/get-balance.schema.zod.cjs +2 -0
- package/dist/txs/get-balance/get-balance.schema.zod.js +2 -0
- package/dist/txs/get-export/get-export.schema.zod.browser.cjs +1 -0
- package/dist/txs/get-export/get-export.schema.zod.browser.js +1 -0
- package/dist/txs/get-export/get-export.schema.zod.cjs +1 -0
- package/dist/txs/get-export/get-export.schema.zod.js +1 -0
- package/dist/txs/index.browser.cjs +3 -0
- package/dist/txs/index.browser.js +3 -0
- package/dist/txs/index.cjs +3 -0
- package/dist/txs/index.js +3 -0
- package/dist/txs/tx-types.browser.cjs +1 -0
- package/dist/txs/tx-types.browser.js +1 -0
- package/dist/txs/tx-types.cjs +2 -0
- package/dist/txs/tx-types.js +1 -0
- package/dist/types/wapi-client.d.ts +10190 -4354
- package/dist/wapi-client-web.iife.js +8 -8
- package/dist/wapi-client.iife.js +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/fns/export-balances/export-balances.schema.zod.ts
|
|
21
|
+
var export_balances_schema_zod_exports = {};
|
|
22
|
+
__export(export_balances_schema_zod_exports, {
|
|
23
|
+
config: () => config,
|
|
24
|
+
exportBalancesFnInputSchema: () => exportBalancesFnInputSchema,
|
|
25
|
+
exportBalancesFnOptionsSchema: () => exportBalancesFnOptionsSchema,
|
|
26
|
+
exportBalancesFnOutputSchema: () => exportBalancesFnOutputSchema,
|
|
27
|
+
exportBalancesInputSchema: () => exportBalancesInputSchema
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(export_balances_schema_zod_exports);
|
|
30
|
+
var import_export_balance_many_schema_zod = require("../../txs/export-balance-many/export-balance-many.schema.zod.browser.cjs");
|
|
31
|
+
var import_find_balances_schema_zod = require("../find-balances/find-balances.schema.zod.browser.cjs");
|
|
32
|
+
var exportBalancesFnOptionsSchema = import_find_balances_schema_zod.findBalancesFnOptionsSchema.partial().describe("Optional flags for input");
|
|
33
|
+
var exportBalancesInputSchema = import_find_balances_schema_zod.findBalancesInputSchema.partial();
|
|
34
|
+
var exportBalancesFnInputSchema = exportBalancesInputSchema.extend({
|
|
35
|
+
options: exportBalancesFnOptionsSchema.optional()
|
|
36
|
+
}).strict().describe("Input for exportBalances");
|
|
37
|
+
var exportBalancesFnOutputSchema = import_export_balance_many_schema_zod.exportBalanceManyTxOutputSchema.describe("Output of exportBalances");
|
|
38
|
+
var config = {
|
|
39
|
+
queryBuilder: true
|
|
40
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/fns/export-balances/export-balances.schema.zod.ts
|
|
2
|
+
import { exportBalanceManyTxOutputSchema } from "../../txs/export-balance-many/export-balance-many.schema.zod.browser.js";
|
|
3
|
+
import {
|
|
4
|
+
findBalancesFnOptionsSchema,
|
|
5
|
+
findBalancesInputSchema
|
|
6
|
+
} from "../find-balances/find-balances.schema.zod.browser.js";
|
|
7
|
+
var exportBalancesFnOptionsSchema = findBalancesFnOptionsSchema.partial().describe("Optional flags for input");
|
|
8
|
+
var exportBalancesInputSchema = findBalancesInputSchema.partial();
|
|
9
|
+
var exportBalancesFnInputSchema = exportBalancesInputSchema.extend({
|
|
10
|
+
options: exportBalancesFnOptionsSchema.optional()
|
|
11
|
+
}).strict().describe("Input for exportBalances");
|
|
12
|
+
var exportBalancesFnOutputSchema = exportBalanceManyTxOutputSchema.describe("Output of exportBalances");
|
|
13
|
+
var config = {
|
|
14
|
+
queryBuilder: true
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
config,
|
|
18
|
+
exportBalancesFnInputSchema,
|
|
19
|
+
exportBalancesFnOptionsSchema,
|
|
20
|
+
exportBalancesFnOutputSchema,
|
|
21
|
+
exportBalancesInputSchema
|
|
22
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/fns/export-balances/export-balances.schema.zod.ts
|
|
21
|
+
var export_balances_schema_zod_exports = {};
|
|
22
|
+
__export(export_balances_schema_zod_exports, {
|
|
23
|
+
config: () => config,
|
|
24
|
+
exportBalancesFnInputSchema: () => exportBalancesFnInputSchema,
|
|
25
|
+
exportBalancesFnOptionsSchema: () => exportBalancesFnOptionsSchema,
|
|
26
|
+
exportBalancesFnOutputSchema: () => exportBalancesFnOutputSchema,
|
|
27
|
+
exportBalancesInputSchema: () => exportBalancesInputSchema
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(export_balances_schema_zod_exports);
|
|
30
|
+
var import_export_balance_many_schema_zod = require("../../txs/export-balance-many/export-balance-many.schema.zod.cjs");
|
|
31
|
+
var import_find_balances_schema_zod = require("../find-balances/find-balances.schema.zod.cjs");
|
|
32
|
+
var exportBalancesFnOptionsSchema = import_find_balances_schema_zod.findBalancesFnOptionsSchema.partial().describe("Optional flags for input");
|
|
33
|
+
var exportBalancesInputSchema = import_find_balances_schema_zod.findBalancesInputSchema.partial();
|
|
34
|
+
var exportBalancesFnInputSchema = exportBalancesInputSchema.extend({
|
|
35
|
+
options: exportBalancesFnOptionsSchema.optional()
|
|
36
|
+
}).strict().describe("Input for exportBalances");
|
|
37
|
+
var exportBalancesFnOutputSchema = import_export_balance_many_schema_zod.exportBalanceManyTxOutputSchema.describe("Output of exportBalances");
|
|
38
|
+
var config = {
|
|
39
|
+
queryBuilder: true
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
config,
|
|
44
|
+
exportBalancesFnInputSchema,
|
|
45
|
+
exportBalancesFnOptionsSchema,
|
|
46
|
+
exportBalancesFnOutputSchema,
|
|
47
|
+
exportBalancesInputSchema
|
|
48
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/fns/export-balances/export-balances.schema.zod.ts
|
|
2
|
+
import { exportBalanceManyTxOutputSchema } from "../../txs/export-balance-many/export-balance-many.schema.zod.js";
|
|
3
|
+
import {
|
|
4
|
+
findBalancesFnOptionsSchema,
|
|
5
|
+
findBalancesInputSchema
|
|
6
|
+
} from "../find-balances/find-balances.schema.zod.js";
|
|
7
|
+
var exportBalancesFnOptionsSchema = findBalancesFnOptionsSchema.partial().describe("Optional flags for input");
|
|
8
|
+
var exportBalancesInputSchema = findBalancesInputSchema.partial();
|
|
9
|
+
var exportBalancesFnInputSchema = exportBalancesInputSchema.extend({
|
|
10
|
+
options: exportBalancesFnOptionsSchema.optional()
|
|
11
|
+
}).strict().describe("Input for exportBalances");
|
|
12
|
+
var exportBalancesFnOutputSchema = exportBalanceManyTxOutputSchema.describe("Output of exportBalances");
|
|
13
|
+
var config = {
|
|
14
|
+
queryBuilder: true
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
config,
|
|
18
|
+
exportBalancesFnInputSchema,
|
|
19
|
+
exportBalancesFnOptionsSchema,
|
|
20
|
+
exportBalancesFnOutputSchema,
|
|
21
|
+
exportBalancesInputSchema
|
|
22
|
+
};
|
|
@@ -27,17 +27,26 @@ __export(find_balances_schema_zod_exports, {
|
|
|
27
27
|
findBalancesInputSchema: () => findBalancesInputSchema
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(find_balances_schema_zod_exports);
|
|
30
|
+
var import_consts = require("../../db/consts.browser.cjs");
|
|
30
31
|
var import_zod = require("../../lib/zod.browser.cjs");
|
|
32
|
+
var import_consts2 = require("../../txs/consts.browser.cjs");
|
|
31
33
|
var import_find_balance_many_schema_zod = require("../../txs/find-balance-many/find-balance-many.schema.zod.browser.cjs");
|
|
32
|
-
var
|
|
33
|
-
var findBalancesFnOptionsSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputOptionsSchema.merge(
|
|
34
|
+
var import_consts3 = require("../consts.browser.cjs");
|
|
35
|
+
var findBalancesFnOptionsSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputOptionsSchema.merge(import_consts3.iFnFindOptionsExtraSchema).partial().describe("Optional flags for input");
|
|
34
36
|
var findBalancesInputSchema = import_zod.z.object({
|
|
35
|
-
token:
|
|
37
|
+
token: import_consts3.allowedStringIntSchema.describe("Token to get balance for").transform((foreign) => ({
|
|
36
38
|
foreign: String(foreign)
|
|
37
39
|
})),
|
|
38
|
-
wallet:
|
|
40
|
+
wallet: import_consts3.allowedStringIntSchema.describe("Wallet to get balance for").transform((foreign) => ({
|
|
39
41
|
foreign: String(foreign)
|
|
40
|
-
}))
|
|
42
|
+
})),
|
|
43
|
+
amount: import_consts2.stringNumberToNumber.describe("Balance amount"),
|
|
44
|
+
available_balance: import_consts2.stringNumberToNumber.describe(
|
|
45
|
+
"Balance amount available"
|
|
46
|
+
),
|
|
47
|
+
pending_amount: import_consts2.stringNumberToNumber.describe("Balance pending_amount"),
|
|
48
|
+
finished_amount: import_consts2.stringNumberToNumber.describe("Balance finished_amount"),
|
|
49
|
+
metadata: import_consts.DbFilterMetadataSchema
|
|
41
50
|
}).partial();
|
|
42
51
|
var findBalancesFnInputSchema = findBalancesInputSchema.extend({
|
|
43
52
|
options: findBalancesFnOptionsSchema.optional()
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// src/fns/find-balances/find-balances.schema.zod.ts
|
|
2
|
+
import { DbFilterMetadataSchema } from "../../db/consts.browser.js";
|
|
2
3
|
import { z } from "../../lib/zod.browser.js";
|
|
4
|
+
import { stringNumberToNumber } from "../../txs/consts.browser.js";
|
|
3
5
|
import {
|
|
4
6
|
findBalanceManyTxInputOptionsSchema,
|
|
5
7
|
findBalanceManyTxOutputSchema
|
|
@@ -10,12 +12,19 @@ import {
|
|
|
10
12
|
} from "../consts.browser.js";
|
|
11
13
|
var findBalancesFnOptionsSchema = findBalanceManyTxInputOptionsSchema.merge(iFnFindOptionsExtraSchema).partial().describe("Optional flags for input");
|
|
12
14
|
var findBalancesInputSchema = z.object({
|
|
13
|
-
token: allowedStringIntSchema.describe("
|
|
15
|
+
token: allowedStringIntSchema.describe("Token to get balance for").transform((foreign) => ({
|
|
14
16
|
foreign: String(foreign)
|
|
15
17
|
})),
|
|
16
|
-
wallet: allowedStringIntSchema.describe("
|
|
18
|
+
wallet: allowedStringIntSchema.describe("Wallet to get balance for").transform((foreign) => ({
|
|
17
19
|
foreign: String(foreign)
|
|
18
|
-
}))
|
|
20
|
+
})),
|
|
21
|
+
amount: stringNumberToNumber.describe("Balance amount"),
|
|
22
|
+
available_balance: stringNumberToNumber.describe(
|
|
23
|
+
"Balance amount available"
|
|
24
|
+
),
|
|
25
|
+
pending_amount: stringNumberToNumber.describe("Balance pending_amount"),
|
|
26
|
+
finished_amount: stringNumberToNumber.describe("Balance finished_amount"),
|
|
27
|
+
metadata: DbFilterMetadataSchema
|
|
19
28
|
}).partial();
|
|
20
29
|
var findBalancesFnInputSchema = findBalancesInputSchema.extend({
|
|
21
30
|
options: findBalancesFnOptionsSchema.optional()
|
|
@@ -27,17 +27,26 @@ __export(find_balances_schema_zod_exports, {
|
|
|
27
27
|
findBalancesInputSchema: () => findBalancesInputSchema
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(find_balances_schema_zod_exports);
|
|
30
|
+
var import_consts = require("../../db/consts.cjs");
|
|
30
31
|
var import_zod = require("../../lib/zod.cjs");
|
|
32
|
+
var import_consts2 = require("../../txs/consts.cjs");
|
|
31
33
|
var import_find_balance_many_schema_zod = require("../../txs/find-balance-many/find-balance-many.schema.zod.cjs");
|
|
32
|
-
var
|
|
33
|
-
var findBalancesFnOptionsSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputOptionsSchema.merge(
|
|
34
|
+
var import_consts3 = require("../consts.cjs");
|
|
35
|
+
var findBalancesFnOptionsSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputOptionsSchema.merge(import_consts3.iFnFindOptionsExtraSchema).partial().describe("Optional flags for input");
|
|
34
36
|
var findBalancesInputSchema = import_zod.z.object({
|
|
35
|
-
token:
|
|
37
|
+
token: import_consts3.allowedStringIntSchema.describe("Token to get balance for").transform((foreign) => ({
|
|
36
38
|
foreign: String(foreign)
|
|
37
39
|
})),
|
|
38
|
-
wallet:
|
|
40
|
+
wallet: import_consts3.allowedStringIntSchema.describe("Wallet to get balance for").transform((foreign) => ({
|
|
39
41
|
foreign: String(foreign)
|
|
40
|
-
}))
|
|
42
|
+
})),
|
|
43
|
+
amount: import_consts2.stringNumberToNumber.describe("Balance amount"),
|
|
44
|
+
available_balance: import_consts2.stringNumberToNumber.describe(
|
|
45
|
+
"Balance amount available"
|
|
46
|
+
),
|
|
47
|
+
pending_amount: import_consts2.stringNumberToNumber.describe("Balance pending_amount"),
|
|
48
|
+
finished_amount: import_consts2.stringNumberToNumber.describe("Balance finished_amount"),
|
|
49
|
+
metadata: import_consts.DbFilterMetadataSchema
|
|
41
50
|
}).partial();
|
|
42
51
|
var findBalancesFnInputSchema = findBalancesInputSchema.extend({
|
|
43
52
|
options: findBalancesFnOptionsSchema.optional()
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// src/fns/find-balances/find-balances.schema.zod.ts
|
|
2
|
+
import { DbFilterMetadataSchema } from "../../db/consts.js";
|
|
2
3
|
import { z } from "../../lib/zod.js";
|
|
4
|
+
import { stringNumberToNumber } from "../../txs/consts.js";
|
|
3
5
|
import {
|
|
4
6
|
findBalanceManyTxInputOptionsSchema,
|
|
5
7
|
findBalanceManyTxOutputSchema
|
|
@@ -10,12 +12,19 @@ import {
|
|
|
10
12
|
} from "../consts.js";
|
|
11
13
|
var findBalancesFnOptionsSchema = findBalanceManyTxInputOptionsSchema.merge(iFnFindOptionsExtraSchema).partial().describe("Optional flags for input");
|
|
12
14
|
var findBalancesInputSchema = z.object({
|
|
13
|
-
token: allowedStringIntSchema.describe("
|
|
15
|
+
token: allowedStringIntSchema.describe("Token to get balance for").transform((foreign) => ({
|
|
14
16
|
foreign: String(foreign)
|
|
15
17
|
})),
|
|
16
|
-
wallet: allowedStringIntSchema.describe("
|
|
18
|
+
wallet: allowedStringIntSchema.describe("Wallet to get balance for").transform((foreign) => ({
|
|
17
19
|
foreign: String(foreign)
|
|
18
|
-
}))
|
|
20
|
+
})),
|
|
21
|
+
amount: stringNumberToNumber.describe("Balance amount"),
|
|
22
|
+
available_balance: stringNumberToNumber.describe(
|
|
23
|
+
"Balance amount available"
|
|
24
|
+
),
|
|
25
|
+
pending_amount: stringNumberToNumber.describe("Balance pending_amount"),
|
|
26
|
+
finished_amount: stringNumberToNumber.describe("Balance finished_amount"),
|
|
27
|
+
metadata: DbFilterMetadataSchema
|
|
19
28
|
}).partial();
|
|
20
29
|
var findBalancesFnInputSchema = findBalancesInputSchema.extend({
|
|
21
30
|
options: findBalancesFnOptionsSchema.optional()
|
|
@@ -29,6 +29,7 @@ __reExport(fn_types_exports, require("./create-transfers/create-transfers.enums.
|
|
|
29
29
|
__reExport(fn_types_exports, require("./create-wallet/create-wallet.enums.browser.cjs"), module.exports);
|
|
30
30
|
__reExport(fn_types_exports, require("./create-withdrawal/create-withdrawal.enums.browser.cjs"), module.exports);
|
|
31
31
|
__reExport(fn_types_exports, require("./export-balance-history/export-balance-history.enums.browser.cjs"), module.exports);
|
|
32
|
+
__reExport(fn_types_exports, require("./export-balances/export-balances.enums.browser.cjs"), module.exports);
|
|
32
33
|
__reExport(fn_types_exports, require("./export-tokens/export-tokens.enums.browser.cjs"), module.exports);
|
|
33
34
|
__reExport(fn_types_exports, require("./export-transfer-groups/export-transfer-groups.enums.browser.cjs"), module.exports);
|
|
34
35
|
__reExport(fn_types_exports, require("./export-transfers/export-transfers.enums.browser.cjs"), module.exports);
|
|
@@ -11,6 +11,7 @@ export * from "./create-transfers/create-transfers.enums.browser.js";
|
|
|
11
11
|
export * from "./create-wallet/create-wallet.enums.browser.js";
|
|
12
12
|
export * from "./create-withdrawal/create-withdrawal.enums.browser.js";
|
|
13
13
|
export * from "./export-balance-history/export-balance-history.enums.browser.js";
|
|
14
|
+
export * from "./export-balances/export-balances.enums.browser.js";
|
|
14
15
|
export * from "./export-tokens/export-tokens.enums.browser.js";
|
|
15
16
|
export * from "./export-transfer-groups/export-transfer-groups.enums.browser.js";
|
|
16
17
|
export * from "./export-transfers/export-transfers.enums.browser.js";
|
package/dist/fns/fn-types.cjs
CHANGED
|
@@ -29,6 +29,7 @@ __reExport(fn_types_exports, require("./create-transfers/create-transfers.enums
|
|
|
29
29
|
__reExport(fn_types_exports, require("./create-wallet/create-wallet.enums.cjs"), module.exports);
|
|
30
30
|
__reExport(fn_types_exports, require("./create-withdrawal/create-withdrawal.enums.cjs"), module.exports);
|
|
31
31
|
__reExport(fn_types_exports, require("./export-balance-history/export-balance-history.enums.cjs"), module.exports);
|
|
32
|
+
__reExport(fn_types_exports, require("./export-balances/export-balances.enums.cjs"), module.exports);
|
|
32
33
|
__reExport(fn_types_exports, require("./export-tokens/export-tokens.enums.cjs"), module.exports);
|
|
33
34
|
__reExport(fn_types_exports, require("./export-transfer-groups/export-transfer-groups.enums.cjs"), module.exports);
|
|
34
35
|
__reExport(fn_types_exports, require("./export-transfers/export-transfers.enums.cjs"), module.exports);
|
|
@@ -73,6 +74,7 @@ __reExport(fn_types_exports, require("./update-wallet/update-wallet.enums.cjs")
|
|
|
73
74
|
... require("./create-wallet/create-wallet.enums.cjs"),
|
|
74
75
|
... require("./create-withdrawal/create-withdrawal.enums.cjs"),
|
|
75
76
|
... require("./export-balance-history/export-balance-history.enums.cjs"),
|
|
77
|
+
... require("./export-balances/export-balances.enums.cjs"),
|
|
76
78
|
... require("./export-tokens/export-tokens.enums.cjs"),
|
|
77
79
|
... require("./export-transfer-groups/export-transfer-groups.enums.cjs"),
|
|
78
80
|
... require("./export-transfers/export-transfers.enums.cjs"),
|
package/dist/fns/fn-types.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./create-transfers/create-transfers.enums.js";
|
|
|
11
11
|
export * from "./create-wallet/create-wallet.enums.js";
|
|
12
12
|
export * from "./create-withdrawal/create-withdrawal.enums.js";
|
|
13
13
|
export * from "./export-balance-history/export-balance-history.enums.js";
|
|
14
|
+
export * from "./export-balances/export-balances.enums.js";
|
|
14
15
|
export * from "./export-tokens/export-tokens.enums.js";
|
|
15
16
|
export * from "./export-transfer-groups/export-transfer-groups.enums.js";
|
|
16
17
|
export * from "./export-transfers/export-transfers.enums.js";
|
|
@@ -48,8 +48,8 @@ function getBalance(options, input, fnOptions) {
|
|
|
48
48
|
}
|
|
49
49
|
return client.api.getBalance({
|
|
50
50
|
balance: {
|
|
51
|
-
wallet:
|
|
52
|
-
token
|
|
51
|
+
wallet: inputCopy.wallet,
|
|
52
|
+
token,
|
|
53
53
|
datetime: inputCopy.datetime
|
|
54
54
|
},
|
|
55
55
|
options: inputCopy.options
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/fns/get-balance/get-balance.ts
|
|
2
2
|
import { InputError } from "../../lib/errors.browser.js";
|
|
3
|
-
import { checkCopyObject,
|
|
3
|
+
import { checkCopyObject, isFutureDate } from "../../lib/utils.browser.js";
|
|
4
4
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
5
5
|
import { getBalanceFnInputSchema } from "./get-balance.schema.zod.browser.js";
|
|
6
6
|
var zodValidator = getValidator(getBalanceFnInputSchema);
|
|
@@ -24,8 +24,8 @@ function getBalance(options, input, fnOptions) {
|
|
|
24
24
|
}
|
|
25
25
|
return client.api.getBalance({
|
|
26
26
|
balance: {
|
|
27
|
-
wallet:
|
|
28
|
-
token
|
|
27
|
+
wallet: inputCopy.wallet,
|
|
28
|
+
token,
|
|
29
29
|
datetime: inputCopy.datetime
|
|
30
30
|
},
|
|
31
31
|
options: inputCopy.options
|
|
@@ -48,8 +48,8 @@ function getBalance(options, input, fnOptions) {
|
|
|
48
48
|
}
|
|
49
49
|
return client.api.getBalance({
|
|
50
50
|
balance: {
|
|
51
|
-
wallet:
|
|
52
|
-
token
|
|
51
|
+
wallet: inputCopy.wallet,
|
|
52
|
+
token,
|
|
53
53
|
datetime: inputCopy.datetime
|
|
54
54
|
},
|
|
55
55
|
options: inputCopy.options
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/fns/get-balance/get-balance.ts
|
|
2
2
|
import { InputError } from "../../lib/errors.js";
|
|
3
|
-
import { checkCopyObject,
|
|
3
|
+
import { checkCopyObject, isFutureDate } from "../../lib/utils.js";
|
|
4
4
|
import { getValidator } from "../../lib/validation.js";
|
|
5
5
|
import { getBalanceFnInputSchema } from "./get-balance.schema.zod.js";
|
|
6
6
|
var zodValidator = getValidator(getBalanceFnInputSchema);
|
|
@@ -24,8 +24,8 @@ function getBalance(options, input, fnOptions) {
|
|
|
24
24
|
}
|
|
25
25
|
return client.api.getBalance({
|
|
26
26
|
balance: {
|
|
27
|
-
wallet:
|
|
28
|
-
token
|
|
27
|
+
wallet: inputCopy.wallet,
|
|
28
|
+
token,
|
|
29
29
|
datetime: inputCopy.datetime
|
|
30
30
|
},
|
|
31
31
|
options: inputCopy.options
|
|
@@ -24,7 +24,6 @@ __export(get_balance_history_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_balance_history_exports);
|
|
26
26
|
var import_errors = require("../../lib/errors.browser.cjs");
|
|
27
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
28
27
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
29
28
|
var import_get_balance_history_schema_zod = require("./get-balance-history.schema.zod.browser.cjs");
|
|
30
29
|
var zodValidator = (0, import_validation.getValidator)(import_get_balance_history_schema_zod.getBalanceHistoryFnInputSchema);
|
|
@@ -37,8 +36,8 @@ function getBalanceHistory(options, input, fnOptions) {
|
|
|
37
36
|
}
|
|
38
37
|
return client.api.getBalanceHistory({
|
|
39
38
|
balance: {
|
|
40
|
-
wallet:
|
|
41
|
-
token
|
|
39
|
+
wallet: inputCopy.wallet,
|
|
40
|
+
token,
|
|
42
41
|
datetime: inputCopy.datetime
|
|
43
42
|
},
|
|
44
43
|
options: inputCopy.options
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/fns/get-balance-history/get-balance-history.ts
|
|
2
2
|
import { InputError } from "../../lib/errors.browser.js";
|
|
3
|
-
import { getForeign } from "../../lib/utils.browser.js";
|
|
4
3
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
5
4
|
import { getBalanceHistoryFnInputSchema } from "./get-balance-history.schema.zod.browser.js";
|
|
6
5
|
var zodValidator = getValidator(getBalanceHistoryFnInputSchema);
|
|
@@ -13,8 +12,8 @@ function getBalanceHistory(options, input, fnOptions) {
|
|
|
13
12
|
}
|
|
14
13
|
return client.api.getBalanceHistory({
|
|
15
14
|
balance: {
|
|
16
|
-
wallet:
|
|
17
|
-
token
|
|
15
|
+
wallet: inputCopy.wallet,
|
|
16
|
+
token,
|
|
18
17
|
datetime: inputCopy.datetime
|
|
19
18
|
},
|
|
20
19
|
options: inputCopy.options
|
|
@@ -24,7 +24,6 @@ __export(get_balance_history_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_balance_history_exports);
|
|
26
26
|
var import_errors = require("../../lib/errors.cjs");
|
|
27
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
28
27
|
var import_validation = require("../../lib/validation.cjs");
|
|
29
28
|
var import_get_balance_history_schema_zod = require("./get-balance-history.schema.zod.cjs");
|
|
30
29
|
var zodValidator = (0, import_validation.getValidator)(import_get_balance_history_schema_zod.getBalanceHistoryFnInputSchema);
|
|
@@ -37,8 +36,8 @@ function getBalanceHistory(options, input, fnOptions) {
|
|
|
37
36
|
}
|
|
38
37
|
return client.api.getBalanceHistory({
|
|
39
38
|
balance: {
|
|
40
|
-
wallet:
|
|
41
|
-
token
|
|
39
|
+
wallet: inputCopy.wallet,
|
|
40
|
+
token,
|
|
42
41
|
datetime: inputCopy.datetime
|
|
43
42
|
},
|
|
44
43
|
options: inputCopy.options
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/fns/get-balance-history/get-balance-history.ts
|
|
2
2
|
import { InputError } from "../../lib/errors.js";
|
|
3
|
-
import { getForeign } from "../../lib/utils.js";
|
|
4
3
|
import { getValidator } from "../../lib/validation.js";
|
|
5
4
|
import { getBalanceHistoryFnInputSchema } from "./get-balance-history.schema.zod.js";
|
|
6
5
|
var zodValidator = getValidator(getBalanceHistoryFnInputSchema);
|
|
@@ -13,8 +12,8 @@ function getBalanceHistory(options, input, fnOptions) {
|
|
|
13
12
|
}
|
|
14
13
|
return client.api.getBalanceHistory({
|
|
15
14
|
balance: {
|
|
16
|
-
wallet:
|
|
17
|
-
token
|
|
15
|
+
wallet: inputCopy.wallet,
|
|
16
|
+
token,
|
|
18
17
|
datetime: inputCopy.datetime
|
|
19
18
|
},
|
|
20
19
|
options: inputCopy.options
|
|
@@ -24,7 +24,6 @@ __export(get_token_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_token_exports);
|
|
26
26
|
var import_errors = require("../../lib/errors.browser.cjs");
|
|
27
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
28
27
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
29
28
|
var import_get_token_schema_zod = require("./get-token.schema.zod.browser.cjs");
|
|
30
29
|
var zodValidator = (0, import_validation.getValidator)(import_get_token_schema_zod.getTokenFnInputSchema);
|
|
@@ -48,7 +47,7 @@ function getToken(options, input = {}, fnOptions) {
|
|
|
48
47
|
throw new import_errors.InputError("INPUT_NEEDS_TOKEN", { input });
|
|
49
48
|
}
|
|
50
49
|
return client.api.getToken({
|
|
51
|
-
token
|
|
50
|
+
token,
|
|
52
51
|
options: inputCopy.options
|
|
53
52
|
});
|
|
54
53
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/fns/get-token/get-token.ts
|
|
2
2
|
import { InputError, ValidationError } from "../../lib/errors.browser.js";
|
|
3
|
-
import { getForeign } from "../../lib/utils.browser.js";
|
|
4
3
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
5
4
|
import { getTokenFnInputSchema } from "./get-token.schema.zod.browser.js";
|
|
6
5
|
var zodValidator = getValidator(getTokenFnInputSchema);
|
|
@@ -24,7 +23,7 @@ function getToken(options, input = {}, fnOptions) {
|
|
|
24
23
|
throw new InputError("INPUT_NEEDS_TOKEN", { input });
|
|
25
24
|
}
|
|
26
25
|
return client.api.getToken({
|
|
27
|
-
token
|
|
26
|
+
token,
|
|
28
27
|
options: inputCopy.options
|
|
29
28
|
});
|
|
30
29
|
}
|
|
@@ -24,7 +24,6 @@ __export(get_token_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_token_exports);
|
|
26
26
|
var import_errors = require("../../lib/errors.cjs");
|
|
27
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
28
27
|
var import_validation = require("../../lib/validation.cjs");
|
|
29
28
|
var import_get_token_schema_zod = require("./get-token.schema.zod.cjs");
|
|
30
29
|
var zodValidator = (0, import_validation.getValidator)(import_get_token_schema_zod.getTokenFnInputSchema);
|
|
@@ -48,7 +47,7 @@ function getToken(options, input = {}, fnOptions) {
|
|
|
48
47
|
throw new import_errors.InputError("INPUT_NEEDS_TOKEN", { input });
|
|
49
48
|
}
|
|
50
49
|
return client.api.getToken({
|
|
51
|
-
token
|
|
50
|
+
token,
|
|
52
51
|
options: inputCopy.options
|
|
53
52
|
});
|
|
54
53
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/fns/get-token/get-token.ts
|
|
2
2
|
import { InputError, ValidationError } from "../../lib/errors.js";
|
|
3
|
-
import { getForeign } from "../../lib/utils.js";
|
|
4
3
|
import { getValidator } from "../../lib/validation.js";
|
|
5
4
|
import { getTokenFnInputSchema } from "./get-token.schema.zod.js";
|
|
6
5
|
var zodValidator = getValidator(getTokenFnInputSchema);
|
|
@@ -24,7 +23,7 @@ function getToken(options, input = {}, fnOptions) {
|
|
|
24
23
|
throw new InputError("INPUT_NEEDS_TOKEN", { input });
|
|
25
24
|
}
|
|
26
25
|
return client.api.getToken({
|
|
27
|
-
token
|
|
26
|
+
token,
|
|
28
27
|
options: inputCopy.options
|
|
29
28
|
});
|
|
30
29
|
}
|
|
@@ -23,7 +23,6 @@ __export(get_transfer_exports, {
|
|
|
23
23
|
getTransfer: () => getTransfer
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_transfer_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
28
27
|
var import_get_transfer_schema_zod = require("./get-transfer.schema.zod.browser.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_get_transfer_schema_zod.getTransferFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function getTransfer(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.getTransfer({
|
|
34
|
-
transfer:
|
|
33
|
+
transfer: inputCopy.transfer,
|
|
35
34
|
options: inputCopy.options
|
|
36
35
|
});
|
|
37
36
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/get-transfer/get-transfer.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.browser.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
4
3
|
import { getTransferFnInputSchema } from "./get-transfer.schema.zod.browser.js";
|
|
5
4
|
var zodValidator = getValidator(getTransferFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function getTransfer(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.getTransfer({
|
|
10
|
-
transfer:
|
|
9
|
+
transfer: inputCopy.transfer,
|
|
11
10
|
options: inputCopy.options
|
|
12
11
|
});
|
|
13
12
|
}
|
|
@@ -23,7 +23,6 @@ __export(get_transfer_exports, {
|
|
|
23
23
|
getTransfer: () => getTransfer
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_transfer_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.cjs");
|
|
28
27
|
var import_get_transfer_schema_zod = require("./get-transfer.schema.zod.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_get_transfer_schema_zod.getTransferFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function getTransfer(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.getTransfer({
|
|
34
|
-
transfer:
|
|
33
|
+
transfer: inputCopy.transfer,
|
|
35
34
|
options: inputCopy.options
|
|
36
35
|
});
|
|
37
36
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/get-transfer/get-transfer.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.js";
|
|
4
3
|
import { getTransferFnInputSchema } from "./get-transfer.schema.zod.js";
|
|
5
4
|
var zodValidator = getValidator(getTransferFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function getTransfer(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.getTransfer({
|
|
10
|
-
transfer:
|
|
9
|
+
transfer: inputCopy.transfer,
|
|
11
10
|
options: inputCopy.options
|
|
12
11
|
});
|
|
13
12
|
}
|
|
@@ -23,7 +23,6 @@ __export(get_transfer_group_exports, {
|
|
|
23
23
|
getTransferGroup: () => getTransferGroup
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(get_transfer_group_exports);
|
|
26
|
-
var import_utils = require("../../lib/utils.browser.cjs");
|
|
27
26
|
var import_validation = require("../../lib/validation.browser.cjs");
|
|
28
27
|
var import_get_transfer_group_schema_zod = require("./get-transfer-group.schema.zod.browser.cjs");
|
|
29
28
|
var zodValidator = (0, import_validation.getValidator)(import_get_transfer_group_schema_zod.getTransferGroupFnInputSchema);
|
|
@@ -31,7 +30,7 @@ function getTransferGroup(options, input, fnOptions) {
|
|
|
31
30
|
const { client } = options;
|
|
32
31
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
33
32
|
return client.api.getTransferGroup({
|
|
34
|
-
transfer_group:
|
|
33
|
+
transfer_group: inputCopy.transfer_group,
|
|
35
34
|
options: inputCopy.options
|
|
36
35
|
});
|
|
37
36
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/fns/get-transfer-group/get-transfer-group.ts
|
|
2
|
-
import { getIdentifierFilter } from "../../lib/utils.browser.js";
|
|
3
2
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
4
3
|
import { getTransferGroupFnInputSchema } from "./get-transfer-group.schema.zod.browser.js";
|
|
5
4
|
var zodValidator = getValidator(getTransferGroupFnInputSchema);
|
|
@@ -7,7 +6,7 @@ function getTransferGroup(options, input, fnOptions) {
|
|
|
7
6
|
const { client } = options;
|
|
8
7
|
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
9
8
|
return client.api.getTransferGroup({
|
|
10
|
-
transfer_group:
|
|
9
|
+
transfer_group: inputCopy.transfer_group,
|
|
11
10
|
options: inputCopy.options
|
|
12
11
|
});
|
|
13
12
|
}
|