wapi-client 0.14.10 → 0.14.14

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.
Files changed (86) hide show
  1. package/dist/api/base-client.browser.cjs +15 -0
  2. package/dist/api/base-client.browser.js +15 -0
  3. package/dist/api/base-client.cjs +15 -0
  4. package/dist/api/base-client.js +15 -0
  5. package/dist/client.browser.cjs +27 -1
  6. package/dist/client.browser.js +27 -1
  7. package/dist/client.cjs +27 -1
  8. package/dist/client.js +27 -1
  9. package/dist/fns/consts.browser.cjs +1 -1
  10. package/dist/fns/consts.browser.js +1 -1
  11. package/dist/fns/consts.cjs +1 -1
  12. package/dist/fns/consts.js +1 -1
  13. package/dist/fns/export-balances/export-balances.browser.cjs +49 -0
  14. package/dist/fns/export-balances/export-balances.browser.js +28 -0
  15. package/dist/fns/export-balances/export-balances.cjs +53 -0
  16. package/dist/fns/export-balances/export-balances.enums.browser.cjs +18 -0
  17. package/dist/fns/export-balances/export-balances.enums.browser.js +0 -0
  18. package/dist/fns/export-balances/export-balances.enums.cjs +18 -0
  19. package/dist/fns/export-balances/export-balances.enums.js +0 -0
  20. package/dist/fns/export-balances/export-balances.js +28 -0
  21. package/dist/fns/export-balances/export-balances.schema.zod.browser.cjs +40 -0
  22. package/dist/fns/export-balances/export-balances.schema.zod.browser.js +22 -0
  23. package/dist/fns/export-balances/export-balances.schema.zod.cjs +48 -0
  24. package/dist/fns/export-balances/export-balances.schema.zod.js +22 -0
  25. package/dist/fns/find-balances/find-balances.schema.zod.browser.cjs +14 -5
  26. package/dist/fns/find-balances/find-balances.schema.zod.browser.js +12 -3
  27. package/dist/fns/find-balances/find-balances.schema.zod.cjs +14 -5
  28. package/dist/fns/find-balances/find-balances.schema.zod.js +12 -3
  29. package/dist/fns/fn-types.browser.cjs +1 -0
  30. package/dist/fns/fn-types.browser.js +1 -0
  31. package/dist/fns/fn-types.cjs +2 -0
  32. package/dist/fns/fn-types.js +1 -0
  33. package/dist/lib/env.browser.cjs +1 -1
  34. package/dist/lib/env.browser.js +1 -1
  35. package/dist/lib/env.cjs +1 -1
  36. package/dist/lib/env.js +1 -1
  37. package/dist/lib/query-builder/query-builder.browser.cjs +4 -1
  38. package/dist/lib/query-builder/query-builder.browser.js +4 -1
  39. package/dist/lib/query-builder/query-builder.cjs +4 -1
  40. package/dist/lib/query-builder/query-builder.js +4 -1
  41. package/dist/lib/validator.browser.cjs +6 -0
  42. package/dist/lib/validator.browser.js +12 -0
  43. package/dist/lib/validator.cjs +6 -0
  44. package/dist/lib/validator.js +12 -0
  45. package/dist/lib/zod.browser.cjs +714 -293
  46. package/dist/lib/zod.browser.js +714 -293
  47. package/dist/txs/consts.browser.cjs +2 -1
  48. package/dist/txs/consts.browser.js +2 -1
  49. package/dist/txs/consts.cjs +2 -1
  50. package/dist/txs/consts.js +2 -1
  51. package/dist/txs/create-access-token/create-access-token.schema.zod.browser.cjs +1 -0
  52. package/dist/txs/create-access-token/create-access-token.schema.zod.browser.js +1 -0
  53. package/dist/txs/create-access-token/create-access-token.schema.zod.cjs +1 -0
  54. package/dist/txs/create-access-token/create-access-token.schema.zod.js +1 -0
  55. package/dist/txs/export-balance-many/export-balance-many.enums.browser.cjs +18 -0
  56. package/dist/txs/export-balance-many/export-balance-many.enums.browser.js +0 -0
  57. package/dist/txs/export-balance-many/export-balance-many.enums.cjs +18 -0
  58. package/dist/txs/export-balance-many/export-balance-many.enums.js +0 -0
  59. package/dist/txs/export-balance-many/export-balance-many.schema.zod.browser.cjs +48 -0
  60. package/dist/txs/export-balance-many/export-balance-many.schema.zod.browser.js +30 -0
  61. package/dist/txs/export-balance-many/export-balance-many.schema.zod.cjs +55 -0
  62. package/dist/txs/export-balance-many/export-balance-many.schema.zod.js +30 -0
  63. package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.cjs +4 -1
  64. package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.js +4 -1
  65. package/dist/txs/find-balance-many/find-balance-many.schema.zod.cjs +4 -1
  66. package/dist/txs/find-balance-many/find-balance-many.schema.zod.js +4 -1
  67. package/dist/txs/get-balance/get-balance.schema.zod.browser.cjs +2 -0
  68. package/dist/txs/get-balance/get-balance.schema.zod.browser.js +2 -0
  69. package/dist/txs/get-balance/get-balance.schema.zod.cjs +2 -0
  70. package/dist/txs/get-balance/get-balance.schema.zod.js +2 -0
  71. package/dist/txs/get-export/get-export.schema.zod.browser.cjs +1 -0
  72. package/dist/txs/get-export/get-export.schema.zod.browser.js +1 -0
  73. package/dist/txs/get-export/get-export.schema.zod.cjs +1 -0
  74. package/dist/txs/get-export/get-export.schema.zod.js +1 -0
  75. package/dist/txs/index.browser.cjs +3 -0
  76. package/dist/txs/index.browser.js +3 -0
  77. package/dist/txs/index.cjs +3 -0
  78. package/dist/txs/index.js +3 -0
  79. package/dist/txs/tx-types.browser.cjs +1 -0
  80. package/dist/txs/tx-types.browser.js +1 -0
  81. package/dist/txs/tx-types.cjs +2 -0
  82. package/dist/txs/tx-types.js +1 -0
  83. package/dist/types/wapi-client.d.ts +5687 -4569
  84. package/dist/wapi-client-web.iife.js +14 -14
  85. package/dist/wapi-client.iife.js +14 -14
  86. package/package.json +2 -2
