wapi-client 0.12.0-beta.3 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/dist/db/consts.browser.cjs +0 -2
- package/dist/db/consts.browser.js +0 -2
- package/dist/db/consts.cjs +0 -2
- package/dist/db/consts.d.ts +1 -1
- package/dist/db/consts.js +0 -2
- package/dist/fns/consts.enums.d.ts +1 -2
- package/dist/fns/export-tokens/export-tokens.browser.cjs +23 -1
- package/dist/fns/export-tokens/export-tokens.browser.js +27 -2
- package/dist/fns/export-tokens/export-tokens.cjs +23 -1
- package/dist/fns/export-tokens/export-tokens.js +27 -2
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.cjs +24 -2
- package/dist/fns/export-transfer-groups/export-transfer-groups.browser.js +28 -3
- package/dist/fns/export-transfer-groups/export-transfer-groups.cjs +24 -2
- package/dist/fns/export-transfer-groups/export-transfer-groups.js +28 -3
- package/dist/fns/export-transfers/export-transfers.browser.cjs +23 -2
- package/dist/fns/export-transfers/export-transfers.browser.js +27 -3
- package/dist/fns/export-transfers/export-transfers.cjs +23 -2
- package/dist/fns/export-transfers/export-transfers.js +27 -3
- package/dist/fns/export-wallets/export-wallets.browser.cjs +7 -15
- package/dist/fns/export-wallets/export-wallets.browser.js +8 -17
- package/dist/fns/export-wallets/export-wallets.cjs +7 -15
- package/dist/fns/export-wallets/export-wallets.js +8 -17
- package/dist/fns/find-balances/find-balances.browser.cjs +23 -1
- package/dist/fns/find-balances/find-balances.browser.js +27 -2
- package/dist/fns/find-balances/find-balances.cjs +23 -1
- package/dist/fns/find-balances/find-balances.js +27 -2
- package/dist/fns/find-tokens/find-tokens.browser.cjs +23 -1
- package/dist/fns/find-tokens/find-tokens.browser.js +27 -2
- package/dist/fns/find-tokens/find-tokens.cjs +23 -1
- package/dist/fns/find-tokens/find-tokens.js +27 -2
- package/dist/fns/find-transfer-groups/find-transfer-groups.browser.cjs +23 -1
- package/dist/fns/find-transfer-groups/find-transfer-groups.browser.js +27 -2
- package/dist/fns/find-transfer-groups/find-transfer-groups.cjs +23 -1
- package/dist/fns/find-transfer-groups/find-transfer-groups.js +27 -2
- package/dist/fns/find-transfers/find-transfers.browser.cjs +18 -28
- package/dist/fns/find-transfers/find-transfers.browser.js +19 -29
- package/dist/fns/find-transfers/find-transfers.cjs +18 -28
- package/dist/fns/find-transfers/find-transfers.js +19 -29
- package/dist/fns/find-wallets/find-wallets.browser.cjs +6 -14
- package/dist/fns/find-wallets/find-wallets.browser.js +7 -16
- package/dist/fns/find-wallets/find-wallets.cjs +6 -14
- package/dist/fns/find-wallets/find-wallets.js +7 -16
- package/dist/fns/fn-types.d.ts +43 -43
- package/dist/fns/list-exports/list-exports.browser.cjs +4 -2
- package/dist/fns/list-exports/list-exports.browser.js +5 -3
- package/dist/fns/list-exports/list-exports.cjs +4 -2
- package/dist/fns/list-exports/list-exports.js +5 -3
- package/dist/index.browser.cjs +2 -0
- package/dist/index.browser.js +2 -0
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/dist/lib/polyfill.browser.cjs +43 -0
- package/dist/lib/polyfill.browser.js +23 -0
- package/dist/lib/polyfill.cjs +47 -0
- package/dist/lib/polyfill.d.ts +1 -0
- package/dist/lib/polyfill.js +23 -0
- package/dist/lib/ts-utils.browser.cjs +5 -1
- package/dist/lib/ts-utils.browser.js +5 -1
- package/dist/lib/ts-utils.cjs +7 -2
- package/dist/lib/ts-utils.d.ts +5 -0
- package/dist/lib/ts-utils.js +5 -1
- package/dist/lib/utils.browser.cjs +20 -20
- package/dist/lib/utils.browser.js +20 -22
- package/dist/lib/utils.cjs +22 -19
- package/dist/lib/utils.d.ts +5 -3
- package/dist/lib/utils.js +20 -18
- package/dist/txs/tx-types.d.ts +51 -51
- package/dist/types/index.d.ts +16 -6
- package/dist/wapi-client-web.iife.js +1 -1
- package/dist/wapi-client.iife.js +1 -1
- package/package.json +1 -1
package/dist/api/ws-client.cjs
CHANGED
|
@@ -76,7 +76,7 @@ var import_base_client = require('./base-client.cjs');
|
|
|
76
76
|
var import_connection = require('./connection/connection.enums.cjs');
|
|
77
77
|
var import__ = require('../index.cjs');
|
|
78
78
|
var _a;
|
|
79
|
-
var CLIENT_VERSION = (_a = '0.12.
|
|
79
|
+
var CLIENT_VERSION = (_a = '0.12.3') != null ? _a : "";
|
|
80
80
|
function createWsClient(opts, config) {
|
|
81
81
|
const initialConnection = createConnection(opts, {
|
|
82
82
|
timeout: config == null ? void 0 : config.connectingTimeout
|
package/dist/api/ws-client.js
CHANGED
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./connection/connection.enums";
|
|
49
49
|
import { WapiClientType } from "../index";
|
|
50
50
|
var _a;
|
|
51
|
-
var CLIENT_VERSION = (_a = '0.12.
|
|
51
|
+
var CLIENT_VERSION = (_a = '0.12.3') != null ? _a : "";
|
|
52
52
|
function createWsClient(opts, config) {
|
|
53
53
|
const initialConnection = createConnection(opts, {
|
|
54
54
|
timeout: config == null ? void 0 : config.connectingTimeout
|
package/dist/client.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var import_api = require('./api/index.cjs');
|
|
|
63
63
|
var import_errors = require('./lib/errors.cjs');
|
|
64
64
|
var import_fns = require('./fns/index.cjs');
|
|
65
65
|
var _a;
|
|
66
|
-
var CLIENT_VERSION = (_a = '0.12.
|
|
66
|
+
var CLIENT_VERSION = (_a = '0.12.3') != null ? _a : "";
|
|
67
67
|
var Client = class {
|
|
68
68
|
/**
|
|
69
69
|
* @internal
|
package/dist/client.js
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import { ConfigError } from "./lib/errors";
|
|
45
45
|
import { ClientFunctions } from "./fns";
|
|
46
46
|
var _a;
|
|
47
|
-
var CLIENT_VERSION = (_a = '0.12.
|
|
47
|
+
var CLIENT_VERSION = (_a = '0.12.3') != null ? _a : "";
|
|
48
48
|
var Client = class {
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
@@ -4077,14 +4077,12 @@ var MetadataSchema = z.record(
|
|
|
4077
4077
|
z.boolean(),
|
|
4078
4078
|
z.number(),
|
|
4079
4079
|
z.null(),
|
|
4080
|
-
z.undefined(),
|
|
4081
4080
|
z.lazy(() => MetadataSchema),
|
|
4082
4081
|
z.union([
|
|
4083
4082
|
z.string(),
|
|
4084
4083
|
z.boolean(),
|
|
4085
4084
|
z.number(),
|
|
4086
4085
|
z.null(),
|
|
4087
|
-
z.undefined(),
|
|
4088
4086
|
z.lazy(() => MetadataSchema)
|
|
4089
4087
|
]).array()
|
|
4090
4088
|
])
|
|
@@ -4005,14 +4005,12 @@ var MetadataSchema = z.record(
|
|
|
4005
4005
|
z.boolean(),
|
|
4006
4006
|
z.number(),
|
|
4007
4007
|
z.null(),
|
|
4008
|
-
z.undefined(),
|
|
4009
4008
|
z.lazy(() => MetadataSchema),
|
|
4010
4009
|
z.union([
|
|
4011
4010
|
z.string(),
|
|
4012
4011
|
z.boolean(),
|
|
4013
4012
|
z.number(),
|
|
4014
4013
|
z.null(),
|
|
4015
|
-
z.undefined(),
|
|
4016
4014
|
z.lazy(() => MetadataSchema)
|
|
4017
4015
|
]).array()
|
|
4018
4016
|
])
|
package/dist/db/consts.cjs
CHANGED
|
@@ -107,14 +107,12 @@ var MetadataSchema = import_zod.default.record(
|
|
|
107
107
|
import_zod.default.boolean(),
|
|
108
108
|
import_zod.default.number(),
|
|
109
109
|
import_zod.default.null(),
|
|
110
|
-
import_zod.default.undefined(),
|
|
111
110
|
import_zod.default.lazy(() => MetadataSchema),
|
|
112
111
|
import_zod.default.union([
|
|
113
112
|
import_zod.default.string(),
|
|
114
113
|
import_zod.default.boolean(),
|
|
115
114
|
import_zod.default.number(),
|
|
116
115
|
import_zod.default.null(),
|
|
117
|
-
import_zod.default.undefined(),
|
|
118
116
|
import_zod.default.lazy(() => MetadataSchema)
|
|
119
117
|
]).array()
|
|
120
118
|
])
|
package/dist/db/consts.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export type Metadata = {
|
|
3
|
-
[key: string]: string | boolean | number | null | Metadata |
|
|
3
|
+
[key: string]: string | boolean | number | null | Metadata | (string | boolean | number | null | Metadata)[];
|
|
4
4
|
} | null;
|
|
5
5
|
export declare const MetadataSchema: z.ZodType<Metadata>;
|
|
6
6
|
export declare const DatetimeSchema: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString]>;
|
package/dist/db/consts.js
CHANGED
|
@@ -25,14 +25,12 @@ var MetadataSchema = z.record(
|
|
|
25
25
|
z.boolean(),
|
|
26
26
|
z.number(),
|
|
27
27
|
z.null(),
|
|
28
|
-
z.undefined(),
|
|
29
28
|
z.lazy(() => MetadataSchema),
|
|
30
29
|
z.union([
|
|
31
30
|
z.string(),
|
|
32
31
|
z.boolean(),
|
|
33
32
|
z.number(),
|
|
34
33
|
z.null(),
|
|
35
|
-
z.undefined(),
|
|
36
34
|
z.lazy(() => MetadataSchema)
|
|
37
35
|
]).array()
|
|
38
36
|
])
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { iFnFindOptionsExtraSchema, iFnFindOptionsSchema,
|
|
2
|
+
import { iFnFindOptionsExtraSchema, iFnFindOptionsSchema, allowedStringIntSchema, allowedStringNumberSchema } from "./consts";
|
|
3
3
|
export type IFnFindOptionsExtra = z.infer<typeof iFnFindOptionsExtraSchema>;
|
|
4
4
|
export type IFnFindOptions = z.infer<typeof iFnFindOptionsSchema>;
|
|
5
|
-
export type AllowedStringPositiveNumeric = z.infer<typeof allowedStringPositiveNumericSchema>;
|
|
6
5
|
export type AllowedStringInt = z.infer<typeof allowedStringIntSchema>;
|
|
7
6
|
export type AllowedStringNumber = z.infer<typeof allowedStringNumberSchema>;
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,6 +43,7 @@ var import_validation = require('../../lib/validation.cjs');
|
|
|
29
43
|
var import_export_tokens_schema = require('./export-tokens.schema.zod.cjs');
|
|
30
44
|
var zodValidator = (0, import_validation.getValidator)(import_export_tokens_schema.exportTokensFnInputSchema);
|
|
31
45
|
function exportTokens(options, input, fnOptions) {
|
|
46
|
+
var _a, _b;
|
|
32
47
|
const { client } = options;
|
|
33
48
|
if (input === void 0) {
|
|
34
49
|
return new import_query_builder.QueryBuilder({
|
|
@@ -55,7 +70,14 @@ function exportTokens(options, input, fnOptions) {
|
|
|
55
70
|
if (inputCopy.belongs_to) {
|
|
56
71
|
filter.belongs_to = (0, import_utils.getForeign)(inputCopy.belongs_to);
|
|
57
72
|
}
|
|
58
|
-
const
|
|
73
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
74
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
75
|
+
const exportOptions = __spreadValues({}, inputCopy.options);
|
|
76
|
+
if (!exportOptions.order && orderBy) {
|
|
77
|
+
exportOptions.order = (0, import_utils.orderByToOrder)(
|
|
78
|
+
orderBy
|
|
79
|
+
);
|
|
80
|
+
}
|
|
59
81
|
return client.api.exportTokenMany({
|
|
60
82
|
token: filter,
|
|
61
83
|
options: exportOptions
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
1
18
|
// src/fns/export-tokens/export-tokens.ts
|
|
2
19
|
import { QueryBuilder } from "../../lib/query-builder.browser.js";
|
|
3
|
-
import { getForeign,
|
|
20
|
+
import { getForeign, orderByToOrder } from "../../lib/utils.browser.js";
|
|
4
21
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
5
22
|
import { exportTokensFnInputSchema } from "./export-tokens.schema.zod.browser.js";
|
|
6
23
|
var zodValidator = getValidator(exportTokensFnInputSchema);
|
|
7
24
|
function exportTokens(options, input, fnOptions) {
|
|
25
|
+
var _a, _b;
|
|
8
26
|
const { client } = options;
|
|
9
27
|
if (input === void 0) {
|
|
10
28
|
return new QueryBuilder({
|
|
@@ -31,7 +49,14 @@ function exportTokens(options, input, fnOptions) {
|
|
|
31
49
|
if (inputCopy.belongs_to) {
|
|
32
50
|
filter.belongs_to = getForeign(inputCopy.belongs_to);
|
|
33
51
|
}
|
|
34
|
-
const
|
|
52
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
53
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
54
|
+
const exportOptions = __spreadValues({}, inputCopy.options);
|
|
55
|
+
if (!exportOptions.order && orderBy) {
|
|
56
|
+
exportOptions.order = orderByToOrder(
|
|
57
|
+
orderBy
|
|
58
|
+
);
|
|
59
|
+
}
|
|
35
60
|
return client.api.exportTokenMany({
|
|
36
61
|
token: filter,
|
|
37
62
|
options: exportOptions
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,6 +43,7 @@ var import_validation = require('../../lib/validation.cjs');
|
|
|
29
43
|
var import_export_tokens_schema = require('./export-tokens.schema.zod.cjs');
|
|
30
44
|
var zodValidator = (0, import_validation.getValidator)(import_export_tokens_schema.exportTokensFnInputSchema);
|
|
31
45
|
function exportTokens(options, input, fnOptions) {
|
|
46
|
+
var _a, _b;
|
|
32
47
|
const { client } = options;
|
|
33
48
|
if (input === void 0) {
|
|
34
49
|
return new import_query_builder.QueryBuilder({
|
|
@@ -55,7 +70,14 @@ function exportTokens(options, input, fnOptions) {
|
|
|
55
70
|
if (inputCopy.belongs_to) {
|
|
56
71
|
filter.belongs_to = (0, import_utils.getForeign)(inputCopy.belongs_to);
|
|
57
72
|
}
|
|
58
|
-
const
|
|
73
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
74
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
75
|
+
const exportOptions = __spreadValues({}, inputCopy.options);
|
|
76
|
+
if (!exportOptions.order && orderBy) {
|
|
77
|
+
exportOptions.order = (0, import_utils.orderByToOrder)(
|
|
78
|
+
orderBy
|
|
79
|
+
);
|
|
80
|
+
}
|
|
59
81
|
return client.api.exportTokenMany({
|
|
60
82
|
token: filter,
|
|
61
83
|
options: exportOptions
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
1
18
|
// src/fns/export-tokens/export-tokens.ts
|
|
2
19
|
import { QueryBuilder } from "../../lib/query-builder";
|
|
3
|
-
import { getForeign,
|
|
20
|
+
import { getForeign, orderByToOrder } from "../../lib/utils";
|
|
4
21
|
import { getValidator } from "../../lib/validation";
|
|
5
22
|
import { exportTokensFnInputSchema } from "./export-tokens.schema.zod";
|
|
6
23
|
var zodValidator = getValidator(exportTokensFnInputSchema);
|
|
7
24
|
function exportTokens(options, input, fnOptions) {
|
|
25
|
+
var _a, _b;
|
|
8
26
|
const { client } = options;
|
|
9
27
|
if (input === void 0) {
|
|
10
28
|
return new QueryBuilder({
|
|
@@ -31,7 +49,14 @@ function exportTokens(options, input, fnOptions) {
|
|
|
31
49
|
if (inputCopy.belongs_to) {
|
|
32
50
|
filter.belongs_to = getForeign(inputCopy.belongs_to);
|
|
33
51
|
}
|
|
34
|
-
const
|
|
52
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
53
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
54
|
+
const exportOptions = __spreadValues({}, inputCopy.options);
|
|
55
|
+
if (!exportOptions.order && orderBy) {
|
|
56
|
+
exportOptions.order = orderByToOrder(
|
|
57
|
+
orderBy
|
|
58
|
+
);
|
|
59
|
+
}
|
|
35
60
|
return client.api.exportTokenMany({
|
|
36
61
|
token: filter,
|
|
37
62
|
options: exportOptions
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,6 +43,7 @@ var import_validation = require('../../lib/validation.cjs');
|
|
|
29
43
|
var import_export_transfer_groups_schema = require('./export-transfer-groups.schema.zod.cjs');
|
|
30
44
|
var zodValidator = (0, import_validation.getValidator)(import_export_transfer_groups_schema.exportTransferGroupsFnInputSchema);
|
|
31
45
|
function exportTransferGroups(options, input, fnOptions) {
|
|
46
|
+
var _a, _b;
|
|
32
47
|
const { client } = options;
|
|
33
48
|
if (input === void 0) {
|
|
34
49
|
return new import_query_builder.QueryBuilder({
|
|
@@ -58,9 +73,16 @@ function exportTransferGroups(options, input, fnOptions) {
|
|
|
58
73
|
if (inputCopy.reverses) {
|
|
59
74
|
filter.reverses = (0, import_utils.getIdentifierFilter)(inputCopy.reverses);
|
|
60
75
|
}
|
|
61
|
-
const
|
|
76
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
77
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
78
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
79
|
+
if (!findOptions.order && orderBy) {
|
|
80
|
+
findOptions.order = (0, import_utils.orderByToOrder)(
|
|
81
|
+
orderBy
|
|
82
|
+
);
|
|
83
|
+
}
|
|
62
84
|
return client.api.exportTransferGroupMany({
|
|
63
85
|
transfer_group: filter,
|
|
64
|
-
options:
|
|
86
|
+
options: findOptions
|
|
65
87
|
});
|
|
66
88
|
}
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
1
18
|
// src/fns/export-transfer-groups/export-transfer-groups.ts
|
|
2
19
|
import { QueryBuilder } from "../../lib/query-builder.browser.js";
|
|
3
|
-
import { getIdentifierFilter,
|
|
20
|
+
import { getIdentifierFilter, orderByToOrder } from "../../lib/utils.browser.js";
|
|
4
21
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
5
22
|
import { exportTransferGroupsFnInputSchema } from "./export-transfer-groups.schema.zod.browser.js";
|
|
6
23
|
var zodValidator = getValidator(exportTransferGroupsFnInputSchema);
|
|
7
24
|
function exportTransferGroups(options, input, fnOptions) {
|
|
25
|
+
var _a, _b;
|
|
8
26
|
const { client } = options;
|
|
9
27
|
if (input === void 0) {
|
|
10
28
|
return new QueryBuilder({
|
|
@@ -34,10 +52,17 @@ function exportTransferGroups(options, input, fnOptions) {
|
|
|
34
52
|
if (inputCopy.reverses) {
|
|
35
53
|
filter.reverses = getIdentifierFilter(inputCopy.reverses);
|
|
36
54
|
}
|
|
37
|
-
const
|
|
55
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
56
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
57
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
58
|
+
if (!findOptions.order && orderBy) {
|
|
59
|
+
findOptions.order = orderByToOrder(
|
|
60
|
+
orderBy
|
|
61
|
+
);
|
|
62
|
+
}
|
|
38
63
|
return client.api.exportTransferGroupMany({
|
|
39
64
|
transfer_group: filter,
|
|
40
|
-
options:
|
|
65
|
+
options: findOptions
|
|
41
66
|
});
|
|
42
67
|
}
|
|
43
68
|
export {
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,6 +43,7 @@ var import_validation = require('../../lib/validation.cjs');
|
|
|
29
43
|
var import_export_transfer_groups_schema = require('./export-transfer-groups.schema.zod.cjs');
|
|
30
44
|
var zodValidator = (0, import_validation.getValidator)(import_export_transfer_groups_schema.exportTransferGroupsFnInputSchema);
|
|
31
45
|
function exportTransferGroups(options, input, fnOptions) {
|
|
46
|
+
var _a, _b;
|
|
32
47
|
const { client } = options;
|
|
33
48
|
if (input === void 0) {
|
|
34
49
|
return new import_query_builder.QueryBuilder({
|
|
@@ -58,10 +73,17 @@ function exportTransferGroups(options, input, fnOptions) {
|
|
|
58
73
|
if (inputCopy.reverses) {
|
|
59
74
|
filter.reverses = (0, import_utils.getIdentifierFilter)(inputCopy.reverses);
|
|
60
75
|
}
|
|
61
|
-
const
|
|
76
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
77
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
78
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
79
|
+
if (!findOptions.order && orderBy) {
|
|
80
|
+
findOptions.order = (0, import_utils.orderByToOrder)(
|
|
81
|
+
orderBy
|
|
82
|
+
);
|
|
83
|
+
}
|
|
62
84
|
return client.api.exportTransferGroupMany({
|
|
63
85
|
transfer_group: filter,
|
|
64
|
-
options:
|
|
86
|
+
options: findOptions
|
|
65
87
|
});
|
|
66
88
|
}
|
|
67
89
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
1
18
|
// src/fns/export-transfer-groups/export-transfer-groups.ts
|
|
2
19
|
import { QueryBuilder } from "../../lib/query-builder";
|
|
3
|
-
import { getIdentifierFilter,
|
|
20
|
+
import { getIdentifierFilter, orderByToOrder } from "../../lib/utils";
|
|
4
21
|
import { getValidator } from "../../lib/validation";
|
|
5
22
|
import { exportTransferGroupsFnInputSchema } from "./export-transfer-groups.schema.zod";
|
|
6
23
|
var zodValidator = getValidator(exportTransferGroupsFnInputSchema);
|
|
7
24
|
function exportTransferGroups(options, input, fnOptions) {
|
|
25
|
+
var _a, _b;
|
|
8
26
|
const { client } = options;
|
|
9
27
|
if (input === void 0) {
|
|
10
28
|
return new QueryBuilder({
|
|
@@ -34,10 +52,17 @@ function exportTransferGroups(options, input, fnOptions) {
|
|
|
34
52
|
if (inputCopy.reverses) {
|
|
35
53
|
filter.reverses = getIdentifierFilter(inputCopy.reverses);
|
|
36
54
|
}
|
|
37
|
-
const
|
|
55
|
+
const orderBy = (_a = inputCopy.options) == null ? void 0 : _a.order_by;
|
|
56
|
+
(_b = inputCopy.options) == null ? true : delete _b.order_by;
|
|
57
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
58
|
+
if (!findOptions.order && orderBy) {
|
|
59
|
+
findOptions.order = orderByToOrder(
|
|
60
|
+
orderBy
|
|
61
|
+
);
|
|
62
|
+
}
|
|
38
63
|
return client.api.exportTransferGroupMany({
|
|
39
64
|
transfer_group: filter,
|
|
40
|
-
options:
|
|
65
|
+
options: findOptions
|
|
41
66
|
});
|
|
42
67
|
}
|
|
43
68
|
export {
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -68,9 +82,16 @@ function exportTransfers(options, input, fnOptions) {
|
|
|
68
82
|
filter.metadata = inputCopy.metadata;
|
|
69
83
|
}
|
|
70
84
|
(_a = inputCopy.options) != null ? _a : inputCopy.options = {};
|
|
71
|
-
const
|
|
85
|
+
const orderBy = inputCopy.options.order_by;
|
|
86
|
+
delete inputCopy.options.order_by;
|
|
87
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
88
|
+
if (!findOptions.order && orderBy) {
|
|
89
|
+
findOptions.order = (0, import_utils.orderByToOrder)(
|
|
90
|
+
orderBy
|
|
91
|
+
);
|
|
92
|
+
}
|
|
72
93
|
return client.api.exportTransferMany({
|
|
73
94
|
transfer: filter,
|
|
74
|
-
options:
|
|
95
|
+
options: findOptions
|
|
75
96
|
});
|
|
76
97
|
}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
|
|
1
18
|
// src/fns/export-transfers/export-transfers.ts
|
|
2
19
|
import { QueryBuilder } from "../../lib/query-builder.browser.js";
|
|
3
20
|
import {
|
|
4
21
|
getForeign,
|
|
5
22
|
getIdentifierFilter,
|
|
6
|
-
|
|
23
|
+
orderByToOrder
|
|
7
24
|
} from "../../lib/utils.browser.js";
|
|
8
25
|
import { getValidator } from "../../lib/validation.browser.js";
|
|
9
26
|
import { exportTransfersFnInputSchema } from "./export-transfers.schema.zod.browser.js";
|
|
@@ -48,10 +65,17 @@ function exportTransfers(options, input, fnOptions) {
|
|
|
48
65
|
filter.metadata = inputCopy.metadata;
|
|
49
66
|
}
|
|
50
67
|
(_a = inputCopy.options) != null ? _a : inputCopy.options = {};
|
|
51
|
-
const
|
|
68
|
+
const orderBy = inputCopy.options.order_by;
|
|
69
|
+
delete inputCopy.options.order_by;
|
|
70
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
71
|
+
if (!findOptions.order && orderBy) {
|
|
72
|
+
findOptions.order = orderByToOrder(
|
|
73
|
+
orderBy
|
|
74
|
+
);
|
|
75
|
+
}
|
|
52
76
|
return client.api.exportTransferMany({
|
|
53
77
|
transfer: filter,
|
|
54
|
-
options:
|
|
78
|
+
options: findOptions
|
|
55
79
|
});
|
|
56
80
|
}
|
|
57
81
|
export {
|
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
6
20
|
var __export = (target, all) => {
|
|
7
21
|
for (var name in all)
|
|
8
22
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -68,10 +82,17 @@ function exportTransfers(options, input, fnOptions) {
|
|
|
68
82
|
filter.metadata = inputCopy.metadata;
|
|
69
83
|
}
|
|
70
84
|
(_a = inputCopy.options) != null ? _a : inputCopy.options = {};
|
|
71
|
-
const
|
|
85
|
+
const orderBy = inputCopy.options.order_by;
|
|
86
|
+
delete inputCopy.options.order_by;
|
|
87
|
+
const findOptions = __spreadValues({}, inputCopy.options);
|
|
88
|
+
if (!findOptions.order && orderBy) {
|
|
89
|
+
findOptions.order = (0, import_utils.orderByToOrder)(
|
|
90
|
+
orderBy
|
|
91
|
+
);
|
|
92
|
+
}
|
|
72
93
|
return client.api.exportTransferMany({
|
|
73
94
|
transfer: filter,
|
|
74
|
-
options:
|
|
95
|
+
options: findOptions
|
|
75
96
|
});
|
|
76
97
|
}
|
|
77
98
|
// Annotate the CommonJS export names for ESM import in node:
|