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
@@ -617,6 +617,21 @@ var BaseClient = class {
617
617
  const inputCopy = import_validator.Validator.exportBalanceHistoryTxInput.validateInputWOptions(input);
618
618
  return this._sendRaw("exportBalanceHistory", inputCopy);
619
619
  }
620
+ /**
621
+ *
622
+ * @param {ExportBalanceManyTxInput} input
623
+ * @returns {StreamPromise<ExportBalanceManyTxOutput>}
624
+ *
625
+ */
626
+ exportBalanceMany(input) {
627
+ const inputCopy = import_validator.Validator.exportBalanceManyTxInput.validateInputWOptions(
628
+ input != null ? input : {}
629
+ );
630
+ return this._sendRaw(
631
+ "exportBalanceMany",
632
+ inputCopy
633
+ );
634
+ }
620
635
  /**
621
636
  *
622
637
  * @param {ExportTokenManyTxInput} input
@@ -598,6 +598,21 @@ var BaseClient = class {
598
598
  const inputCopy = Validator.exportBalanceHistoryTxInput.validateInputWOptions(input);
599
599
  return this._sendRaw("exportBalanceHistory", inputCopy);
600
600
  }
601
+ /**
602
+ *
603
+ * @param {ExportBalanceManyTxInput} input
604
+ * @returns {StreamPromise<ExportBalanceManyTxOutput>}
605
+ *
606
+ */
607
+ exportBalanceMany(input) {
608
+ const inputCopy = Validator.exportBalanceManyTxInput.validateInputWOptions(
609
+ input != null ? input : {}
610
+ );
611
+ return this._sendRaw(
612
+ "exportBalanceMany",
613
+ inputCopy
614
+ );
615
+ }
601
616
  /**
602
617
  *
603
618
  * @param {ExportTokenManyTxInput} input
@@ -617,6 +617,21 @@ var BaseClient = class {
617
617
  const inputCopy = import_validator.Validator.exportBalanceHistoryTxInput.validateInputWOptions(input);
618
618
  return this._sendRaw("exportBalanceHistory", inputCopy);
619
619
  }
620
+ /**
621
+ *
622
+ * @param {ExportBalanceManyTxInput} input
623
+ * @returns {StreamPromise<ExportBalanceManyTxOutput>}
624
+ *
625
+ */
626
+ exportBalanceMany(input) {
627
+ const inputCopy = import_validator.Validator.exportBalanceManyTxInput.validateInputWOptions(
628
+ input != null ? input : {}
629
+ );
630
+ return this._sendRaw(
631
+ "exportBalanceMany",
632
+ inputCopy
633
+ );
634
+ }
620
635
  /**
621
636
  *
622
637
  * @param {ExportTokenManyTxInput} input
@@ -598,6 +598,21 @@ var BaseClient = class {
598
598
  const inputCopy = Validator.exportBalanceHistoryTxInput.validateInputWOptions(input);
599
599
  return this._sendRaw("exportBalanceHistory", inputCopy);
600
600
  }
601
+ /**
602
+ *
603
+ * @param {ExportBalanceManyTxInput} input
604
+ * @returns {StreamPromise<ExportBalanceManyTxOutput>}
605
+ *
606
+ */
607
+ exportBalanceMany(input) {
608
+ const inputCopy = Validator.exportBalanceManyTxInput.validateInputWOptions(
609
+ input != null ? input : {}
610
+ );
611
+ return this._sendRaw(
612
+ "exportBalanceMany",
613
+ inputCopy
614
+ );
615
+ }
601
616
  /**
602
617
  *
603
618
  * @param {ExportTokenManyTxInput} input
@@ -75,6 +75,7 @@ var import_create_transfers = require("./fns/create-transfers/create-transfers.b
75
75
  var import_create_wallet = require("./fns/create-wallet/create-wallet.browser.cjs");
76
76
  var import_create_withdrawal = require("./fns/create-withdrawal/create-withdrawal.browser.cjs");
77
77
  var import_export_balance_history = require("./fns/export-balance-history/export-balance-history.browser.cjs");
78
+ var import_export_balances = require("./fns/export-balances/export-balances.browser.cjs");
78
79
  var import_export_tokens = require("./fns/export-tokens/export-tokens.browser.cjs");
79
80
  var import_export_transfer_groups = require("./fns/export-transfer-groups/export-transfer-groups.browser.cjs");
80
81
  var import_export_transfers = require("./fns/export-transfers/export-transfers.browser.cjs");
@@ -940,6 +941,31 @@ var Client = class {
940
941
  exportBalanceHistory(input, options) {
941
942
  return (0, import_export_balance_history.exportBalanceHistory)({ client: this }, input, options);
942
943
  }
944
+ /**
945
+ *
946
+ * Search for Balances using either a simple filter or queryBuilder and save the results to an Export
947
+ *
948
+ *
949
+ * ```javascript
950
+ *
951
+ * const result = await wapiClient
952
+ * .exportBalances()
953
+ * // .whereIn('wallet', ['test-1', 'test-2'])
954
+ * .where('wallet', 'like', 'test-%')
955
+ * .limit(5)
956
+ * .offset(0)
957
+ * .orderBy('available_balance')
958
+ * .select('wallet_foreign', 'token_foreign', 'available_balance')
959
+ * .options({
960
+ * tracking_id: 'hello',
961
+ * });
962
+ *
963
+ * ```
964
+ *
965
+ */
966
+ exportBalances(input, options) {
967
+ return (0, import_export_balances.exportBalances)({ client: this }, input, options);
968
+ }
943
969
  /**
944
970
  *
945
971
  * Search for Tokens using either a simple filter or queryBuilder and save the results to an Export
@@ -1086,7 +1112,7 @@ var Client = class {
1086
1112
  * })
1087
1113
  * .limit(5)
1088
1114
  * .offset(0)
1089
- * .orderBy('amount', 'desc')
1115
+ * .orderBy('wallet_foreign', 'desc')
1090
1116
  * .options({
1091
1117
  * tracking_id: 'hello',
1092
1118
  * return_metadata_total: true,
@@ -55,6 +55,7 @@ import { createTransfers } from "./fns/create-transfers/create-transfers.browser
55
55
  import { createWallet } from "./fns/create-wallet/create-wallet.browser.js";
56
56
  import { createWithdrawal } from "./fns/create-withdrawal/create-withdrawal.browser.js";
57
57
  import { exportBalanceHistory } from "./fns/export-balance-history/export-balance-history.browser.js";
58
+ import { exportBalances } from "./fns/export-balances/export-balances.browser.js";
58
59
  import { exportTokens } from "./fns/export-tokens/export-tokens.browser.js";
59
60
  import { exportTransferGroups } from "./fns/export-transfer-groups/export-transfer-groups.browser.js";
60
61
  import { exportTransfers } from "./fns/export-transfers/export-transfers.browser.js";
@@ -920,6 +921,31 @@ var Client = class {
920
921
  exportBalanceHistory(input, options) {
921
922
  return exportBalanceHistory({ client: this }, input, options);
922
923
  }
924
+ /**
925
+ *
926
+ * Search for Balances using either a simple filter or queryBuilder and save the results to an Export
927
+ *
928
+ *
929
+ * ```javascript
930
+ *
931
+ * const result = await wapiClient
932
+ * .exportBalances()
933
+ * // .whereIn('wallet', ['test-1', 'test-2'])
934
+ * .where('wallet', 'like', 'test-%')
935
+ * .limit(5)
936
+ * .offset(0)
937
+ * .orderBy('available_balance')
938
+ * .select('wallet_foreign', 'token_foreign', 'available_balance')
939
+ * .options({
940
+ * tracking_id: 'hello',
941
+ * });
942
+ *
943
+ * ```
944
+ *
945
+ */
946
+ exportBalances(input, options) {
947
+ return exportBalances({ client: this }, input, options);
948
+ }
923
949
  /**
924
950
  *
925
951
  * Search for Tokens using either a simple filter or queryBuilder and save the results to an Export
@@ -1066,7 +1092,7 @@ var Client = class {
1066
1092
  * })
1067
1093
  * .limit(5)
1068
1094
  * .offset(0)
1069
- * .orderBy('amount', 'desc')
1095
+ * .orderBy('wallet_foreign', 'desc')
1070
1096
  * .options({
1071
1097
  * tracking_id: 'hello',
1072
1098
  * return_metadata_total: true,
package/dist/client.cjs CHANGED
@@ -75,6 +75,7 @@ var import_create_transfers = require("./fns/create-transfers/create-transfers.
75
75
  var import_create_wallet = require("./fns/create-wallet/create-wallet.cjs");
76
76
  var import_create_withdrawal = require("./fns/create-withdrawal/create-withdrawal.cjs");
77
77
  var import_export_balance_history = require("./fns/export-balance-history/export-balance-history.cjs");
78
+ var import_export_balances = require("./fns/export-balances/export-balances.cjs");
78
79
  var import_export_tokens = require("./fns/export-tokens/export-tokens.cjs");
79
80
  var import_export_transfer_groups = require("./fns/export-transfer-groups/export-transfer-groups.cjs");
80
81
  var import_export_transfers = require("./fns/export-transfers/export-transfers.cjs");
@@ -940,6 +941,31 @@ var Client = class {
940
941
  exportBalanceHistory(input, options) {
941
942
  return (0, import_export_balance_history.exportBalanceHistory)({ client: this }, input, options);
942
943
  }
944
+ /**
945
+ *
946
+ * Search for Balances using either a simple filter or queryBuilder and save the results to an Export
947
+ *
948
+ *
949
+ * ```javascript
950
+ *
951
+ * const result = await wapiClient
952
+ * .exportBalances()
953
+ * // .whereIn('wallet', ['test-1', 'test-2'])
954
+ * .where('wallet', 'like', 'test-%')
955
+ * .limit(5)
956
+ * .offset(0)
957
+ * .orderBy('available_balance')
958
+ * .select('wallet_foreign', 'token_foreign', 'available_balance')
959
+ * .options({
960
+ * tracking_id: 'hello',
961
+ * });
962
+ *
963
+ * ```
964
+ *
965
+ */
966
+ exportBalances(input, options) {
967
+ return (0, import_export_balances.exportBalances)({ client: this }, input, options);
968
+ }
943
969
  /**
944
970
  *
945
971
  * Search for Tokens using either a simple filter or queryBuilder and save the results to an Export
@@ -1086,7 +1112,7 @@ var Client = class {
1086
1112
  * })
1087
1113
  * .limit(5)
1088
1114
  * .offset(0)
1089
- * .orderBy('amount', 'desc')
1115
+ * .orderBy('wallet_foreign', 'desc')
1090
1116
  * .options({
1091
1117
  * tracking_id: 'hello',
1092
1118
  * return_metadata_total: true,
package/dist/client.js CHANGED
@@ -55,6 +55,7 @@ import { createTransfers } from "./fns/create-transfers/create-transfers.js";
55
55
  import { createWallet } from "./fns/create-wallet/create-wallet.js";
56
56
  import { createWithdrawal } from "./fns/create-withdrawal/create-withdrawal.js";
57
57
  import { exportBalanceHistory } from "./fns/export-balance-history/export-balance-history.js";
58
+ import { exportBalances } from "./fns/export-balances/export-balances.js";
58
59
  import { exportTokens } from "./fns/export-tokens/export-tokens.js";
59
60
  import { exportTransferGroups } from "./fns/export-transfer-groups/export-transfer-groups.js";
60
61
  import { exportTransfers } from "./fns/export-transfers/export-transfers.js";
@@ -920,6 +921,31 @@ var Client = class {
920
921
  exportBalanceHistory(input, options) {
921
922
  return exportBalanceHistory({ client: this }, input, options);
922
923
  }
924
+ /**
925
+ *
926
+ * Search for Balances using either a simple filter or queryBuilder and save the results to an Export
927
+ *
928
+ *
929
+ * ```javascript
930
+ *
931
+ * const result = await wapiClient
932
+ * .exportBalances()
933
+ * // .whereIn('wallet', ['test-1', 'test-2'])
934
+ * .where('wallet', 'like', 'test-%')
935
+ * .limit(5)
936
+ * .offset(0)
937
+ * .orderBy('available_balance')
938
+ * .select('wallet_foreign', 'token_foreign', 'available_balance')
939
+ * .options({
940
+ * tracking_id: 'hello',
941
+ * });
942
+ *
943
+ * ```
944
+ *
945
+ */
946
+ exportBalances(input, options) {
947
+ return exportBalances({ client: this }, input, options);
948
+ }
923
949
  /**
924
950
  *
925
951
  * Search for Tokens using either a simple filter or queryBuilder and save the results to an Export
@@ -1066,7 +1092,7 @@ var Client = class {
1066
1092
  * })
1067
1093
  * .limit(5)
1068
1094
  * .offset(0)
1069
- * .orderBy('amount', 'desc')
1095
+ * .orderBy('wallet_foreign', 'desc')
1070
1096
  * .options({
1071
1097
  * tracking_id: 'hello',
1072
1098
  * return_metadata_total: true,
@@ -37,7 +37,7 @@ var iFnFindOptionsExtraSchema = import_zod.z.object({
37
37
  var iFnFindOptionsSchema = import_consts2.iTxLimitingOptions.merge(import_consts.iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
38
38
  var allowedStringPositiveNumericSchema = import_zod.z.union([
39
39
  import_zod.z.number().positive(),
40
- import_zod.z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
40
+ import_zod.z.string().regex(/^((0)|(0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
41
41
  ]);
42
42
  var allowedStringIntSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number().int()]);
43
43
  var allowedStringNumberSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number()]);
@@ -8,7 +8,7 @@ var iFnFindOptionsExtraSchema = z.object({
8
8
  var iFnFindOptionsSchema = iTxLimitingOptions.merge(iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
9
9
  var allowedStringPositiveNumericSchema = z.union([
10
10
  z.number().positive(),
11
- z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
11
+ z.string().regex(/^((0)|(0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
12
12
  ]);
13
13
  var allowedStringIntSchema = z.union([z.string(), z.number().int()]);
14
14
  var allowedStringNumberSchema = z.union([z.string(), z.number()]);
@@ -37,7 +37,7 @@ var iFnFindOptionsExtraSchema = import_zod.z.object({
37
37
  var iFnFindOptionsSchema = import_consts2.iTxLimitingOptions.merge(import_consts.iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
38
38
  var allowedStringPositiveNumericSchema = import_zod.z.union([
39
39
  import_zod.z.number().positive(),
40
- import_zod.z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
40
+ import_zod.z.string().regex(/^((0)|(0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
41
41
  ]);
42
42
  var allowedStringIntSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number().int()]);
43
43
  var allowedStringNumberSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.number()]);
@@ -8,7 +8,7 @@ var iFnFindOptionsExtraSchema = z.object({
8
8
  var iFnFindOptionsSchema = iTxLimitingOptions.merge(iTxOrderingOptions).merge(iFnFindOptionsExtraSchema).describe("extended find options for client functions");
9
9
  var allowedStringPositiveNumericSchema = z.union([
10
10
  z.number().positive(),
11
- z.string().regex(/^((0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
11
+ z.string().regex(/^((0)|(0\.\d+)|([1-9]\d*(\.\d+){0,1}))$/, "invalid number")
12
12
  ]);
13
13
  var allowedStringIntSchema = z.union([z.string(), z.number().int()]);
14
14
  var allowedStringNumberSchema = z.union([z.string(), z.number()]);
@@ -0,0 +1,49 @@
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.ts
21
+ var export_balances_exports = {};
22
+ __export(export_balances_exports, {
23
+ exportBalances: () => exportBalances
24
+ });
25
+ module.exports = __toCommonJS(export_balances_exports);
26
+ var import_export_balances_schema_zod = require("./export-balances.schema.zod.browser.cjs");
27
+ var import_find_query_builder = require("../../lib/query-builder/find-query-builder.browser.cjs");
28
+ var import_find_balances_schema_zod = require("../find-balances/find-balances.schema.zod.browser.cjs");
29
+ var import_find_balance_many_schema_zod = require("../../txs/find-balance-many/find-balance-many.schema.zod.browser.cjs");
30
+ var import_utils = require("../../lib/utils.browser.cjs");
31
+ function exportBalances(options, input, fnOptions) {
32
+ const { client } = options;
33
+ const $query = new import_find_query_builder.FindQueryBuilder({
34
+ start(query) {
35
+ return client.api.exportBalanceMany({
36
+ balance: query.filter,
37
+ options: query.options
38
+ });
39
+ },
40
+ schemaBasic: import_find_balances_schema_zod.findBalancesInputSchema,
41
+ schema: import_find_balance_many_schema_zod.balanceFilterFullInputSchema,
42
+ optionsSchema: import_export_balances_schema_zod.exportBalancesFnOptionsSchema
43
+ });
44
+ if (input) {
45
+ const { filter, options: options2 } = (0, import_utils.mergeFnOptions)(input, fnOptions);
46
+ return $query.where(filter).options(options2);
47
+ }
48
+ return $query;
49
+ }
@@ -0,0 +1,28 @@
1
+ // src/fns/export-balances/export-balances.ts
2
+ import { exportBalancesFnOptionsSchema } from "./export-balances.schema.zod.browser.js";
3
+ import { FindQueryBuilder } from "../../lib/query-builder/find-query-builder.browser.js";
4
+ import { findBalancesInputSchema } from "../find-balances/find-balances.schema.zod.browser.js";
5
+ import { balanceFilterFullInputSchema } from "../../txs/find-balance-many/find-balance-many.schema.zod.browser.js";
6
+ import { mergeFnOptions } from "../../lib/utils.browser.js";
7
+ function exportBalances(options, input, fnOptions) {
8
+ const { client } = options;
9
+ const $query = new FindQueryBuilder({
10
+ start(query) {
11
+ return client.api.exportBalanceMany({
12
+ balance: query.filter,
13
+ options: query.options
14
+ });
15
+ },
16
+ schemaBasic: findBalancesInputSchema,
17
+ schema: balanceFilterFullInputSchema,
18
+ optionsSchema: exportBalancesFnOptionsSchema
19
+ });
20
+ if (input) {
21
+ const { filter, options: options2 } = mergeFnOptions(input, fnOptions);
22
+ return $query.where(filter).options(options2);
23
+ }
24
+ return $query;
25
+ }
26
+ export {
27
+ exportBalances
28
+ };
@@ -0,0 +1,53 @@
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.ts
21
+ var export_balances_exports = {};
22
+ __export(export_balances_exports, {
23
+ exportBalances: () => exportBalances
24
+ });
25
+ module.exports = __toCommonJS(export_balances_exports);
26
+ var import_export_balances_schema_zod = require("./export-balances.schema.zod.cjs");
27
+ var import_find_query_builder = require("../../lib/query-builder/find-query-builder.cjs");
28
+ var import_find_balances_schema_zod = require("../find-balances/find-balances.schema.zod.cjs");
29
+ var import_find_balance_many_schema_zod = require("../../txs/find-balance-many/find-balance-many.schema.zod.cjs");
30
+ var import_utils = require("../../lib/utils.cjs");
31
+ function exportBalances(options, input, fnOptions) {
32
+ const { client } = options;
33
+ const $query = new import_find_query_builder.FindQueryBuilder({
34
+ start(query) {
35
+ return client.api.exportBalanceMany({
36
+ balance: query.filter,
37
+ options: query.options
38
+ });
39
+ },
40
+ schemaBasic: import_find_balances_schema_zod.findBalancesInputSchema,
41
+ schema: import_find_balance_many_schema_zod.balanceFilterFullInputSchema,
42
+ optionsSchema: import_export_balances_schema_zod.exportBalancesFnOptionsSchema
43
+ });
44
+ if (input) {
45
+ const { filter, options: options2 } = (0, import_utils.mergeFnOptions)(input, fnOptions);
46
+ return $query.where(filter).options(options2);
47
+ }
48
+ return $query;
49
+ }
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ exportBalances
53
+ });
@@ -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/fns/export-balances/export-balances.enums.ts
17
+ var export_balances_enums_exports = {};
18
+ module.exports = __toCommonJS(export_balances_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/fns/export-balances/export-balances.enums.ts
17
+ var export_balances_enums_exports = {};
18
+ module.exports = __toCommonJS(export_balances_enums_exports);
@@ -0,0 +1,28 @@
1
+ // src/fns/export-balances/export-balances.ts
2
+ import { exportBalancesFnOptionsSchema } from "./export-balances.schema.zod.js";
3
+ import { FindQueryBuilder } from "../../lib/query-builder/find-query-builder.js";
4
+ import { findBalancesInputSchema } from "../find-balances/find-balances.schema.zod.js";
5
+ import { balanceFilterFullInputSchema } from "../../txs/find-balance-many/find-balance-many.schema.zod.js";
6
+ import { mergeFnOptions } from "../../lib/utils.js";
7
+ function exportBalances(options, input, fnOptions) {
8
+ const { client } = options;
9
+ const $query = new FindQueryBuilder({
10
+ start(query) {
11
+ return client.api.exportBalanceMany({
12
+ balance: query.filter,
13
+ options: query.options
14
+ });
15
+ },
16
+ schemaBasic: findBalancesInputSchema,
17
+ schema: balanceFilterFullInputSchema,
18
+ optionsSchema: exportBalancesFnOptionsSchema
19
+ });
20
+ if (input) {
21
+ const { filter, options: options2 } = mergeFnOptions(input, fnOptions);
22
+ return $query.where(filter).options(options2);
23
+ }
24
+ return $query;
25
+ }
26
+ export {
27
+ exportBalances
28
+ };
@@ -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
+ });