wapi-client 0.17.18 → 0.18.0-beta.1
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 +41 -0
- package/dist/api/base-client.browser.js +41 -0
- package/dist/api/base-client.cjs +41 -0
- package/dist/api/base-client.js +41 -0
- package/dist/client.browser.cjs +15 -0
- package/dist/client.browser.js +15 -0
- package/dist/client.cjs +15 -0
- package/dist/client.js +15 -0
- package/dist/db/consts.browser.cjs +26 -2
- package/dist/db/consts.browser.js +26 -2
- package/dist/db/consts.cjs +29 -3
- package/dist/db/consts.js +26 -2
- package/dist/fns/create-deposit/create-deposit.schema.zod.browser.cjs +1 -1
- package/dist/fns/create-deposit/create-deposit.schema.zod.browser.js +1 -1
- package/dist/fns/create-deposit/create-deposit.schema.zod.cjs +1 -1
- package/dist/fns/create-deposit/create-deposit.schema.zod.js +1 -1
- package/dist/fns/create-index/create-index.browser.cjs +51 -0
- package/dist/fns/create-index/create-index.browser.js +32 -0
- package/dist/fns/create-index/create-index.cjs +55 -0
- package/dist/fns/create-index/create-index.enums.browser.cjs +18 -0
- package/dist/fns/create-index/create-index.enums.browser.js +0 -0
- package/dist/fns/create-index/create-index.enums.cjs +18 -0
- package/dist/fns/create-index/create-index.enums.js +0 -0
- package/dist/fns/create-index/create-index.js +32 -0
- package/dist/fns/create-index/create-index.schema.zod.browser.cjs +41 -0
- package/dist/fns/create-index/create-index.schema.zod.browser.js +24 -0
- package/dist/fns/create-index/create-index.schema.zod.cjs +49 -0
- package/dist/fns/create-index/create-index.schema.zod.js +24 -0
- package/dist/fns/create-transfer/create-transfer.schema.zod.browser.cjs +1 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.browser.js +1 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.cjs +1 -1
- package/dist/fns/create-transfer/create-transfer.schema.zod.js +1 -1
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.browser.cjs +1 -1
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.browser.js +1 -1
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.cjs +1 -1
- package/dist/fns/create-withdrawal/create-withdrawal.schema.zod.js +1 -1
- package/dist/fns/drop-index/drop-index.browser.cjs +51 -0
- package/dist/fns/drop-index/drop-index.browser.js +32 -0
- package/dist/fns/drop-index/drop-index.cjs +55 -0
- package/dist/fns/drop-index/drop-index.enums.browser.cjs +18 -0
- package/dist/fns/drop-index/drop-index.enums.browser.js +0 -0
- package/dist/fns/drop-index/drop-index.enums.cjs +18 -0
- package/dist/fns/drop-index/drop-index.enums.js +0 -0
- package/dist/fns/drop-index/drop-index.js +32 -0
- package/dist/fns/drop-index/drop-index.schema.zod.browser.cjs +41 -0
- package/dist/fns/drop-index/drop-index.schema.zod.browser.js +24 -0
- package/dist/fns/drop-index/drop-index.schema.zod.cjs +49 -0
- package/dist/fns/drop-index/drop-index.schema.zod.js +24 -0
- package/dist/fns/find-balances/find-balances.browser.cjs +9 -1
- package/dist/fns/find-balances/find-balances.browser.js +9 -1
- package/dist/fns/find-balances/find-balances.cjs +9 -1
- package/dist/fns/find-balances/find-balances.js +9 -1
- package/dist/fns/find-indexes/find-indexes.browser.cjs +51 -0
- package/dist/fns/find-indexes/find-indexes.browser.js +32 -0
- package/dist/fns/find-indexes/find-indexes.cjs +55 -0
- package/dist/fns/find-indexes/find-indexes.enums.browser.cjs +18 -0
- package/dist/fns/find-indexes/find-indexes.enums.browser.js +0 -0
- package/dist/fns/find-indexes/find-indexes.enums.cjs +18 -0
- package/dist/fns/find-indexes/find-indexes.enums.js +0 -0
- package/dist/fns/find-indexes/find-indexes.js +32 -0
- package/dist/fns/find-indexes/find-indexes.schema.zod.browser.cjs +41 -0
- package/dist/fns/find-indexes/find-indexes.schema.zod.browser.js +24 -0
- package/dist/fns/find-indexes/find-indexes.schema.zod.cjs +49 -0
- package/dist/fns/find-indexes/find-indexes.schema.zod.js +24 -0
- package/dist/fns/find-transfers/find-transfers.browser.cjs +4 -1
- package/dist/fns/find-transfers/find-transfers.browser.js +4 -1
- package/dist/fns/find-transfers/find-transfers.cjs +4 -1
- package/dist/fns/find-transfers/find-transfers.js +4 -1
- package/dist/fns/fn-types.browser.cjs +3 -0
- package/dist/fns/fn-types.browser.js +3 -0
- package/dist/fns/fn-types.cjs +6 -0
- package/dist/fns/fn-types.js +3 -0
- package/dist/fns/get-balance/get-balance.schema.zod.browser.cjs +1 -1
- package/dist/fns/get-balance/get-balance.schema.zod.browser.js +1 -1
- package/dist/fns/get-balance/get-balance.schema.zod.cjs +1 -1
- package/dist/fns/get-balance/get-balance.schema.zod.js +1 -1
- package/dist/lib/env.browser.cjs +1 -1
- package/dist/lib/env.browser.js +1 -1
- package/dist/lib/env.cjs +1 -1
- package/dist/lib/env.js +1 -1
- package/dist/lib/query-builder/aggregate-query-builder.browser.cjs +0 -193
- package/dist/lib/query-builder/aggregate-query-builder.browser.js +1 -196
- package/dist/lib/query-builder/aggregate-query-builder.cjs +0 -193
- package/dist/lib/query-builder/aggregate-query-builder.js +1 -196
- package/dist/lib/query-builder/find-query-builder.browser.cjs +0 -193
- package/dist/lib/query-builder/find-query-builder.browser.js +1 -196
- package/dist/lib/query-builder/find-query-builder.cjs +0 -193
- package/dist/lib/query-builder/find-query-builder.js +1 -196
- package/dist/lib/query-builder/query-builder.browser.cjs +75 -80
- package/dist/lib/query-builder/query-builder.browser.js +75 -80
- package/dist/lib/query-builder/query-builder.cjs +75 -80
- package/dist/lib/query-builder/query-builder.js +75 -80
- package/dist/lib/query-builder/reverse-query-builder.browser.cjs +0 -193
- package/dist/lib/query-builder/reverse-query-builder.browser.js +0 -193
- package/dist/lib/query-builder/reverse-query-builder.cjs +0 -193
- package/dist/lib/query-builder/reverse-query-builder.js +0 -193
- package/dist/lib/query-builder/update-query-builder.browser.cjs +0 -193
- package/dist/lib/query-builder/update-query-builder.browser.js +0 -193
- package/dist/lib/query-builder/update-query-builder.cjs +0 -193
- package/dist/lib/query-builder/update-query-builder.js +0 -193
- package/dist/lib/validator.browser.cjs +18 -0
- package/dist/lib/validator.browser.js +36 -0
- package/dist/lib/validator.cjs +18 -0
- package/dist/lib/validator.js +36 -0
- package/dist/txs/consts.browser.cjs +3 -0
- package/dist/txs/consts.browser.js +3 -0
- package/dist/txs/consts.cjs +3 -0
- package/dist/txs/consts.js +3 -0
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.cjs +3 -0
- package/dist/txs/create-access-token/create-access-token.schema.zod.browser.js +3 -0
- package/dist/txs/create-access-token/create-access-token.schema.zod.cjs +3 -0
- package/dist/txs/create-access-token/create-access-token.schema.zod.js +3 -0
- package/dist/txs/create-index/create-index.enums.browser.cjs +18 -0
- package/dist/txs/create-index/create-index.enums.browser.js +0 -0
- package/dist/txs/create-index/create-index.enums.cjs +18 -0
- package/dist/txs/create-index/create-index.enums.js +0 -0
- package/dist/txs/create-index/create-index.schema.zod.browser.cjs +53 -0
- package/dist/txs/create-index/create-index.schema.zod.browser.js +32 -0
- package/dist/txs/create-index/create-index.schema.zod.cjs +61 -0
- package/dist/txs/create-index/create-index.schema.zod.js +32 -0
- package/dist/txs/drop-index/drop-index.enums.browser.cjs +18 -0
- package/dist/txs/drop-index/drop-index.enums.browser.js +0 -0
- package/dist/txs/drop-index/drop-index.enums.cjs +18 -0
- package/dist/txs/drop-index/drop-index.enums.js +0 -0
- package/dist/txs/drop-index/drop-index.schema.zod.browser.cjs +46 -0
- package/dist/txs/drop-index/drop-index.schema.zod.browser.js +28 -0
- package/dist/txs/drop-index/drop-index.schema.zod.cjs +53 -0
- package/dist/txs/drop-index/drop-index.schema.zod.js +28 -0
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.cjs +16 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.browser.js +22 -2
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.cjs +16 -1
- package/dist/txs/find-balance-many/find-balance-many.schema.zod.js +22 -2
- package/dist/txs/find-index-many/find-index-many.enums.browser.cjs +18 -0
- package/dist/txs/find-index-many/find-index-many.enums.browser.js +0 -0
- package/dist/txs/find-index-many/find-index-many.enums.cjs +18 -0
- package/dist/txs/find-index-many/find-index-many.enums.js +0 -0
- package/dist/txs/find-index-many/find-index-many.schema.zod.browser.cjs +66 -0
- package/dist/txs/find-index-many/find-index-many.schema.zod.browser.js +48 -0
- package/dist/txs/find-index-many/find-index-many.schema.zod.cjs +74 -0
- package/dist/txs/find-index-many/find-index-many.schema.zod.js +48 -0
- package/dist/txs/find-transfer-many/find-transfer-many.schema.zod.browser.cjs +76 -3
- package/dist/txs/find-transfer-many/find-transfer-many.schema.zod.browser.js +90 -4
- package/dist/txs/find-transfer-many/find-transfer-many.schema.zod.cjs +76 -3
- package/dist/txs/find-transfer-many/find-transfer-many.schema.zod.js +90 -4
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.cjs +1 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.js +1 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.cjs +1 -1
- package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.js +1 -1
- package/dist/txs/tx-types.browser.cjs +3 -0
- package/dist/txs/tx-types.browser.js +3 -0
- package/dist/txs/tx-types.cjs +6 -0
- package/dist/txs/tx-types.js +3 -0
- package/dist/types/wapi-client.d.ts +17444 -1960
- package/dist/wapi-client.iife.js +7 -7
- package/package.json +1 -1
- package/dist/txs/index.browser.cjs +0 -193
- package/dist/txs/index.browser.js +0 -172
- package/dist/txs/index.cjs +0 -198
- package/dist/txs/index.js +0 -172
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __objRest = (source, exclude) => {
|
|
9
|
+
var target = {};
|
|
10
|
+
for (var prop in source)
|
|
11
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
if (source != null && __getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
15
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
16
|
+
target[prop] = source[prop];
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// src/fns/drop-index/drop-index.ts
|
|
35
|
+
var drop_index_exports = {};
|
|
36
|
+
__export(drop_index_exports, {
|
|
37
|
+
dropIndex: () => dropIndex
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(drop_index_exports);
|
|
40
|
+
var import_validation = require("../../lib/validation.cjs");
|
|
41
|
+
var import_drop_index_schema_zod = require("./drop-index.schema.zod.cjs");
|
|
42
|
+
var zodValidator = (0, import_validation.getValidator)(import_drop_index_schema_zod.dropIndexFnInputSchema);
|
|
43
|
+
function dropIndex(options, input, fnOptions) {
|
|
44
|
+
const { client } = options;
|
|
45
|
+
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
46
|
+
const _a = inputCopy, { options: clientOptions } = _a, index = __objRest(_a, ["options"]);
|
|
47
|
+
return client.api.dropIndex({
|
|
48
|
+
index,
|
|
49
|
+
options: clientOptions
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
dropIndex
|
|
55
|
+
});
|
|
@@ -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/drop-index/drop-index.enums.ts
|
|
17
|
+
var drop_index_enums_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(drop_index_enums_exports);
|
|
File without changes
|
|
@@ -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/drop-index/drop-index.enums.ts
|
|
17
|
+
var drop_index_enums_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(drop_index_enums_exports);
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var __objRest = (source, exclude) => {
|
|
5
|
+
var target = {};
|
|
6
|
+
for (var prop in source)
|
|
7
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8
|
+
target[prop] = source[prop];
|
|
9
|
+
if (source != null && __getOwnPropSymbols)
|
|
10
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
11
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/fns/drop-index/drop-index.ts
|
|
18
|
+
import { getValidator } from "../../lib/validation.js";
|
|
19
|
+
import { dropIndexFnInputSchema } from "./drop-index.schema.zod.js";
|
|
20
|
+
var zodValidator = getValidator(dropIndexFnInputSchema);
|
|
21
|
+
function dropIndex(options, input, fnOptions) {
|
|
22
|
+
const { client } = options;
|
|
23
|
+
const inputCopy = zodValidator.validateInputWOptions(input, fnOptions);
|
|
24
|
+
const _a = inputCopy, { options: clientOptions } = _a, index = __objRest(_a, ["options"]);
|
|
25
|
+
return client.api.dropIndex({
|
|
26
|
+
index,
|
|
27
|
+
options: clientOptions
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
dropIndex
|
|
32
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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/drop-index/drop-index.schema.zod.ts
|
|
21
|
+
var drop_index_schema_zod_exports = {};
|
|
22
|
+
__export(drop_index_schema_zod_exports, {
|
|
23
|
+
config: () => config,
|
|
24
|
+
dropIndexFnInputSchema: () => dropIndexFnInputSchema,
|
|
25
|
+
dropIndexFnOptionsSchema: () => dropIndexFnOptionsSchema,
|
|
26
|
+
dropIndexFnOutputSchema: () => dropIndexFnOutputSchema,
|
|
27
|
+
dropIndexInputSchema: () => dropIndexInputSchema
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(drop_index_schema_zod_exports);
|
|
30
|
+
var import_drop_index_schema_zod = require("../../txs/drop-index/drop-index.schema.zod.browser.cjs");
|
|
31
|
+
var dropIndexFnOptionsSchema = import_drop_index_schema_zod.dropIndexTxInputOptionsSchema.describe("Optional flags for input");
|
|
32
|
+
var dropIndexInputSchema = import_drop_index_schema_zod.dropIndexSchema;
|
|
33
|
+
var dropIndexFnInputSchema = dropIndexInputSchema.extend({
|
|
34
|
+
options: dropIndexFnOptionsSchema.optional()
|
|
35
|
+
}).strict().describe("Input for dropIndex");
|
|
36
|
+
var dropIndexFnOutputSchema = import_drop_index_schema_zod.dropIndexTxOutputSchema.describe(
|
|
37
|
+
"Output of dropIndex"
|
|
38
|
+
);
|
|
39
|
+
var config = {
|
|
40
|
+
group: "utils_and_security"
|
|
41
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/fns/drop-index/drop-index.schema.zod.ts
|
|
2
|
+
import {
|
|
3
|
+
dropIndexSchema,
|
|
4
|
+
dropIndexTxInputOptionsSchema,
|
|
5
|
+
dropIndexTxOutputSchema
|
|
6
|
+
} from "../../txs/drop-index/drop-index.schema.zod.browser.js";
|
|
7
|
+
var dropIndexFnOptionsSchema = dropIndexTxInputOptionsSchema.describe("Optional flags for input");
|
|
8
|
+
var dropIndexInputSchema = dropIndexSchema;
|
|
9
|
+
var dropIndexFnInputSchema = dropIndexInputSchema.extend({
|
|
10
|
+
options: dropIndexFnOptionsSchema.optional()
|
|
11
|
+
}).strict().describe("Input for dropIndex");
|
|
12
|
+
var dropIndexFnOutputSchema = dropIndexTxOutputSchema.describe(
|
|
13
|
+
"Output of dropIndex"
|
|
14
|
+
);
|
|
15
|
+
var config = {
|
|
16
|
+
group: "utils_and_security"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
config,
|
|
20
|
+
dropIndexFnInputSchema,
|
|
21
|
+
dropIndexFnOptionsSchema,
|
|
22
|
+
dropIndexFnOutputSchema,
|
|
23
|
+
dropIndexInputSchema
|
|
24
|
+
};
|
|
@@ -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/drop-index/drop-index.schema.zod.ts
|
|
21
|
+
var drop_index_schema_zod_exports = {};
|
|
22
|
+
__export(drop_index_schema_zod_exports, {
|
|
23
|
+
config: () => config,
|
|
24
|
+
dropIndexFnInputSchema: () => dropIndexFnInputSchema,
|
|
25
|
+
dropIndexFnOptionsSchema: () => dropIndexFnOptionsSchema,
|
|
26
|
+
dropIndexFnOutputSchema: () => dropIndexFnOutputSchema,
|
|
27
|
+
dropIndexInputSchema: () => dropIndexInputSchema
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(drop_index_schema_zod_exports);
|
|
30
|
+
var import_drop_index_schema_zod = require("../../txs/drop-index/drop-index.schema.zod.cjs");
|
|
31
|
+
var dropIndexFnOptionsSchema = import_drop_index_schema_zod.dropIndexTxInputOptionsSchema.describe("Optional flags for input");
|
|
32
|
+
var dropIndexInputSchema = import_drop_index_schema_zod.dropIndexSchema;
|
|
33
|
+
var dropIndexFnInputSchema = dropIndexInputSchema.extend({
|
|
34
|
+
options: dropIndexFnOptionsSchema.optional()
|
|
35
|
+
}).strict().describe("Input for dropIndex");
|
|
36
|
+
var dropIndexFnOutputSchema = import_drop_index_schema_zod.dropIndexTxOutputSchema.describe(
|
|
37
|
+
"Output of dropIndex"
|
|
38
|
+
);
|
|
39
|
+
var config = {
|
|
40
|
+
group: "utils_and_security"
|
|
41
|
+
};
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
config,
|
|
45
|
+
dropIndexFnInputSchema,
|
|
46
|
+
dropIndexFnOptionsSchema,
|
|
47
|
+
dropIndexFnOutputSchema,
|
|
48
|
+
dropIndexInputSchema
|
|
49
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/fns/drop-index/drop-index.schema.zod.ts
|
|
2
|
+
import {
|
|
3
|
+
dropIndexSchema,
|
|
4
|
+
dropIndexTxInputOptionsSchema,
|
|
5
|
+
dropIndexTxOutputSchema
|
|
6
|
+
} from "../../txs/drop-index/drop-index.schema.zod.js";
|
|
7
|
+
var dropIndexFnOptionsSchema = dropIndexTxInputOptionsSchema.describe("Optional flags for input");
|
|
8
|
+
var dropIndexInputSchema = dropIndexSchema;
|
|
9
|
+
var dropIndexFnInputSchema = dropIndexInputSchema.extend({
|
|
10
|
+
options: dropIndexFnOptionsSchema.optional()
|
|
11
|
+
}).strict().describe("Input for dropIndex");
|
|
12
|
+
var dropIndexFnOutputSchema = dropIndexTxOutputSchema.describe(
|
|
13
|
+
"Output of dropIndex"
|
|
14
|
+
);
|
|
15
|
+
var config = {
|
|
16
|
+
group: "utils_and_security"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
config,
|
|
20
|
+
dropIndexFnInputSchema,
|
|
21
|
+
dropIndexFnOptionsSchema,
|
|
22
|
+
dropIndexFnOutputSchema,
|
|
23
|
+
dropIndexInputSchema
|
|
24
|
+
};
|
|
@@ -31,7 +31,15 @@ var import_find_query_builder = require("../../lib/query-builder/find-query-buil
|
|
|
31
31
|
var balanceFilterFullInputSchemaRequired = import_find_balances_schema_zod.findBalancesInputSchema.extend({
|
|
32
32
|
type: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.type,
|
|
33
33
|
status: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.status,
|
|
34
|
-
updated_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.updated_at
|
|
34
|
+
updated_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.updated_at,
|
|
35
|
+
wallet_id: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_id,
|
|
36
|
+
wallet_foreign: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_foreign,
|
|
37
|
+
wallet_name: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_name,
|
|
38
|
+
wallet_metadata: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_metadata,
|
|
39
|
+
wallet_type: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_type,
|
|
40
|
+
wallet_status: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_status,
|
|
41
|
+
wallet_created_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_created_at,
|
|
42
|
+
wallet_updated_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_updated_at
|
|
35
43
|
}).required();
|
|
36
44
|
function findBalances(options, input, fnOptions) {
|
|
37
45
|
const { client } = options;
|
|
@@ -11,7 +11,15 @@ import {
|
|
|
11
11
|
var balanceFilterFullInputSchemaRequired = findBalancesInputSchema.extend({
|
|
12
12
|
type: balanceFilterFullInputSchema.shape.type,
|
|
13
13
|
status: balanceFilterFullInputSchema.shape.status,
|
|
14
|
-
updated_at: balanceFilterFullInputSchema.shape.updated_at
|
|
14
|
+
updated_at: balanceFilterFullInputSchema.shape.updated_at,
|
|
15
|
+
wallet_id: balanceFilterFullInputSchema.shape.wallet_id,
|
|
16
|
+
wallet_foreign: balanceFilterFullInputSchema.shape.wallet_foreign,
|
|
17
|
+
wallet_name: balanceFilterFullInputSchema.shape.wallet_name,
|
|
18
|
+
wallet_metadata: balanceFilterFullInputSchema.shape.wallet_metadata,
|
|
19
|
+
wallet_type: balanceFilterFullInputSchema.shape.wallet_type,
|
|
20
|
+
wallet_status: balanceFilterFullInputSchema.shape.wallet_status,
|
|
21
|
+
wallet_created_at: balanceFilterFullInputSchema.shape.wallet_created_at,
|
|
22
|
+
wallet_updated_at: balanceFilterFullInputSchema.shape.wallet_updated_at
|
|
15
23
|
}).required();
|
|
16
24
|
function findBalances(options, input, fnOptions) {
|
|
17
25
|
const { client } = options;
|
|
@@ -31,7 +31,15 @@ var import_find_query_builder = require("../../lib/query-builder/find-query-buil
|
|
|
31
31
|
var balanceFilterFullInputSchemaRequired = import_find_balances_schema_zod.findBalancesInputSchema.extend({
|
|
32
32
|
type: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.type,
|
|
33
33
|
status: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.status,
|
|
34
|
-
updated_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.updated_at
|
|
34
|
+
updated_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.updated_at,
|
|
35
|
+
wallet_id: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_id,
|
|
36
|
+
wallet_foreign: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_foreign,
|
|
37
|
+
wallet_name: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_name,
|
|
38
|
+
wallet_metadata: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_metadata,
|
|
39
|
+
wallet_type: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_type,
|
|
40
|
+
wallet_status: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_status,
|
|
41
|
+
wallet_created_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_created_at,
|
|
42
|
+
wallet_updated_at: import_find_balance_many_schema_zod.balanceFilterFullInputSchema.shape.wallet_updated_at
|
|
35
43
|
}).required();
|
|
36
44
|
function findBalances(options, input, fnOptions) {
|
|
37
45
|
const { client } = options;
|
|
@@ -11,7 +11,15 @@ import {
|
|
|
11
11
|
var balanceFilterFullInputSchemaRequired = findBalancesInputSchema.extend({
|
|
12
12
|
type: balanceFilterFullInputSchema.shape.type,
|
|
13
13
|
status: balanceFilterFullInputSchema.shape.status,
|
|
14
|
-
updated_at: balanceFilterFullInputSchema.shape.updated_at
|
|
14
|
+
updated_at: balanceFilterFullInputSchema.shape.updated_at,
|
|
15
|
+
wallet_id: balanceFilterFullInputSchema.shape.wallet_id,
|
|
16
|
+
wallet_foreign: balanceFilterFullInputSchema.shape.wallet_foreign,
|
|
17
|
+
wallet_name: balanceFilterFullInputSchema.shape.wallet_name,
|
|
18
|
+
wallet_metadata: balanceFilterFullInputSchema.shape.wallet_metadata,
|
|
19
|
+
wallet_type: balanceFilterFullInputSchema.shape.wallet_type,
|
|
20
|
+
wallet_status: balanceFilterFullInputSchema.shape.wallet_status,
|
|
21
|
+
wallet_created_at: balanceFilterFullInputSchema.shape.wallet_created_at,
|
|
22
|
+
wallet_updated_at: balanceFilterFullInputSchema.shape.wallet_updated_at
|
|
15
23
|
}).required();
|
|
16
24
|
function findBalances(options, input, fnOptions) {
|
|
17
25
|
const { client } = options;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __objRest = (source, exclude) => {
|
|
9
|
+
var target = {};
|
|
10
|
+
for (var prop in source)
|
|
11
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
if (source != null && __getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
15
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
16
|
+
target[prop] = source[prop];
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// src/fns/find-indexes/find-indexes.ts
|
|
35
|
+
var find_indexes_exports = {};
|
|
36
|
+
__export(find_indexes_exports, {
|
|
37
|
+
findIndexes: () => findIndexes
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(find_indexes_exports);
|
|
40
|
+
var import_validation = require("../../lib/validation.browser.cjs");
|
|
41
|
+
var import_find_indexes_schema_zod = require("./find-indexes.schema.zod.browser.cjs");
|
|
42
|
+
var zodValidator = (0, import_validation.getValidator)(import_find_indexes_schema_zod.findIndexesFnInputSchema);
|
|
43
|
+
function findIndexes(options, input, fnOptions) {
|
|
44
|
+
const { client } = options;
|
|
45
|
+
const inputCopy = zodValidator.validateInputWOptions(input != null ? input : {}, fnOptions);
|
|
46
|
+
const _a = inputCopy, { options: clientOptions } = _a, index = __objRest(_a, ["options"]);
|
|
47
|
+
return client.api.findIndexMany({
|
|
48
|
+
index,
|
|
49
|
+
options: clientOptions
|
|
50
|
+
});
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var __objRest = (source, exclude) => {
|
|
5
|
+
var target = {};
|
|
6
|
+
for (var prop in source)
|
|
7
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8
|
+
target[prop] = source[prop];
|
|
9
|
+
if (source != null && __getOwnPropSymbols)
|
|
10
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
11
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/fns/find-indexes/find-indexes.ts
|
|
18
|
+
import { getValidator } from "../../lib/validation.browser.js";
|
|
19
|
+
import { findIndexesFnInputSchema } from "./find-indexes.schema.zod.browser.js";
|
|
20
|
+
var zodValidator = getValidator(findIndexesFnInputSchema);
|
|
21
|
+
function findIndexes(options, input, fnOptions) {
|
|
22
|
+
const { client } = options;
|
|
23
|
+
const inputCopy = zodValidator.validateInputWOptions(input != null ? input : {}, fnOptions);
|
|
24
|
+
const _a = inputCopy, { options: clientOptions } = _a, index = __objRest(_a, ["options"]);
|
|
25
|
+
return client.api.findIndexMany({
|
|
26
|
+
index,
|
|
27
|
+
options: clientOptions
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
findIndexes
|
|
32
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __objRest = (source, exclude) => {
|
|
9
|
+
var target = {};
|
|
10
|
+
for (var prop in source)
|
|
11
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
if (source != null && __getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
15
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
16
|
+
target[prop] = source[prop];
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
24
|
+
var __copyProps = (to, from, except, desc) => {
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (let key of __getOwnPropNames(from))
|
|
27
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
28
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
29
|
+
}
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// src/fns/find-indexes/find-indexes.ts
|
|
35
|
+
var find_indexes_exports = {};
|
|
36
|
+
__export(find_indexes_exports, {
|
|
37
|
+
findIndexes: () => findIndexes
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(find_indexes_exports);
|
|
40
|
+
var import_validation = require("../../lib/validation.cjs");
|
|
41
|
+
var import_find_indexes_schema_zod = require("./find-indexes.schema.zod.cjs");
|
|
42
|
+
var zodValidator = (0, import_validation.getValidator)(import_find_indexes_schema_zod.findIndexesFnInputSchema);
|
|
43
|
+
function findIndexes(options, input, fnOptions) {
|
|
44
|
+
const { client } = options;
|
|
45
|
+
const inputCopy = zodValidator.validateInputWOptions(input != null ? input : {}, fnOptions);
|
|
46
|
+
const _a = inputCopy, { options: clientOptions } = _a, index = __objRest(_a, ["options"]);
|
|
47
|
+
return client.api.findIndexMany({
|
|
48
|
+
index,
|
|
49
|
+
options: clientOptions
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
findIndexes
|
|
55
|
+
});
|
|
@@ -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/find-indexes/find-indexes.enums.ts
|
|
17
|
+
var find_indexes_enums_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(find_indexes_enums_exports);
|
|
File without changes
|
|
@@ -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/find-indexes/find-indexes.enums.ts
|
|
17
|
+
var find_indexes_enums_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(find_indexes_enums_exports);
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var __objRest = (source, exclude) => {
|
|
5
|
+
var target = {};
|
|
6
|
+
for (var prop in source)
|
|
7
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
8
|
+
target[prop] = source[prop];
|
|
9
|
+
if (source != null && __getOwnPropSymbols)
|
|
10
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
11
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
12
|
+
target[prop] = source[prop];
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/fns/find-indexes/find-indexes.ts
|
|
18
|
+
import { getValidator } from "../../lib/validation.js";
|
|
19
|
+
import { findIndexesFnInputSchema } from "./find-indexes.schema.zod.js";
|
|
20
|
+
var zodValidator = getValidator(findIndexesFnInputSchema);
|
|
21
|
+
function findIndexes(options, input, fnOptions) {
|
|
22
|
+
const { client } = options;
|
|
23
|
+
const inputCopy = zodValidator.validateInputWOptions(input != null ? input : {}, fnOptions);
|
|
24
|
+
const _a = inputCopy, { options: clientOptions } = _a, index = __objRest(_a, ["options"]);
|
|
25
|
+
return client.api.findIndexMany({
|
|
26
|
+
index,
|
|
27
|
+
options: clientOptions
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
findIndexes
|
|
32
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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/find-indexes/find-indexes.schema.zod.ts
|
|
21
|
+
var find_indexes_schema_zod_exports = {};
|
|
22
|
+
__export(find_indexes_schema_zod_exports, {
|
|
23
|
+
config: () => config,
|
|
24
|
+
findIndexesFnInputSchema: () => findIndexesFnInputSchema,
|
|
25
|
+
findIndexesFnOptionsSchema: () => findIndexesFnOptionsSchema,
|
|
26
|
+
findIndexesFnOutputSchema: () => findIndexesFnOutputSchema,
|
|
27
|
+
findIndexesInputSchema: () => findIndexesInputSchema
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(find_indexes_schema_zod_exports);
|
|
30
|
+
var import_find_index_many_schema_zod = require("../../txs/find-index-many/find-index-many.schema.zod.browser.cjs");
|
|
31
|
+
var findIndexesFnOptionsSchema = import_find_index_many_schema_zod.findIndexManyTxInputOptionsSchema.describe("Optional flags for input");
|
|
32
|
+
var findIndexesInputSchema = import_find_index_many_schema_zod.indexFilterObjectInputSchema;
|
|
33
|
+
var findIndexesFnInputSchema = findIndexesInputSchema.extend({
|
|
34
|
+
options: findIndexesFnOptionsSchema.optional()
|
|
35
|
+
}).strict().describe("Input for findIndexes");
|
|
36
|
+
var findIndexesFnOutputSchema = import_find_index_many_schema_zod.findIndexManyTxOutputSchema.describe(
|
|
37
|
+
"Output of findIndexes"
|
|
38
|
+
);
|
|
39
|
+
var config = {
|
|
40
|
+
group: "utils_and_security"
|
|
41
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/fns/find-indexes/find-indexes.schema.zod.ts
|
|
2
|
+
import {
|
|
3
|
+
findIndexManyTxInputOptionsSchema,
|
|
4
|
+
findIndexManyTxOutputSchema,
|
|
5
|
+
indexFilterObjectInputSchema
|
|
6
|
+
} from "../../txs/find-index-many/find-index-many.schema.zod.browser.js";
|
|
7
|
+
var findIndexesFnOptionsSchema = findIndexManyTxInputOptionsSchema.describe("Optional flags for input");
|
|
8
|
+
var findIndexesInputSchema = indexFilterObjectInputSchema;
|
|
9
|
+
var findIndexesFnInputSchema = findIndexesInputSchema.extend({
|
|
10
|
+
options: findIndexesFnOptionsSchema.optional()
|
|
11
|
+
}).strict().describe("Input for findIndexes");
|
|
12
|
+
var findIndexesFnOutputSchema = findIndexManyTxOutputSchema.describe(
|
|
13
|
+
"Output of findIndexes"
|
|
14
|
+
);
|
|
15
|
+
var config = {
|
|
16
|
+
group: "utils_and_security"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
config,
|
|
20
|
+
findIndexesFnInputSchema,
|
|
21
|
+
findIndexesFnOptionsSchema,
|
|
22
|
+
findIndexesFnOutputSchema,
|
|
23
|
+
findIndexesInputSchema
|
|
24
|
+
};
|