quetch 0.29.1 → 0.31.0
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/tools/comparatorFieldValues.d.ts +8 -0
- package/dist/tools/comparatorFieldValues.js +26 -0
- package/dist/tools/comparatorFieldValues.js.map +1 -0
- package/dist/tools/get.d.ts +4 -4
- package/dist/tools/get.js +6 -2
- package/dist/tools/get.js.map +1 -1
- package/dist/tools/intrinsicFilter.d.ts +1 -1
- package/dist/tools/intrinsicFilter.js +2 -2
- package/dist/tools/intrinsicFilter.js.map +1 -1
- package/dist/tools/queryItemList.js +2 -2
- package/dist/tools/queryItemList.js.map +1 -1
- package/dist/tools/querySettings.d.ts +8 -0
- package/dist/tools/querySettings.js +16 -0
- package/dist/tools/querySettings.js.map +1 -0
- package/dist/tools/sortItemList.d.ts +4 -4
- package/dist/tools/sortItemList.js +17 -24
- package/dist/tools/sortItemList.js.map +1 -1
- package/dist/tools/testFilter.d.ts +1 -1
- package/dist/tools/testFilter.js +6 -9
- package/dist/tools/testFilter.js.map +1 -1
- package/dist/tools/transformerFilterChildren.d.ts +8 -0
- package/dist/tools/transformerFilterChildren.js +17 -0
- package/dist/tools/transformerFilterChildren.js.map +1 -0
- package/dist/tools.d.ts +3 -0
- package/dist/tools.js +3 -0
- package/dist/tools.js.map +1 -1
- package/dist/types/AggregateFunction.d.ts +1 -1
- package/dist/types/CombineUnion.d.ts +1 -1
- package/dist/types/Context.d.ts +8 -0
- package/dist/types/Decrement.d.ts +4 -0
- package/dist/types/Decrement.js +1 -0
- package/dist/types/Decrement.js.map +1 -0
- package/dist/types/DepthLimit.d.ts +1 -0
- package/dist/types/DepthLimit.js +1 -0
- package/dist/types/DepthLimit.js.map +1 -0
- package/dist/types/FieldKey.d.ts +2 -1
- package/dist/types/FilterChildren.d.ts +1 -2
- package/dist/types/FilterGroup.d.ts +2 -2
- package/dist/types/Get.d.ts +3 -1
- package/dist/types/KeyFiltered.d.ts +1 -1
- package/dist/types/NormalizedPathFieldSettings.d.ts +24 -0
- package/dist/types/NormalizedPathFieldSettings.js +1 -0
- package/dist/types/NormalizedPathFieldSettings.js.map +1 -0
- package/dist/types/Path.d.ts +4 -3
- package/dist/types/PathFiltered.d.ts +4 -3
- package/dist/types/QuerySettings.d.ts +12 -17
- package/dist/types.d.ts +3 -1
- package/doc/README.md +6 -1
- package/doc/classes/RequestError.md +5 -5
- package/doc/functions/aggregate.md +1 -1
- package/doc/functions/branch.md +1 -1
- package/doc/functions/cache.md +1 -1
- package/doc/functions/combine.md +1 -1
- package/doc/functions/comparatorFieldValues.md +33 -0
- package/doc/functions/cork.md +1 -1
- package/doc/functions/defineCheckQuery.md +1 -1
- package/doc/functions/defineCustomFetch.md +1 -1
- package/doc/functions/defineGenericFetch.md +1 -1
- package/doc/functions/escapeRegex.md +1 -1
- package/doc/functions/fetchExternal.md +1 -1
- package/doc/functions/fetchLocal.md +1 -1
- package/doc/functions/fieldListFromFilter.md +1 -1
- package/doc/functions/filterChildren.md +1 -1
- package/doc/functions/filterFromValue.md +1 -1
- package/doc/functions/get.md +2 -2
- package/doc/functions/groupFilters.md +1 -1
- package/doc/functions/identity.md +1 -1
- package/doc/functions/intrinsicFilter.md +8 -8
- package/doc/functions/isFilterGroup.md +1 -1
- package/doc/functions/log.md +1 -1
- package/doc/functions/normalizeOrder.md +1 -1
- package/doc/functions/queryItemList.md +1 -1
- package/doc/functions/querySettings.md +33 -0
- package/doc/functions/retry.md +1 -1
- package/doc/functions/reverseOrder.md +1 -1
- package/doc/functions/sameField.md +1 -1
- package/doc/functions/sortItemList.md +2 -2
- package/doc/functions/splitPath.md +2 -2
- package/doc/functions/testFilter.md +2 -2
- package/doc/functions/transformerFilterChildren.md +43 -0
- package/doc/interfaces/CustomFetch.md +1 -1
- package/doc/type-aliases/AggregateFunction.md +2 -2
- package/doc/type-aliases/AggregateFunctionOperator.md +1 -1
- package/doc/type-aliases/CombineUnion.md +2 -2
- package/doc/type-aliases/Context.md +8 -1
- package/doc/type-aliases/CustomFieldAggregateMap.md +1 -1
- package/doc/type-aliases/CustomFieldMap.md +1 -1
- package/doc/type-aliases/Decrement.md +17 -0
- package/doc/type-aliases/DepthLimit.md +13 -0
- package/doc/type-aliases/Field.md +1 -1
- package/doc/type-aliases/FieldFiltered.md +1 -1
- package/doc/type-aliases/FieldFunction.md +1 -1
- package/doc/type-aliases/FieldFunctionCustom.md +1 -1
- package/doc/type-aliases/FieldFunctionFormatDate.md +1 -1
- package/doc/type-aliases/FieldFunctionReturn.md +1 -1
- package/doc/type-aliases/FieldKey.md +2 -2
- package/doc/type-aliases/FieldMap.md +1 -1
- package/doc/type-aliases/Filter.md +1 -1
- package/doc/type-aliases/FilterArray.md +1 -1
- package/doc/type-aliases/FilterBoolean.md +1 -1
- package/doc/type-aliases/FilterChildren.md +2 -2
- package/doc/type-aliases/FilterCustom.md +1 -1
- package/doc/type-aliases/FilterField.md +1 -1
- package/doc/type-aliases/FilterGroup.md +7 -7
- package/doc/type-aliases/FilterNumber.md +1 -1
- package/doc/type-aliases/FilterOperator.md +1 -1
- package/doc/type-aliases/FilterString.md +1 -1
- package/doc/type-aliases/FilterStringIntersect.md +1 -1
- package/doc/type-aliases/FilterStringMatch.md +1 -1
- package/doc/type-aliases/Get.md +5 -3
- package/doc/type-aliases/Group.md +1 -1
- package/doc/type-aliases/Handler.md +1 -1
- package/doc/type-aliases/Immutable.md +1 -1
- package/doc/type-aliases/InjectCustomFields.md +1 -1
- package/doc/type-aliases/IntersectUnion.md +1 -1
- package/doc/type-aliases/IntrinsicFilter.md +1 -1
- package/doc/type-aliases/Item.md +1 -1
- package/doc/type-aliases/Join.md +1 -1
- package/doc/type-aliases/Key.md +1 -1
- package/doc/type-aliases/KeyFiltered.md +2 -2
- package/doc/type-aliases/KeyFromUnion.md +1 -1
- package/doc/type-aliases/Locale.md +1 -1
- package/doc/type-aliases/NextHandler.md +1 -1
- package/doc/type-aliases/NormalizedPathFieldSettings.md +57 -0
- package/doc/type-aliases/Order.md +1 -1
- package/doc/type-aliases/OrderNormalized.md +1 -1
- package/doc/type-aliases/Parameters.md +1 -1
- package/doc/type-aliases/Path.md +3 -3
- package/doc/type-aliases/PathFiltered.md +3 -3
- package/doc/type-aliases/Primitive.md +1 -1
- package/doc/type-aliases/PrimitiveObject.md +1 -1
- package/doc/type-aliases/Query.md +1 -1
- package/doc/type-aliases/QueryAggregate.md +1 -1
- package/doc/type-aliases/QueryCreate.md +1 -1
- package/doc/type-aliases/QueryCreateMultiple.md +1 -1
- package/doc/type-aliases/QueryDelete.md +1 -1
- package/doc/type-aliases/QueryDeleteMultiple.md +1 -1
- package/doc/type-aliases/QueryMethod.md +1 -1
- package/doc/type-aliases/QueryRead.md +1 -1
- package/doc/type-aliases/QueryReadMultiple.md +1 -1
- package/doc/type-aliases/QuerySettings.md +36 -30
- package/doc/type-aliases/QueryUpdate.md +1 -1
- package/doc/type-aliases/QueryUpdateMultiple.md +1 -1
- package/doc/type-aliases/Result.md +1 -1
- package/doc/type-aliases/Store.md +1 -1
- package/doc/type-aliases/Value.md +1 -1
- package/doc/type-aliases/ValueMap.md +1 -1
- package/doc/variables/CACHE.md +1 -1
- package/doc/variables/FILTER_ANY.md +1 -1
- package/doc/variables/FILTER_NONE.md +1 -1
- package/doc/variables/SELF.md +1 -1
- package/lib/tools/comparatorFieldValues.ts +46 -0
- package/lib/tools/get.ts +9 -4
- package/lib/tools/intrinsicFilter.ts +2 -2
- package/lib/tools/queryItemList.ts +2 -2
- package/lib/tools/querySettings.ts +20 -0
- package/lib/tools/sortItemList.test.ts +31 -8
- package/lib/tools/sortItemList.ts +21 -41
- package/lib/tools/testFilter.test.ts +40 -17
- package/lib/tools/testFilter.ts +8 -25
- package/lib/tools/transformerFilterChildren.ts +34 -0
- package/lib/tools.ts +3 -0
- package/lib/types/AggregateFunction.ts +2 -2
- package/lib/types/CombineUnion.ts +12 -10
- package/lib/types/Context.ts +8 -0
- package/lib/types/Decrement.ts +5 -0
- package/lib/types/DepthLimit.ts +1 -0
- package/lib/types/FieldKey.ts +6 -1
- package/lib/types/FilterChildren.ts +1 -2
- package/lib/types/FilterGroup.ts +2 -2
- package/lib/types/Get.ts +17 -9
- package/lib/types/KeyFiltered.ts +14 -10
- package/lib/types/NormalizedPathFieldSettings.ts +25 -0
- package/lib/types/Path.ts +18 -15
- package/lib/types/PathFiltered.ts +20 -17
- package/lib/types/QuerySettings.ts +16 -17
- package/lib/types.ts +3 -1
- package/package.json +2 -2
- package/dist/types/Increment.d.ts +0 -4
- package/dist/types/Increment.js +0 -1
- package/dist/types/Increment.js.map +0 -1
- package/doc/type-aliases/Increment.md +0 -17
- package/lib/types/Increment.ts +0 -5
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FieldFiltered } from "./FieldFiltered";
|
|
2
|
+
/**
|
|
3
|
+
* Settings for fields that contain path values of items, used for displaying items in a tree.
|
|
4
|
+
*/
|
|
5
|
+
export type NormalizedPathFieldSettings<T> = {
|
|
6
|
+
/**
|
|
7
|
+
* Path to the field that contains the path value of an item, used for displaying items in a tree.
|
|
8
|
+
*
|
|
9
|
+
* @default "path"
|
|
10
|
+
*/
|
|
11
|
+
pathField?: FieldFiltered<T, string>;
|
|
12
|
+
/**
|
|
13
|
+
* String used to escape the separator.
|
|
14
|
+
*
|
|
15
|
+
* @default "\\"
|
|
16
|
+
*/
|
|
17
|
+
pathFieldSeparatorEscape?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Maps path fields to a string used to separate the path nodes of a field value.
|
|
20
|
+
*
|
|
21
|
+
* @default "/"
|
|
22
|
+
*/
|
|
23
|
+
pathFieldSeparator?: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=NormalizedPathFieldSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NormalizedPathFieldSettings.js","sourceRoot":"","sources":["../../lib/types/NormalizedPathFieldSettings.ts"],"names":[],"mappings":""}
|
package/dist/types/Path.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Decrement } from "./Decrement";
|
|
2
|
+
import type { DepthLimit } from "./DepthLimit";
|
|
2
3
|
import type { Key } from "./Key";
|
|
3
4
|
import type { Primitive } from "./Primitive";
|
|
4
|
-
export type Path<T, D =
|
|
5
|
-
[K in keyof T]: readonly [K] | readonly [K, ...Path<T[K],
|
|
5
|
+
export type Path<T, D = DepthLimit> = [unknown] extends [T] ? readonly (Key | never)[] : [0] extends [1 & T] ? readonly (Key | never)[] : D extends -1 ? never : T extends Primitive ? readonly never[] : T extends Array<infer P> ? readonly [number] | readonly [number, ...Path<P, Decrement<D>>] : T extends object ? {
|
|
6
|
+
[K in keyof T]: readonly [K] | readonly [K, ...Path<T[K], Decrement<D>>];
|
|
6
7
|
}[keyof T] : never;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Decrement } from "./Decrement";
|
|
2
|
+
import type { DepthLimit } from "./DepthLimit";
|
|
2
3
|
import type { Key } from "./Key";
|
|
3
|
-
export type PathFiltered<T, P, D =
|
|
4
|
-
[K in keyof T]: Extract<T[K], P> extends never ? readonly [K, ...PathFiltered<T[K], P,
|
|
4
|
+
export type PathFiltered<T, P, D = DepthLimit> = [unknown] extends [T] ? readonly (Key | never)[] : [0] extends [1 & T] ? readonly (Key | never)[] : D extends -1 ? never : T extends P ? readonly never[] : T extends ReadonlyArray<infer I> ? Extract<I, P> extends never ? readonly [number, ...PathFiltered<I, P, Decrement<D>>] : readonly [number] : T extends object ? {
|
|
5
|
+
[K in keyof T]: Extract<T[K], P> extends never ? readonly [K, ...PathFiltered<T[K], P, Decrement<D>>] : readonly [K];
|
|
5
6
|
}[keyof T] : never;
|
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Field } from "./Field";
|
|
2
2
|
import type { FilterChildren } from "./FilterChildren";
|
|
3
3
|
import type { IntrinsicFilter } from "./IntrinsicFilter";
|
|
4
4
|
/**
|
|
5
5
|
* Settings to use when doing a query.
|
|
6
6
|
*/
|
|
7
7
|
export type QuerySettings<T> = {
|
|
8
|
-
/**
|
|
9
|
-
* Path to the field that contains the path value of an item, used for displaying items in a tree.
|
|
10
|
-
*/
|
|
11
|
-
pathField?: FieldFiltered<T, string>;
|
|
12
|
-
/**
|
|
13
|
-
* String used to escape the separator.
|
|
14
|
-
*
|
|
15
|
-
* @default "\\"
|
|
16
|
-
*/
|
|
17
|
-
pathFieldSeparatorEscape?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Maps path fields to a string used to separate the path nodes of a field value.
|
|
20
|
-
*
|
|
21
|
-
* @default "/"
|
|
22
|
-
*/
|
|
23
|
-
pathFieldSeparator?: string;
|
|
24
8
|
/**
|
|
25
9
|
* Returns a filter that captures the items expressed by the provided `FilterChildren`. The return filter cannot use filters of type `FilterChildren` or `FilterContext`.
|
|
26
10
|
*
|
|
@@ -28,6 +12,17 @@ export type QuerySettings<T> = {
|
|
|
28
12
|
* @returns A filter that captures the items expressed by the provided `FilterChildren`.
|
|
29
13
|
*/
|
|
30
14
|
transformFilterChildren?: (filter: FilterChildren<T>) => IntrinsicFilter<T>;
|
|
15
|
+
/**
|
|
16
|
+
* Compares two values of a field for sorting purposes. If not provided, values are compared using the default comparison operators (`>`, `<`, `===`).
|
|
17
|
+
*
|
|
18
|
+
* This function is called only when both `a` and `b` are defined and different. If it returns `undefined`, the default comparison operators are used as a fallback.
|
|
19
|
+
*
|
|
20
|
+
* @param a - The first value to compare.
|
|
21
|
+
* @param b - The second value to compare.
|
|
22
|
+
* @param field - The field for which the values are compared.
|
|
23
|
+
* @returns `-1` if `a` should be sorted before `b`, `1` if `a` should be sorted after `b`, `0` if they are considered equal, or `undefined` to use the default comparison operators.
|
|
24
|
+
*/
|
|
25
|
+
compareFieldValues?<T>(field: Field<T>, a: NonNullable<any>, b: NonNullable<any>): -1 | 0 | 1 | undefined;
|
|
31
26
|
/**
|
|
32
27
|
* Abort signal to abort the query.
|
|
33
28
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type { Context } from "./types/Context";
|
|
|
5
5
|
export type { CustomFetch } from "./types/CustomFetch";
|
|
6
6
|
export type { CustomFieldAggregateMap } from "./types/CustomFieldAggregateMap";
|
|
7
7
|
export type { CustomFieldMap } from "./types/CustomFieldMap";
|
|
8
|
+
export type { Decrement } from "./types/Decrement";
|
|
9
|
+
export type { DepthLimit } from "./types/DepthLimit";
|
|
8
10
|
export type { Field } from "./types/Field";
|
|
9
11
|
export type { FieldFiltered } from "./types/FieldFiltered";
|
|
10
12
|
export type { FieldFunction } from "./types/FieldFunction";
|
|
@@ -29,7 +31,6 @@ export type { Get } from "./types/Get";
|
|
|
29
31
|
export type { Group } from "./types/Group";
|
|
30
32
|
export type { Handler } from "./types/Handler";
|
|
31
33
|
export type { Immutable } from "./types/Immutable";
|
|
32
|
-
export type { Increment } from "./types/Increment";
|
|
33
34
|
export type { InjectCustomFields } from "./types/InjectCustomFields";
|
|
34
35
|
export type { IntersectUnion } from "./types/IntersectUnion";
|
|
35
36
|
export type { IntrinsicFilter } from "./types/IntrinsicFilter";
|
|
@@ -40,6 +41,7 @@ export type { KeyFiltered } from "./types/KeyFiltered";
|
|
|
40
41
|
export type { KeyFromUnion } from "./types/KeyFromUnion";
|
|
41
42
|
export type { Locale } from "./types/Locale";
|
|
42
43
|
export type { NextHandler } from "./types/NextHandler";
|
|
44
|
+
export type { NormalizedPathFieldSettings } from "./types/NormalizedPathFieldSettings";
|
|
43
45
|
export type { Order } from "./types/Order";
|
|
44
46
|
export type { OrderNormalized } from "./types/OrderNormalized";
|
|
45
47
|
export type { Parameters } from "./types/Parameters";
|
package/doc/README.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
- [Context](type-aliases/Context.md)
|
|
21
21
|
- [CustomFieldAggregateMap](type-aliases/CustomFieldAggregateMap.md)
|
|
22
22
|
- [CustomFieldMap](type-aliases/CustomFieldMap.md)
|
|
23
|
+
- [Decrement](type-aliases/Decrement.md)
|
|
24
|
+
- [DepthLimit](type-aliases/DepthLimit.md)
|
|
23
25
|
- [Field](type-aliases/Field.md)
|
|
24
26
|
- [FieldFiltered](type-aliases/FieldFiltered.md)
|
|
25
27
|
- [FieldFunction](type-aliases/FieldFunction.md)
|
|
@@ -44,7 +46,6 @@
|
|
|
44
46
|
- [Group](type-aliases/Group.md)
|
|
45
47
|
- [Handler](type-aliases/Handler.md)
|
|
46
48
|
- [Immutable](type-aliases/Immutable.md)
|
|
47
|
-
- [Increment](type-aliases/Increment.md)
|
|
48
49
|
- [InjectCustomFields](type-aliases/InjectCustomFields.md)
|
|
49
50
|
- [IntersectUnion](type-aliases/IntersectUnion.md)
|
|
50
51
|
- [IntrinsicFilter](type-aliases/IntrinsicFilter.md)
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
- [KeyFromUnion](type-aliases/KeyFromUnion.md)
|
|
56
57
|
- [Locale](type-aliases/Locale.md)
|
|
57
58
|
- [NextHandler](type-aliases/NextHandler.md)
|
|
59
|
+
- [NormalizedPathFieldSettings](type-aliases/NormalizedPathFieldSettings.md)
|
|
58
60
|
- [Order](type-aliases/Order.md)
|
|
59
61
|
- [OrderNormalized](type-aliases/OrderNormalized.md)
|
|
60
62
|
- [Parameters](type-aliases/Parameters.md)
|
|
@@ -92,6 +94,7 @@
|
|
|
92
94
|
- [branch](functions/branch.md)
|
|
93
95
|
- [cache](functions/cache.md)
|
|
94
96
|
- [combine](functions/combine.md)
|
|
97
|
+
- [comparatorFieldValues](functions/comparatorFieldValues.md)
|
|
95
98
|
- [cork](functions/cork.md)
|
|
96
99
|
- [defineCheckQuery](functions/defineCheckQuery.md)
|
|
97
100
|
- [defineCustomFetch](functions/defineCustomFetch.md)
|
|
@@ -110,9 +113,11 @@
|
|
|
110
113
|
- [log](functions/log.md)
|
|
111
114
|
- [normalizeOrder](functions/normalizeOrder.md)
|
|
112
115
|
- [queryItemList](functions/queryItemList.md)
|
|
116
|
+
- [querySettings](functions/querySettings.md)
|
|
113
117
|
- [retry](functions/retry.md)
|
|
114
118
|
- [reverseOrder](functions/reverseOrder.md)
|
|
115
119
|
- [sameField](functions/sameField.md)
|
|
116
120
|
- [sortItemList](functions/sortItemList.md)
|
|
117
121
|
- [splitPath](functions/splitPath.md)
|
|
118
122
|
- [testFilter](functions/testFilter.md)
|
|
123
|
+
- [transformerFilterChildren](functions/transformerFilterChildren.md)
|
|
@@ -50,7 +50,7 @@ Error to be thrown in case there is an issue with the query call. Only instances
|
|
|
50
50
|
|
|
51
51
|
#### Defined in
|
|
52
52
|
|
|
53
|
-
[lib/errors/RequestError.ts:7](https://github.com/nevoland/quetch/blob/
|
|
53
|
+
[lib/errors/RequestError.ts:7](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/errors/RequestError.ts#L7)
|
|
54
54
|
|
|
55
55
|
## Properties
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@ Error to be thrown in case there is an issue with the query call. Only instances
|
|
|
60
60
|
|
|
61
61
|
#### Defined in
|
|
62
62
|
|
|
63
|
-
[lib/errors/RequestError.ts:10](https://github.com/nevoland/quetch/blob/
|
|
63
|
+
[lib/errors/RequestError.ts:10](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/errors/RequestError.ts#L10)
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ Error to be thrown in case there is an issue with the query call. Only instances
|
|
|
70
70
|
|
|
71
71
|
#### Defined in
|
|
72
72
|
|
|
73
|
-
[lib/errors/RequestError.ts:11](https://github.com/nevoland/quetch/blob/
|
|
73
|
+
[lib/errors/RequestError.ts:11](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/errors/RequestError.ts#L11)
|
|
74
74
|
|
|
75
75
|
***
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ Error to be thrown in case there is an issue with the query call. Only instances
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[lib/errors/RequestError.ts:12](https://github.com/nevoland/quetch/blob/
|
|
83
|
+
[lib/errors/RequestError.ts:12](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/errors/RequestError.ts#L12)
|
|
84
84
|
|
|
85
85
|
***
|
|
86
86
|
|
|
@@ -90,4 +90,4 @@ Error to be thrown in case there is an issue with the query call. Only instances
|
|
|
90
90
|
|
|
91
91
|
#### Defined in
|
|
92
92
|
|
|
93
|
-
[lib/errors/RequestError.ts:9](https://github.com/nevoland/quetch/blob/
|
|
93
|
+
[lib/errors/RequestError.ts:9](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/errors/RequestError.ts#L9)
|
|
@@ -58,4 +58,4 @@ If a query occurs twice, `mergeQuery(query, currentQuery)` is called and the out
|
|
|
58
58
|
|
|
59
59
|
## Defined in
|
|
60
60
|
|
|
61
|
-
[lib/middlewares/aggregate.ts:17](https://github.com/nevoland/quetch/blob/
|
|
61
|
+
[lib/middlewares/aggregate.ts:17](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/aggregate.ts#L17)
|
package/doc/functions/branch.md
CHANGED
|
@@ -49,4 +49,4 @@ const customFetch = combine(
|
|
|
49
49
|
|
|
50
50
|
## Defined in
|
|
51
51
|
|
|
52
|
-
[lib/middlewares/branch.ts:21](https://github.com/nevoland/quetch/blob/
|
|
52
|
+
[lib/middlewares/branch.ts:21](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/branch.ts#L21)
|
package/doc/functions/cache.md
CHANGED
|
@@ -68,4 +68,4 @@ Cache store.
|
|
|
68
68
|
|
|
69
69
|
## Defined in
|
|
70
70
|
|
|
71
|
-
[lib/middlewares/cache.ts:8](https://github.com/nevoland/quetch/blob/
|
|
71
|
+
[lib/middlewares/cache.ts:8](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/cache.ts#L8)
|
package/doc/functions/combine.md
CHANGED
|
@@ -116,4 +116,4 @@ Handler that combines all provided handlers.
|
|
|
116
116
|
|
|
117
117
|
## Defined in
|
|
118
118
|
|
|
119
|
-
[lib/middlewares/combine.ts:801](https://github.com/nevoland/quetch/blob/
|
|
119
|
+
[lib/middlewares/combine.ts:801](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/combine.ts#L801)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**quetch**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[quetch](../README.md) / comparatorFieldValues
|
|
6
|
+
|
|
7
|
+
# Function: comparatorFieldValues()
|
|
8
|
+
|
|
9
|
+
> **comparatorFieldValues**\<`T`\>(`options`): [`QuerySettings`](../type-aliases/QuerySettings.md)\<`T`\>\[`"compareFieldValues"`\]
|
|
10
|
+
|
|
11
|
+
Returns a function that transforms a `FilterChildren` into a `FilterStringMatch`.
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### options
|
|
20
|
+
|
|
21
|
+
[`NormalizedPathFieldSettings`](../type-aliases/NormalizedPathFieldSettings.md)\<`T`\> = `EMPTY_OBJECT`
|
|
22
|
+
|
|
23
|
+
Options for the transformer.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
[`QuerySettings`](../type-aliases/QuerySettings.md)\<`T`\>\[`"compareFieldValues"`\]
|
|
28
|
+
|
|
29
|
+
A function that takes a `FilterChildren` and returns a `FilterStringMatch` that matches the paths of the children of the item specified in the `FilterChildren`.
|
|
30
|
+
|
|
31
|
+
## Defined in
|
|
32
|
+
|
|
33
|
+
[lib/tools/comparatorFieldValues.ts:18](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/comparatorFieldValues.ts#L18)
|
package/doc/functions/cork.md
CHANGED
|
@@ -22,4 +22,4 @@ Uncallable handler used to terminate a sequence of handlers combined with `combi
|
|
|
22
22
|
|
|
23
23
|
## Defined in
|
|
24
24
|
|
|
25
|
-
[lib/tools/cork.ts:6](https://github.com/nevoland/quetch/blob/
|
|
25
|
+
[lib/tools/cork.ts:6](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/cork.ts#L6)
|
|
@@ -56,4 +56,4 @@ Function that checks queries.
|
|
|
56
56
|
|
|
57
57
|
## Defined in
|
|
58
58
|
|
|
59
|
-
[lib/tools/defineCheckQuery.ts:8](https://github.com/nevoland/quetch/blob/
|
|
59
|
+
[lib/tools/defineCheckQuery.ts:8](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/defineCheckQuery.ts#L8)
|
|
@@ -68,4 +68,4 @@ A custom fetch function.
|
|
|
68
68
|
|
|
69
69
|
## Defined in
|
|
70
70
|
|
|
71
|
-
[lib/tools/defineCustomFetch.ts:11](https://github.com/nevoland/quetch/blob/
|
|
71
|
+
[lib/tools/defineCustomFetch.ts:11](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/defineCustomFetch.ts#L11)
|
|
@@ -55,4 +55,4 @@ A curried generic fetch function.
|
|
|
55
55
|
|
|
56
56
|
## Defined in
|
|
57
57
|
|
|
58
|
-
[lib/tools/defineGenericFetch.ts:14](https://github.com/nevoland/quetch/blob/
|
|
58
|
+
[lib/tools/defineGenericFetch.ts:14](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/defineGenericFetch.ts#L14)
|
|
@@ -26,4 +26,4 @@ Escaped regular expression
|
|
|
26
26
|
|
|
27
27
|
## Defined in
|
|
28
28
|
|
|
29
|
-
[lib/tools/escapeRegex.ts:7](https://github.com/nevoland/quetch/blob/
|
|
29
|
+
[lib/tools/escapeRegex.ts:7](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/escapeRegex.ts#L7)
|
|
@@ -26,4 +26,4 @@ Handler that returns a promise that resolves to the response.
|
|
|
26
26
|
|
|
27
27
|
## Defined in
|
|
28
28
|
|
|
29
|
-
[lib/middlewares/fetchExternal.ts:12](https://github.com/nevoland/quetch/blob/
|
|
29
|
+
[lib/middlewares/fetchExternal.ts:12](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/fetchExternal.ts#L12)
|
|
@@ -22,4 +22,4 @@ Promise that resolves to the response.
|
|
|
22
22
|
|
|
23
23
|
## Defined in
|
|
24
24
|
|
|
25
|
-
[lib/middlewares/fetchLocal.ts:9](https://github.com/nevoland/quetch/blob/
|
|
25
|
+
[lib/middlewares/fetchLocal.ts:9](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/fetchLocal.ts#L9)
|
|
@@ -30,4 +30,4 @@ A list of fields.
|
|
|
30
30
|
|
|
31
31
|
## Defined in
|
|
32
32
|
|
|
33
|
-
[lib/tools/fieldListFromFilter.ts:11](https://github.com/nevoland/quetch/blob/
|
|
33
|
+
[lib/tools/fieldListFromFilter.ts:11](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/fieldListFromFilter.ts#L11)
|
|
@@ -54,4 +54,4 @@ A filter that can be used to match child items.
|
|
|
54
54
|
|
|
55
55
|
## Defined in
|
|
56
56
|
|
|
57
|
-
[lib/tools/filterChildren.ts:15](https://github.com/nevoland/quetch/blob/
|
|
57
|
+
[lib/tools/filterChildren.ts:15](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/filterChildren.ts#L15)
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
|
|
25
25
|
## Defined in
|
|
26
26
|
|
|
27
|
-
[lib/tools/filterFromValue.ts:8](https://github.com/nevoland/quetch/blob/
|
|
27
|
+
[lib/tools/filterFromValue.ts:8](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/filterFromValue.ts#L8)
|
package/doc/functions/get.md
CHANGED
|
@@ -17,7 +17,7 @@ If the `path` leads to an unknown property, returns `undefined`.
|
|
|
17
17
|
|
|
18
18
|
• **T**
|
|
19
19
|
|
|
20
|
-
• **P**
|
|
20
|
+
• **P**
|
|
21
21
|
|
|
22
22
|
## Parameters
|
|
23
23
|
|
|
@@ -41,4 +41,4 @@ The property value found at the given path, or `undefined` if it cannot be found
|
|
|
41
41
|
|
|
42
42
|
## Defined in
|
|
43
43
|
|
|
44
|
-
[lib/tools/get.ts:
|
|
44
|
+
[lib/tools/get.ts:16](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/get.ts#L16)
|
|
@@ -38,4 +38,4 @@ The filters to group together.
|
|
|
38
38
|
|
|
39
39
|
## Defined in
|
|
40
40
|
|
|
41
|
-
[lib/tools/groupFilters.ts:16](https://github.com/nevoland/quetch/blob/
|
|
41
|
+
[lib/tools/groupFilters.ts:16](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/groupFilters.ts#L16)
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
|
|
35
35
|
## Defined in
|
|
36
36
|
|
|
37
|
-
[lib/middlewares/identity.ts:3](https://github.com/nevoland/quetch/blob/
|
|
37
|
+
[lib/middlewares/identity.ts:3](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/identity.ts#L3)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Function: intrinsicFilter()
|
|
8
8
|
|
|
9
|
-
> **intrinsicFilter**\<`T`\>(`
|
|
9
|
+
> **intrinsicFilter**\<`T`\>(`settings`, `filter`): [`IntrinsicFilter`](../type-aliases/IntrinsicFilter.md)\<`T`\>
|
|
10
10
|
|
|
11
11
|
Transforms a filter into an intrinsic filter by replacing `children` and `notChildren` filters with their transformed versions from the query settings.
|
|
12
12
|
|
|
@@ -16,18 +16,18 @@ Transforms a filter into an intrinsic filter by replacing `children` and `notChi
|
|
|
16
16
|
|
|
17
17
|
## Parameters
|
|
18
18
|
|
|
19
|
-
### filter
|
|
20
|
-
|
|
21
|
-
[`Filter`](../type-aliases/Filter.md)\<`T`\>
|
|
22
|
-
|
|
23
|
-
The filter to transform.
|
|
24
|
-
|
|
25
19
|
### settings
|
|
26
20
|
|
|
27
21
|
`Required`\<`Pick`\<[`QuerySettings`](../type-aliases/QuerySettings.md)\<`T`\>, `"transformFilterChildren"`\>\>
|
|
28
22
|
|
|
29
23
|
The query settings that may contain a `transformFilterChildren` function to transform `children` and `notChildren` filters.
|
|
30
24
|
|
|
25
|
+
### filter
|
|
26
|
+
|
|
27
|
+
[`Filter`](../type-aliases/Filter.md)\<`T`\>
|
|
28
|
+
|
|
29
|
+
The filter to transform.
|
|
30
|
+
|
|
31
31
|
## Returns
|
|
32
32
|
|
|
33
33
|
[`IntrinsicFilter`](../type-aliases/IntrinsicFilter.md)\<`T`\>
|
|
@@ -36,4 +36,4 @@ The transformed intrinsic filter.
|
|
|
36
36
|
|
|
37
37
|
## Defined in
|
|
38
38
|
|
|
39
|
-
[lib/tools/intrinsicFilter.ts:10](https://github.com/nevoland/quetch/blob/
|
|
39
|
+
[lib/tools/intrinsicFilter.ts:10](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/intrinsicFilter.ts#L10)
|
|
@@ -28,4 +28,4 @@ Whether the provided filter is a group filter or not.
|
|
|
28
28
|
|
|
29
29
|
## Defined in
|
|
30
30
|
|
|
31
|
-
[lib/tools/isFilterGroup.ts:9](https://github.com/nevoland/quetch/blob/
|
|
31
|
+
[lib/tools/isFilterGroup.ts:9](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/isFilterGroup.ts#L9)
|
package/doc/functions/log.md
CHANGED
|
@@ -34,4 +34,4 @@ Query handler
|
|
|
34
34
|
|
|
35
35
|
## Defined in
|
|
36
36
|
|
|
37
|
-
[lib/middlewares/log.ts:13](https://github.com/nevoland/quetch/blob/
|
|
37
|
+
[lib/middlewares/log.ts:13](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/log.ts#L13)
|
|
@@ -38,4 +38,4 @@ The normalized order object.
|
|
|
38
38
|
|
|
39
39
|
## Defined in
|
|
40
40
|
|
|
41
|
-
[lib/tools/normalizeOrder.ts:11](https://github.com/nevoland/quetch/blob/
|
|
41
|
+
[lib/tools/normalizeOrder.ts:11](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/normalizeOrder.ts#L11)
|
|
@@ -32,4 +32,4 @@ The result of the query.
|
|
|
32
32
|
|
|
33
33
|
## Defined in
|
|
34
34
|
|
|
35
|
-
[lib/tools/queryItemList.ts:48](https://github.com/nevoland/quetch/blob/
|
|
35
|
+
[lib/tools/queryItemList.ts:48](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/queryItemList.ts#L48)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**quetch**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[quetch](../README.md) / querySettings
|
|
6
|
+
|
|
7
|
+
# Function: querySettings()
|
|
8
|
+
|
|
9
|
+
> **querySettings**\<`T`\>(`settings`): [`QuerySettings`](../type-aliases/QuerySettings.md)\<`T`\>
|
|
10
|
+
|
|
11
|
+
Returns query settings for path fields.
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### settings
|
|
20
|
+
|
|
21
|
+
[`NormalizedPathFieldSettings`](../type-aliases/NormalizedPathFieldSettings.md)\<`T`\> = `EMPTY_OBJECT`
|
|
22
|
+
|
|
23
|
+
Settings for normalizing path fields.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
[`QuerySettings`](../type-aliases/QuerySettings.md)\<`T`\>
|
|
28
|
+
|
|
29
|
+
Query settings for path fields.
|
|
30
|
+
|
|
31
|
+
## Defined in
|
|
32
|
+
|
|
33
|
+
[lib/tools/querySettings.ts:13](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/querySettings.ts#L13)
|
package/doc/functions/retry.md
CHANGED
|
@@ -36,4 +36,4 @@ Handler
|
|
|
36
36
|
|
|
37
37
|
## Defined in
|
|
38
38
|
|
|
39
|
-
[lib/middlewares/retry.ts:15](https://github.com/nevoland/quetch/blob/
|
|
39
|
+
[lib/middlewares/retry.ts:15](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/middlewares/retry.ts#L15)
|
|
@@ -38,4 +38,4 @@ The reversed order.
|
|
|
38
38
|
|
|
39
39
|
## Defined in
|
|
40
40
|
|
|
41
|
-
[lib/tools/reverseOrder.ts:11](https://github.com/nevoland/quetch/blob/
|
|
41
|
+
[lib/tools/reverseOrder.ts:11](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/reverseOrder.ts#L11)
|
|
@@ -32,4 +32,4 @@ Whether the fields are the same.
|
|
|
32
32
|
|
|
33
33
|
## Defined in
|
|
34
34
|
|
|
35
|
-
[lib/tools/sameField.ts:12](https://github.com/nevoland/quetch/blob/
|
|
35
|
+
[lib/tools/sameField.ts:12](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/sameField.ts#L12)
|
|
@@ -18,7 +18,7 @@ Sorts provided `value` array according to the `orderList`.
|
|
|
18
18
|
|
|
19
19
|
### orderList
|
|
20
20
|
|
|
21
|
-
`undefined` | readonly [`Order`](../type-aliases/Order.md)\<`T`\>[]
|
|
21
|
+
`undefined` | `NoInfer`\<readonly [`Order`](../type-aliases/Order.md)\<`T`\>[]\>
|
|
22
22
|
|
|
23
23
|
### value
|
|
24
24
|
|
|
@@ -40,4 +40,4 @@ A new sorted array.
|
|
|
40
40
|
|
|
41
41
|
## Defined in
|
|
42
42
|
|
|
43
|
-
[lib/tools/sortItemList.ts:16](https://github.com/nevoland/quetch/blob/
|
|
43
|
+
[lib/tools/sortItemList.ts:16](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/sortItemList.ts#L16)
|
|
@@ -38,7 +38,7 @@ An array containing the splitted path items if `path` is defined, or a function
|
|
|
38
38
|
|
|
39
39
|
### Defined in
|
|
40
40
|
|
|
41
|
-
[lib/tools/splitPath.ts:22](https://github.com/nevoland/quetch/blob/
|
|
41
|
+
[lib/tools/splitPath.ts:22](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/splitPath.ts#L22)
|
|
42
42
|
|
|
43
43
|
## Call Signature
|
|
44
44
|
|
|
@@ -70,4 +70,4 @@ An array containing the splitted path items if `path` is defined, or a function
|
|
|
70
70
|
|
|
71
71
|
### Defined in
|
|
72
72
|
|
|
73
|
-
[lib/tools/splitPath.ts:27](https://github.com/nevoland/quetch/blob/
|
|
73
|
+
[lib/tools/splitPath.ts:27](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/splitPath.ts#L27)
|
|
@@ -18,7 +18,7 @@ Checks wether the provided `value` matches the `filter` or not.
|
|
|
18
18
|
|
|
19
19
|
### filter
|
|
20
20
|
|
|
21
|
-
`undefined` | [`Filter`](../type-aliases/Filter.md)\<`T
|
|
21
|
+
`undefined` | `NoInfer`\<[`Filter`](../type-aliases/Filter.md)\<`T`\>\>
|
|
22
22
|
|
|
23
23
|
### value
|
|
24
24
|
|
|
@@ -38,4 +38,4 @@ Optional query settings.
|
|
|
38
38
|
|
|
39
39
|
## Defined in
|
|
40
40
|
|
|
41
|
-
[lib/tools/testFilter.ts:
|
|
41
|
+
[lib/tools/testFilter.ts:25](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/testFilter.ts#L25)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[**quetch**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[quetch](../README.md) / transformerFilterChildren
|
|
6
|
+
|
|
7
|
+
# Function: transformerFilterChildren()
|
|
8
|
+
|
|
9
|
+
> **transformerFilterChildren**\<`T`\>(`options`): (`filter`) => [`FilterStringMatch`](../type-aliases/FilterStringMatch.md)\<`T`\>
|
|
10
|
+
|
|
11
|
+
Returns a function that transforms a `FilterChildren` into a `FilterStringMatch`.
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### options
|
|
20
|
+
|
|
21
|
+
[`NormalizedPathFieldSettings`](../type-aliases/NormalizedPathFieldSettings.md)\<`T`\> = `EMPTY_OBJECT`
|
|
22
|
+
|
|
23
|
+
Options for the transformer.
|
|
24
|
+
|
|
25
|
+
## Returns
|
|
26
|
+
|
|
27
|
+
`Function`
|
|
28
|
+
|
|
29
|
+
A function that takes a `FilterChildren` and returns a `FilterStringMatch` that matches the paths of the children of the item specified in the `FilterChildren`.
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
#### filter
|
|
34
|
+
|
|
35
|
+
[`FilterChildren`](../type-aliases/FilterChildren.md)\<`T`\>
|
|
36
|
+
|
|
37
|
+
### Returns
|
|
38
|
+
|
|
39
|
+
[`FilterStringMatch`](../type-aliases/FilterStringMatch.md)\<`T`\>
|
|
40
|
+
|
|
41
|
+
## Defined in
|
|
42
|
+
|
|
43
|
+
[lib/tools/transformerFilterChildren.ts:19](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/tools/transformerFilterChildren.ts#L19)
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
|
|
29
29
|
## Defined in
|
|
30
30
|
|
|
31
|
-
[lib/types/CustomFetch.ts:5](https://github.com/nevoland/quetch/blob/
|
|
31
|
+
[lib/types/CustomFetch.ts:5](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/types/CustomFetch.ts#L5)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Type Alias: AggregateFunction\<T\>
|
|
8
8
|
|
|
9
|
-
> **AggregateFunction**\<`T`\>: `"length"` \| \{`operator`: `"length"`; \} \| \{`filter`: [`Filter`](Filter.md)\<`T`\>;`last`: `boolean`;`operator`: `"index"`; \} \| \{`field`: [`Field`](Field.md)\<`T`\>;`operator`: `"median"` \| `"standardDeviation"` \| `"mean"` \| `"
|
|
9
|
+
> **AggregateFunction**\<`T`\>: `"length"` \| \{`operator`: `"length"`; \} \| \{`filter`: [`Filter`](Filter.md)\<`T`\>;`last`: `boolean`;`operator`: `"index"`; \} \| \{`field`: [`Field`](Field.md)\<`T`\>;`operator`: `"median"` \| `"standardDeviation"` \| `"mean"` \| `"min"` \| `"max"` \| `"variance"` \| `"mode"`; \}
|
|
10
10
|
|
|
11
11
|
Aggregation function.
|
|
12
12
|
|
|
@@ -16,4 +16,4 @@ Aggregation function.
|
|
|
16
16
|
|
|
17
17
|
## Defined in
|
|
18
18
|
|
|
19
|
-
[lib/types/AggregateFunction.ts:7](https://github.com/nevoland/quetch/blob/
|
|
19
|
+
[lib/types/AggregateFunction.ts:7](https://github.com/nevoland/quetch/blob/1cf615b166541d2a753e34c0a2dd4a9474026d7a/lib/types/AggregateFunction.ts#L7)
|