@@ -71,7 +71,7 @@ var stringNumberToInteger = import_zod.z.union([
71
71
  import_zod.z.number().int().positive()
72
72
  ]).transform((strNr) => Number(strNr));
73
73
  var stringNumberToNumber = import_zod.z.union([
74
- import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
74
+ import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
75
75
  import_zod.z.number()
76
76
  ]).transform((strNr) => parseFloat(String(strNr)));
77
77
  var iTxTrackingOptions = import_zod.z.object({
@@ -240,6 +240,7 @@ var iTxFunctionNames = import_zod.z.enum([
240
240
  "createWallet",
241
241
  "createWithdrawal",
242
242
  "exportBalanceHistory",
243
+ "exportBalanceMany",
243
244
  "exportTokenMany",
244
245
  "exportTransferGroupMany",
245
246
  "exportTransferMany",
@@ -12,7 +12,7 @@ var stringNumberToInteger = z.union([
12
12
  z.number().int().positive()
13
13
  ]).transform((strNr) => Number(strNr));
14
14
  var stringNumberToNumber = z.union([
15
- z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
15
+ z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
16
16
  z.number()
17
17
  ]).transform((strNr) => parseFloat(String(strNr)));
18
18
  var iTxTrackingOptions = z.object({
@@ -181,6 +181,7 @@ var iTxFunctionNames = z.enum([
181
181
  "createWallet",
182
182
  "createWithdrawal",
183
183
  "exportBalanceHistory",
184
+ "exportBalanceMany",
184
185
  "exportTokenMany",
185
186
  "exportTransferGroupMany",
186
187
  "exportTransferMany",
@@ -71,7 +71,7 @@ var stringNumberToInteger = import_zod.z.union([
71
71
  import_zod.z.number().int().positive()
72
72
  ]).transform((strNr) => Number(strNr));
73
73
  var stringNumberToNumber = import_zod.z.union([
74
- import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
74
+ import_zod.z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
75
75
  import_zod.z.number()
76
76
  ]).transform((strNr) => parseFloat(String(strNr)));
77
77
  var iTxTrackingOptions = import_zod.z.object({
@@ -240,6 +240,7 @@ var iTxFunctionNames = import_zod.z.enum([
240
240
  "createWallet",
241
241
  "createWithdrawal",
242
242
  "exportBalanceHistory",
243
+ "exportBalanceMany",
243
244
  "exportTokenMany",
244
245
  "exportTransferGroupMany",
245
246
  "exportTransferMany",
@@ -12,7 +12,7 @@ var stringNumberToInteger = z.union([
12
12
  z.number().int().positive()
13
13
  ]).transform((strNr) => Number(strNr));
14
14
  var stringNumberToNumber = z.union([
15
- z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number"),
15
+ z.string().regex(/^-{0,1}((0\.\d+)|([1-9]\d*(\.\d+){0,1})|(0))$/, "invalid number"),
16
16
  z.number()
17
17
  ]).transform((strNr) => parseFloat(String(strNr)));
18
18
  var iTxTrackingOptions = z.object({
@@ -181,6 +181,7 @@ var iTxFunctionNames = z.enum([
181
181
  "createWallet",
182
182
  "createWithdrawal",
183
183
  "exportBalanceHistory",
184
+ "exportBalanceMany",
184
185
  "exportTokenMany",
185
186
  "exportTransferGroupMany",
186
187
  "exportTransferMany",
@@ -55,6 +55,7 @@ var createAccessTokenLimitedScopesSchema = import_zod.z.enum([
55
55
  "createWallet",
56
56
  "createWithdrawal",
57
57
  "exportBalanceHistory",
58
+ "exportBalanceMany",
58
59
  "exportTokenMany",
59
60
  "exportTransferGroupMany",
60
61
  "exportTransferMany",
@@ -25,6 +25,7 @@ var createAccessTokenLimitedScopesSchema = z.enum([
25
25
  "createWallet",
26
26
  "createWithdrawal",
27
27
  "exportBalanceHistory",
28
+ "exportBalanceMany",
28
29
  "exportTokenMany",
29
30
  "exportTransferGroupMany",
30
31
  "exportTransferMany",
@@ -55,6 +55,7 @@ var createAccessTokenLimitedScopesSchema = import_zod.z.enum([
55
55
  "createWallet",
56
56
  "createWithdrawal",
57
57
  "exportBalanceHistory",
58
+ "exportBalanceMany",
58
59
  "exportTokenMany",
59
60
  "exportTransferGroupMany",
60
61
  "exportTransferMany",
@@ -25,6 +25,7 @@ var createAccessTokenLimitedScopesSchema = z.enum([
25
25
  "createWallet",
26
26
  "createWithdrawal",
27
27
  "exportBalanceHistory",
28
+ "exportBalanceMany",
28
29
  "exportTokenMany",
29
30
  "exportTransferGroupMany",
30
31
  "exportTransferMany",
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/txs/export-balance-many/export-balance-many.enums.ts
17
+ var export_balance_many_enums_exports = {};
18
+ module.exports = __toCommonJS(export_balance_many_enums_exports);
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/txs/export-balance-many/export-balance-many.enums.ts
17
+ var export_balance_many_enums_exports = {};
18
+ module.exports = __toCommonJS(export_balance_many_enums_exports);
@@ -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/txs/export-balance-many/export-balance-many.schema.zod.ts
21
+ var export_balance_many_schema_zod_exports = {};
22
+ __export(export_balance_many_schema_zod_exports, {
23
+ exportBalanceManyDefaultSelect: () => exportBalanceManyDefaultSelect,
24
+ exportBalanceManyTxInputOptionsSchema: () => exportBalanceManyTxInputOptionsSchema,
25
+ exportBalanceManyTxInputSchema: () => exportBalanceManyTxInputSchema,
26
+ exportBalanceManyTxOutputSchema: () => exportBalanceManyTxOutputSchema
27
+ });
28
+ module.exports = __toCommonJS(export_balance_many_schema_zod_exports);
29
+ var import_find_balance_many_schema_zod = require("../find-balance-many/find-balance-many.schema.zod.browser.cjs");
30
+ var import_get_export_schema_zod = require("../get-export/get-export.schema.zod.browser.cjs");
31
+ var exportBalanceManyDefaultSelect = [
32
+ "token_foreign",
33
+ "wallet_foreign",
34
+ "pending_amount",
35
+ "pending_amount_to",
36
+ "pending_amount_from",
37
+ "finished_amount",
38
+ "available_balance",
39
+ "amount",
40
+ "updated_at"
41
+ ];
42
+ var exportBalanceManyTxInputOptionsSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputOptionsSchema;
43
+ var exportBalanceManyTxInputSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputSchema.extend({
44
+ options: exportBalanceManyTxInputOptionsSchema.optional()
45
+ }).describe("Input of exportBalanceMany");
46
+ var exportBalanceManyTxOutputSchema = import_get_export_schema_zod.getExportTxOutputSchema.describe(
47
+ "Output of exportBalanceMany"
48
+ );
@@ -0,0 +1,30 @@
1
+ // src/txs/export-balance-many/export-balance-many.schema.zod.ts
2
+ import {
3
+ findBalanceManyTxInputOptionsSchema,
4
+ findBalanceManyTxInputSchema
5
+ } from "../find-balance-many/find-balance-many.schema.zod.browser.js";
6
+ import { getExportTxOutputSchema } from "../get-export/get-export.schema.zod.browser.js";
7
+ var exportBalanceManyDefaultSelect = [
8
+ "token_foreign",
9
+ "wallet_foreign",
10
+ "pending_amount",
11
+ "pending_amount_to",
12
+ "pending_amount_from",
13
+ "finished_amount",
14
+ "available_balance",
15
+ "amount",
16
+ "updated_at"
17
+ ];
18
+ var exportBalanceManyTxInputOptionsSchema = findBalanceManyTxInputOptionsSchema;
19
+ var exportBalanceManyTxInputSchema = findBalanceManyTxInputSchema.extend({
20
+ options: exportBalanceManyTxInputOptionsSchema.optional()
21
+ }).describe("Input of exportBalanceMany");
22
+ var exportBalanceManyTxOutputSchema = getExportTxOutputSchema.describe(
23
+ "Output of exportBalanceMany"
24
+ );
25
+ export {
26
+ exportBalanceManyDefaultSelect,
27
+ exportBalanceManyTxInputOptionsSchema,
28
+ exportBalanceManyTxInputSchema,
29
+ exportBalanceManyTxOutputSchema
30
+ };
@@ -0,0 +1,55 @@
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/txs/export-balance-many/export-balance-many.schema.zod.ts
21
+ var export_balance_many_schema_zod_exports = {};
22
+ __export(export_balance_many_schema_zod_exports, {
23
+ exportBalanceManyDefaultSelect: () => exportBalanceManyDefaultSelect,
24
+ exportBalanceManyTxInputOptionsSchema: () => exportBalanceManyTxInputOptionsSchema,
25
+ exportBalanceManyTxInputSchema: () => exportBalanceManyTxInputSchema,
26
+ exportBalanceManyTxOutputSchema: () => exportBalanceManyTxOutputSchema
27
+ });
28
+ module.exports = __toCommonJS(export_balance_many_schema_zod_exports);
29
+ var import_find_balance_many_schema_zod = require("../find-balance-many/find-balance-many.schema.zod.cjs");
30
+ var import_get_export_schema_zod = require("../get-export/get-export.schema.zod.cjs");
31
+ var exportBalanceManyDefaultSelect = [
32
+ "token_foreign",
33
+ "wallet_foreign",
34
+ "pending_amount",
35
+ "pending_amount_to",
36
+ "pending_amount_from",
37
+ "finished_amount",
38
+ "available_balance",
39
+ "amount",
40
+ "updated_at"
41
+ ];
42
+ var exportBalanceManyTxInputOptionsSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputOptionsSchema;
43
+ var exportBalanceManyTxInputSchema = import_find_balance_many_schema_zod.findBalanceManyTxInputSchema.extend({
44
+ options: exportBalanceManyTxInputOptionsSchema.optional()
45
+ }).describe("Input of exportBalanceMany");
46
+ var exportBalanceManyTxOutputSchema = import_get_export_schema_zod.getExportTxOutputSchema.describe(
47
+ "Output of exportBalanceMany"
48
+ );
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ exportBalanceManyDefaultSelect,
52
+ exportBalanceManyTxInputOptionsSchema,
53
+ exportBalanceManyTxInputSchema,
54
+ exportBalanceManyTxOutputSchema
55
+ });
@@ -0,0 +1,30 @@
1
+ // src/txs/export-balance-many/export-balance-many.schema.zod.ts
2
+ import {
3
+ findBalanceManyTxInputOptionsSchema,
4
+ findBalanceManyTxInputSchema
5
+ } from "../find-balance-many/find-balance-many.schema.zod.js";
6
+ import { getExportTxOutputSchema } from "../get-export/get-export.schema.zod.js";
7
+ var exportBalanceManyDefaultSelect = [
8
+ "token_foreign",
9
+ "wallet_foreign",
10
+ "pending_amount",
11
+ "pending_amount_to",
12
+ "pending_amount_from",
13
+ "finished_amount",
14
+ "available_balance",
15
+ "amount",
16
+ "updated_at"
17
+ ];
18
+ var exportBalanceManyTxInputOptionsSchema = findBalanceManyTxInputOptionsSchema;
19
+ var exportBalanceManyTxInputSchema = findBalanceManyTxInputSchema.extend({
20
+ options: exportBalanceManyTxInputOptionsSchema.optional()
21
+ }).describe("Input of exportBalanceMany");
22
+ var exportBalanceManyTxOutputSchema = getExportTxOutputSchema.describe(
23
+ "Output of exportBalanceMany"
24
+ );
25
+ export {
26
+ exportBalanceManyDefaultSelect,
27
+ exportBalanceManyTxInputOptionsSchema,
28
+ exportBalanceManyTxInputSchema,
29
+ exportBalanceManyTxOutputSchema
30
+ };
@@ -59,7 +59,7 @@ var import_get_balance_schema_zod = require("../get-balance/get-balance.schema.z
59
59
  var balanceSelectSchema = import_get_balance_schema_zod.balanceOutputSchema.keyof();
60
60
  var findBalanceManyTxInputOptionsSchema = import_zod.z.object(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, import_consts.iTxGeneralOptions.shape), import_consts.iTxLimitingOptions.shape), import_consts.iTxMetadataOptions.shape), {
61
61
  order: import_consts.iTxOrderingInput.extend({
62
- field: import_transfer_log_schema_zod.transferLogTableSchema.keyof()
62
+ field: balanceSelectSchema
63
63
  }).array(),
64
64
  select: balanceSelectSchema.array(),
65
65
  deselect: balanceSelectSchema.array()
@@ -71,6 +71,9 @@ var balanceFilterObjectInputSchema = import_zod.z.object({
71
71
  type: import_transfer_schema_zod.transferTableTypeSchema,
72
72
  status: import_transfer_schema_zod.transferTableStatusSchema,
73
73
  amount: import_consts.stringNumberToNumber.describe("Balance amount"),
74
+ available_balance: import_consts.stringNumberToNumber.describe(
75
+ "Balance amount available"
76
+ ),
74
77
  pending_amount: import_consts.stringNumberToNumber.describe("Balance pending_amount"),
75
78
  finished_amount: import_consts.stringNumberToNumber.describe("Balance finished_amount"),
76
79
  metadata: import_consts2.DbFilterMetadataSchema
@@ -41,7 +41,7 @@ import { balanceOutputSchema } from "../get-balance/get-balance.schema.zod.brows
41
41
  var balanceSelectSchema = balanceOutputSchema.keyof();
42
42
  var findBalanceManyTxInputOptionsSchema = z.object(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, iTxGeneralOptions.shape), iTxLimitingOptions.shape), iTxMetadataOptions.shape), {
43
43
  order: iTxOrderingInput.extend({
44
- field: transferLogTableSchema.keyof()
44
+ field: balanceSelectSchema
45
45
  }).array(),
46
46
  select: balanceSelectSchema.array(),
47
47
  deselect: balanceSelectSchema.array()
@@ -53,6 +53,9 @@ var balanceFilterObjectInputSchema = z.object({
53
53
  type: transferTableTypeSchema,
54
54
  status: transferTableStatusSchema,
55
55
  amount: stringNumberToNumber.describe("Balance amount"),
56
+ available_balance: stringNumberToNumber.describe(
57
+ "Balance amount available"
58
+ ),
56
59
  pending_amount: stringNumberToNumber.describe("Balance pending_amount"),
57
60
  finished_amount: stringNumberToNumber.describe("Balance finished_amount"),
58
61
  metadata: DbFilterMetadataSchema
@@ -59,7 +59,7 @@ var import_get_balance_schema_zod = require("../get-balance/get-balance.schema.
59
59
  var balanceSelectSchema = import_get_balance_schema_zod.balanceOutputSchema.keyof();
60
60
  var findBalanceManyTxInputOptionsSchema = import_zod.z.object(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, import_consts.iTxGeneralOptions.shape), import_consts.iTxLimitingOptions.shape), import_consts.iTxMetadataOptions.shape), {
61
61
  order: import_consts.iTxOrderingInput.extend({
62
- field: import_transfer_log_schema_zod.transferLogTableSchema.keyof()
62
+ field: balanceSelectSchema
63
63
  }).array(),
64
64
  select: balanceSelectSchema.array(),
65
65
  deselect: balanceSelectSchema.array()
@@ -71,6 +71,9 @@ var balanceFilterObjectInputSchema = import_zod.z.object({
71
71
  type: import_transfer_schema_zod.transferTableTypeSchema,
72
72
  status: import_transfer_schema_zod.transferTableStatusSchema,
73
73
  amount: import_consts.stringNumberToNumber.describe("Balance amount"),
74
+ available_balance: import_consts.stringNumberToNumber.describe(
75
+ "Balance amount available"
76
+ ),
74
77
  pending_amount: import_consts.stringNumberToNumber.describe("Balance pending_amount"),
75
78
  finished_amount: import_consts.stringNumberToNumber.describe("Balance finished_amount"),
76
79
  metadata: import_consts2.DbFilterMetadataSchema
@@ -41,7 +41,7 @@ import { balanceOutputSchema } from "../get-balance/get-balance.schema.zod.js";
41
41
  var balanceSelectSchema = balanceOutputSchema.keyof();
42
42
  var findBalanceManyTxInputOptionsSchema = z.object(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, iTxGeneralOptions.shape), iTxLimitingOptions.shape), iTxMetadataOptions.shape), {
43
43
  order: iTxOrderingInput.extend({
44
- field: transferLogTableSchema.keyof()
44
+ field: balanceSelectSchema
45
45
  }).array(),
46
46
  select: balanceSelectSchema.array(),
47
47
  deselect: balanceSelectSchema.array()
@@ -53,6 +53,9 @@ var balanceFilterObjectInputSchema = z.object({
53
53
  type: transferTableTypeSchema,
54
54
  status: transferTableStatusSchema,
55
55
  amount: stringNumberToNumber.describe("Balance amount"),
56
+ available_balance: stringNumberToNumber.describe(
57
+ "Balance amount available"
58
+ ),
56
59
  pending_amount: stringNumberToNumber.describe("Balance pending_amount"),
57
60
  finished_amount: stringNumberToNumber.describe("Balance finished_amount"),
58
61
  metadata: DbFilterMetadataSchema
@@ -72,7 +72,9 @@ var balanceOutputSchema = import_transfer_log_schema_zod.transferLogTableSchema.
72
72
  latest_control_hash: true
73
73
  }).extend({
74
74
  token_foreign: import_token_schema_zod.tokenTableSchema.shape.foreign,
75
+ token_metadata: import_token_schema_zod.tokenTableSchema.shape.metadata,
75
76
  wallet_foreign: import_wallet_schema_zod.walletTableSchema.shape.foreign,
77
+ wallet_metadata: import_wallet_schema_zod.walletTableSchema.shape.metadata,
76
78
  amount: import_zod.z.number().describe("Current finished and pending balance sum"),
77
79
  updated_at: import_transfer_log_schema_zod.transferLogTableSchema.shape.created_at
78
80
  }).strict().partial().required({
@@ -44,7 +44,9 @@ var balanceOutputSchema = transferLogTableSchema.pick({
44
44
  latest_control_hash: true
45
45
  }).extend({
46
46
  token_foreign: tokenTableSchema.shape.foreign,
47
+ token_metadata: tokenTableSchema.shape.metadata,
47
48
  wallet_foreign: walletTableSchema.shape.foreign,
49
+ wallet_metadata: walletTableSchema.shape.metadata,
48
50
  amount: z.number().describe("Current finished and pending balance sum"),
49
51
  updated_at: transferLogTableSchema.shape.created_at
50
52
  }).strict().partial().required({
@@ -72,7 +72,9 @@ var balanceOutputSchema = import_transfer_log_schema_zod.transferLogTableSchema.
72
72
  latest_control_hash: true
73
73
  }).extend({
74
74
  token_foreign: import_token_schema_zod.tokenTableSchema.shape.foreign,
75
+ token_metadata: import_token_schema_zod.tokenTableSchema.shape.metadata,
75
76
  wallet_foreign: import_wallet_schema_zod.walletTableSchema.shape.foreign,
77
+ wallet_metadata: import_wallet_schema_zod.walletTableSchema.shape.metadata,
76
78
  amount: import_zod.z.number().describe("Current finished and pending balance sum"),
77
79
  updated_at: import_transfer_log_schema_zod.transferLogTableSchema.shape.created_at
78
80
  }).strict().partial().required({
@@ -44,7 +44,9 @@ var balanceOutputSchema = transferLogTableSchema.pick({
44
44
  latest_control_hash: true
45
45
  }).extend({
46
46
  token_foreign: tokenTableSchema.shape.foreign,
47
+ token_metadata: tokenTableSchema.shape.metadata,
47
48
  wallet_foreign: walletTableSchema.shape.foreign,
49
+ wallet_metadata: walletTableSchema.shape.metadata,
48
50
  amount: z.number().describe("Current finished and pending balance sum"),
49
51
  updated_at: transferLogTableSchema.shape.created_at
50
52
  }).strict().partial().required({
@@ -36,6 +36,7 @@ var exportTypeSchema = import_zod.z.enum([
36
36
  "transfer_groups",
37
37
  "tokens",
38
38
  "wallets",
39
+ "balances",
39
40
  "balance_history",
40
41
  "unknown"
41
42
  ]).describe("Type of the export");
@@ -7,6 +7,7 @@ var exportTypeSchema = z.enum([
7
7
  "transfer_groups",
8
8
  "tokens",
9
9
  "wallets",
10
+ "balances",
10
11
  "balance_history",
11
12
  "unknown"
12
13
  ]).describe("Type of the export");
@@ -36,6 +36,7 @@ var exportTypeSchema = import_zod.z.enum([
36
36
  "transfer_groups",
37
37
  "tokens",
38
38
  "wallets",
39
+ "balances",
39
40
  "balance_history",
40
41
  "unknown"
41
42
  ]).describe("Type of the export");
@@ -7,6 +7,7 @@ var exportTypeSchema = z.enum([
7
7
  "transfer_groups",
8
8
  "tokens",
9
9
  "wallets",
10
+ "balances",
10
11
  "balance_history",
11
12
  "unknown"
12
13
  ]).describe("Type of the export");
@@ -39,6 +39,7 @@ var import_create_transfer_many_schema_zod = require("./create-transfer-many/cre
39
39
  var import_create_wallet_schema_zod = require("./create-wallet/create-wallet.schema.zod.browser.cjs");
40
40
  var import_create_withdrawal_schema_zod = require("./create-withdrawal/create-withdrawal.schema.zod.browser.cjs");
41
41
  var import_export_balance_history_schema_zod = require("./export-balance-history/export-balance-history.schema.zod.browser.cjs");
42
+ var import_export_balance_many_schema_zod = require("./export-balance-many/export-balance-many.schema.zod.browser.cjs");
42
43
  var import_export_token_many_schema_zod = require("./export-token-many/export-token-many.schema.zod.browser.cjs");
43
44
  var import_export_transfer_group_many_schema_zod = require("./export-transfer-group-many/export-transfer-group-many.schema.zod.browser.cjs");
44
45
  var import_export_transfer_many_schema_zod = require("./export-transfer-many/export-transfer-many.schema.zod.browser.cjs");
@@ -93,6 +94,7 @@ var APIValidators = {
93
94
  createWallet: (0, import_validation.getValidator)(import_create_wallet_schema_zod.createWalletTxInputSchema).validateInputWOptions,
94
95
  createWithdrawal: (0, import_validation.getValidator)(import_create_withdrawal_schema_zod.createWithdrawalTxInputSchema).validateInputWOptions,
95
96
  exportBalanceHistory: (0, import_validation.getValidator)(import_export_balance_history_schema_zod.exportBalanceHistoryTxInputSchema).validateInputWOptions,
97
+ exportBalanceMany: (0, import_validation.getValidator)(import_export_balance_many_schema_zod.exportBalanceManyTxInputSchema).validateInputWOptions,
96
98
  exportTokenMany: (0, import_validation.getValidator)(import_export_token_many_schema_zod.exportTokenManyTxInputSchema).validateInputWOptions,
97
99
  exportTransferGroupMany: (0, import_validation.getValidator)(import_export_transfer_group_many_schema_zod.exportTransferGroupManyTxInputSchema).validateInputWOptions,
98
100
  exportTransferMany: (0, import_validation.getValidator)(import_export_transfer_many_schema_zod.exportTransferManyTxInputSchema).validateInputWOptions,
@@ -148,6 +150,7 @@ var APIFunctions = {
148
150
  createWallet: "createWallet",
149
151
  createWithdrawal: "createWithdrawal",
150
152
  exportBalanceHistory: "exportBalanceHistory",
153
+ exportBalanceMany: "exportBalanceMany",
151
154
  exportTokenMany: "exportTokenMany",
152
155
  exportTransferGroupMany: "exportTransferGroupMany",
153
156
  exportTransferMany: "exportTransferMany",
@@ -14,6 +14,7 @@ import { createTransferManyTxInputSchema } from "./create-transfer-many/create-t
14
14
  import { createWalletTxInputSchema } from "./create-wallet/create-wallet.schema.zod.browser.js";
15
15
  import { createWithdrawalTxInputSchema } from "./create-withdrawal/create-withdrawal.schema.zod.browser.js";
16
16
  import { exportBalanceHistoryTxInputSchema } from "./export-balance-history/export-balance-history.schema.zod.browser.js";
17
+ import { exportBalanceManyTxInputSchema } from "./export-balance-many/export-balance-many.schema.zod.browser.js";
17
18
  import { exportTokenManyTxInputSchema } from "./export-token-many/export-token-many.schema.zod.browser.js";
18
19
  import { exportTransferGroupManyTxInputSchema } from "./export-transfer-group-many/export-transfer-group-many.schema.zod.browser.js";
19
20
  import { exportTransferManyTxInputSchema } from "./export-transfer-many/export-transfer-many.schema.zod.browser.js";
@@ -68,6 +69,7 @@ var APIValidators = {
68
69
  createWallet: getValidator(createWalletTxInputSchema).validateInputWOptions,
69
70
  createWithdrawal: getValidator(createWithdrawalTxInputSchema).validateInputWOptions,
70
71
  exportBalanceHistory: getValidator(exportBalanceHistoryTxInputSchema).validateInputWOptions,
72
+ exportBalanceMany: getValidator(exportBalanceManyTxInputSchema).validateInputWOptions,
71
73
  exportTokenMany: getValidator(exportTokenManyTxInputSchema).validateInputWOptions,
72
74
  exportTransferGroupMany: getValidator(exportTransferGroupManyTxInputSchema).validateInputWOptions,
73
75
  exportTransferMany: getValidator(exportTransferManyTxInputSchema).validateInputWOptions,
@@ -123,6 +125,7 @@ var APIFunctions = {
123
125
  createWallet: "createWallet",
124
126
  createWithdrawal: "createWithdrawal",
125
127
  exportBalanceHistory: "exportBalanceHistory",
128
+ exportBalanceMany: "exportBalanceMany",
126
129
  exportTokenMany: "exportTokenMany",
127
130
  exportTransferGroupMany: "exportTransferGroupMany",
128
131
  exportTransferMany: "exportTransferMany",
@@ -39,6 +39,7 @@ var import_create_transfer_many_schema_zod = require("./create-transfer-many/cr
39
39
  var import_create_wallet_schema_zod = require("./create-wallet/create-wallet.schema.zod.cjs");
40
40
  var import_create_withdrawal_schema_zod = require("./create-withdrawal/create-withdrawal.schema.zod.cjs");
41
41
  var import_export_balance_history_schema_zod = require("./export-balance-history/export-balance-history.schema.zod.cjs");
42
+ var import_export_balance_many_schema_zod = require("./export-balance-many/export-balance-many.schema.zod.cjs");
42
43
  var import_export_token_many_schema_zod = require("./export-token-many/export-token-many.schema.zod.cjs");
43
44
  var import_export_transfer_group_many_schema_zod = require("./export-transfer-group-many/export-transfer-group-many.schema.zod.cjs");
44
45
  var import_export_transfer_many_schema_zod = require("./export-transfer-many/export-transfer-many.schema.zod.cjs");
@@ -93,6 +94,7 @@ var APIValidators = {
93
94
  createWallet: (0, import_validation.getValidator)(import_create_wallet_schema_zod.createWalletTxInputSchema).validateInputWOptions,
94
95
  createWithdrawal: (0, import_validation.getValidator)(import_create_withdrawal_schema_zod.createWithdrawalTxInputSchema).validateInputWOptions,
95
96
  exportBalanceHistory: (0, import_validation.getValidator)(import_export_balance_history_schema_zod.exportBalanceHistoryTxInputSchema).validateInputWOptions,
97
+ exportBalanceMany: (0, import_validation.getValidator)(import_export_balance_many_schema_zod.exportBalanceManyTxInputSchema).validateInputWOptions,
96
98
  exportTokenMany: (0, import_validation.getValidator)(import_export_token_many_schema_zod.exportTokenManyTxInputSchema).validateInputWOptions,
97
99
  exportTransferGroupMany: (0, import_validation.getValidator)(import_export_transfer_group_many_schema_zod.exportTransferGroupManyTxInputSchema).validateInputWOptions,
98
100
  exportTransferMany: (0, import_validation.getValidator)(import_export_transfer_many_schema_zod.exportTransferManyTxInputSchema).validateInputWOptions,
@@ -148,6 +150,7 @@ var APIFunctions = {
148
150
  createWallet: "createWallet",
149
151
  createWithdrawal: "createWithdrawal",
150
152
  exportBalanceHistory: "exportBalanceHistory",
153
+ exportBalanceMany: "exportBalanceMany",
151
154
  exportTokenMany: "exportTokenMany",
152
155
  exportTransferGroupMany: "exportTransferGroupMany",
153
156
  exportTransferMany: "exportTransferMany",
package/dist/txs/index.js CHANGED
@@ -14,6 +14,7 @@ import { createTransferManyTxInputSchema } from "./create-transfer-many/create-t
14
14
  import { createWalletTxInputSchema } from "./create-wallet/create-wallet.schema.zod.js";
15
15
  import { createWithdrawalTxInputSchema } from "./create-withdrawal/create-withdrawal.schema.zod.js";
16
16
  import { exportBalanceHistoryTxInputSchema } from "./export-balance-history/export-balance-history.schema.zod.js";
17
+ import { exportBalanceManyTxInputSchema } from "./export-balance-many/export-balance-many.schema.zod.js";
17
18
  import { exportTokenManyTxInputSchema } from "./export-token-many/export-token-many.schema.zod.js";
18
19
  import { exportTransferGroupManyTxInputSchema } from "./export-transfer-group-many/export-transfer-group-many.schema.zod.js";
19
20
  import { exportTransferManyTxInputSchema } from "./export-transfer-many/export-transfer-many.schema.zod.js";
@@ -68,6 +69,7 @@ var APIValidators = {
68
69
  createWallet: getValidator(createWalletTxInputSchema).validateInputWOptions,
69
70
  createWithdrawal: getValidator(createWithdrawalTxInputSchema).validateInputWOptions,
70
71
  exportBalanceHistory: getValidator(exportBalanceHistoryTxInputSchema).validateInputWOptions,
72
+ exportBalanceMany: getValidator(exportBalanceManyTxInputSchema).validateInputWOptions,
71
73
  exportTokenMany: getValidator(exportTokenManyTxInputSchema).validateInputWOptions,
72
74
  exportTransferGroupMany: getValidator(exportTransferGroupManyTxInputSchema).validateInputWOptions,
73
75
  exportTransferMany: getValidator(exportTransferManyTxInputSchema).validateInputWOptions,
@@ -123,6 +125,7 @@ var APIFunctions = {
123
125
  createWallet: "createWallet",
124
126
  createWithdrawal: "createWithdrawal",
125
127
  exportBalanceHistory: "exportBalanceHistory",
128
+ exportBalanceMany: "exportBalanceMany",
126
129
  exportTokenMany: "exportTokenMany",
127
130
  exportTransferGroupMany: "exportTransferGroupMany",
128
131
  exportTransferMany: "exportTransferMany",
@@ -31,6 +31,7 @@ __reExport(tx_types_exports, require("./create-transfer-many/create-transfer-man
31
31
  __reExport(tx_types_exports, require("./create-wallet/create-wallet.enums.browser.cjs"), module.exports);
32
32
  __reExport(tx_types_exports, require("./create-withdrawal/create-withdrawal.enums.browser.cjs"), module.exports);
33
33
  __reExport(tx_types_exports, require("./export-balance-history/export-balance-history.enums.browser.cjs"), module.exports);
34
+ __reExport(tx_types_exports, require("./export-balance-many/export-balance-many.enums.browser.cjs"), module.exports);
34
35
  __reExport(tx_types_exports, require("./export-token-many/export-token-many.enums.browser.cjs"), module.exports);
35
36
  __reExport(tx_types_exports, require("./export-transfer-group-many/export-transfer-group-many.enums.browser.cjs"), module.exports);
36
37
  __reExport(tx_types_exports, require("./export-transfer-many/export-transfer-many.enums.browser.cjs"), module.exports);
@@ -13,6 +13,7 @@ export * from "./create-transfer-many/create-transfer-many.enums.browser.js";
13
13
  export * from "./create-wallet/create-wallet.enums.browser.js";
14
14
  export * from "./create-withdrawal/create-withdrawal.enums.browser.js";
15
15
  export * from "./export-balance-history/export-balance-history.enums.browser.js";
16
+ export * from "./export-balance-many/export-balance-many.enums.browser.js";
16
17
  export * from "./export-token-many/export-token-many.enums.browser.js";
17
18
  export * from "./export-transfer-group-many/export-transfer-group-many.enums.browser.js";
18
19
  export * from "./export-transfer-many/export-transfer-many.enums.browser.js";
@@ -31,6 +31,7 @@ __reExport(tx_types_exports, require("./create-transfer-many/create-transfer-ma
31
31
  __reExport(tx_types_exports, require("./create-wallet/create-wallet.enums.cjs"), module.exports);
32
32
  __reExport(tx_types_exports, require("./create-withdrawal/create-withdrawal.enums.cjs"), module.exports);
33
33
  __reExport(tx_types_exports, require("./export-balance-history/export-balance-history.enums.cjs"), module.exports);
34
+ __reExport(tx_types_exports, require("./export-balance-many/export-balance-many.enums.cjs"), module.exports);
34
35
  __reExport(tx_types_exports, require("./export-token-many/export-token-many.enums.cjs"), module.exports);
35
36
  __reExport(tx_types_exports, require("./export-transfer-group-many/export-transfer-group-many.enums.cjs"), module.exports);
36
37
  __reExport(tx_types_exports, require("./export-transfer-many/export-transfer-many.enums.cjs"), module.exports);
@@ -86,6 +87,7 @@ __reExport(tx_types_exports, require("./update-wallet/update-wallet.enums.cjs")
86
87
  ... require("./create-wallet/create-wallet.enums.cjs"),
87
88
  ... require("./create-withdrawal/create-withdrawal.enums.cjs"),
88
89
  ... require("./export-balance-history/export-balance-history.enums.cjs"),
90
+ ... require("./export-balance-many/export-balance-many.enums.cjs"),
89
91
  ... require("./export-token-many/export-token-many.enums.cjs"),
90
92
  ... require("./export-transfer-group-many/export-transfer-group-many.enums.cjs"),
91
93
  ... require("./export-transfer-many/export-transfer-many.enums.cjs"),
@@ -13,6 +13,7 @@ export * from "./create-transfer-many/create-transfer-many.enums.js";
13
13
  export * from "./create-wallet/create-wallet.enums.js";
14
14
  export * from "./create-withdrawal/create-withdrawal.enums.js";
15
15
  export * from "./export-balance-history/export-balance-history.enums.js";
16
+ export * from "./export-balance-many/export-balance-many.enums.js";
16
17
  export * from "./export-token-many/export-token-many.enums.js";
17
18
  export * from "./export-transfer-group-many/export-transfer-group-many.enums.js";
18
19
  export * from "./export-transfer-many/export-transfer-many.enums.js";