quetch 0.10.1 → 0.11.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/filterItem.js
CHANGED
package/doc/README.md
CHANGED
|
@@ -99,7 +99,7 @@ Aggregation function.
|
|
|
99
99
|
|
|
100
100
|
#### Defined in
|
|
101
101
|
|
|
102
|
-
[lib/types/AggregateFunction.ts:4](https://github.com/nevoland/quetch/blob/
|
|
102
|
+
[lib/types/AggregateFunction.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/AggregateFunction.ts#L4)
|
|
103
103
|
|
|
104
104
|
___
|
|
105
105
|
|
|
@@ -109,7 +109,7 @@ ___
|
|
|
109
109
|
|
|
110
110
|
#### Defined in
|
|
111
111
|
|
|
112
|
-
[lib/types/AggregateFunctionOperator.ts:3](https://github.com/nevoland/quetch/blob/
|
|
112
|
+
[lib/types/AggregateFunctionOperator.ts:3](https://github.com/nevoland/quetch/blob/72f665b/lib/types/AggregateFunctionOperator.ts#L3)
|
|
113
113
|
|
|
114
114
|
___
|
|
115
115
|
|
|
@@ -119,7 +119,7 @@ ___
|
|
|
119
119
|
|
|
120
120
|
#### Defined in
|
|
121
121
|
|
|
122
|
-
[lib/types/Any.ts:1](https://github.com/nevoland/quetch/blob/
|
|
122
|
+
[lib/types/Any.ts:1](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Any.ts#L1)
|
|
123
123
|
|
|
124
124
|
___
|
|
125
125
|
|
|
@@ -135,7 +135,7 @@ ___
|
|
|
135
135
|
|
|
136
136
|
#### Defined in
|
|
137
137
|
|
|
138
|
-
[lib/types/Context.ts:1](https://github.com/nevoland/quetch/blob/
|
|
138
|
+
[lib/types/Context.ts:1](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Context.ts#L1)
|
|
139
139
|
|
|
140
140
|
___
|
|
141
141
|
|
|
@@ -151,7 +151,7 @@ ___
|
|
|
151
151
|
|
|
152
152
|
#### Defined in
|
|
153
153
|
|
|
154
|
-
[lib/types/CustomFieldAggregateMap.ts:3](https://github.com/nevoland/quetch/blob/
|
|
154
|
+
[lib/types/CustomFieldAggregateMap.ts:3](https://github.com/nevoland/quetch/blob/72f665b/lib/types/CustomFieldAggregateMap.ts#L3)
|
|
155
155
|
|
|
156
156
|
___
|
|
157
157
|
|
|
@@ -167,7 +167,7 @@ ___
|
|
|
167
167
|
|
|
168
168
|
#### Defined in
|
|
169
169
|
|
|
170
|
-
[lib/types/CustomFieldMap.ts:3](https://github.com/nevoland/quetch/blob/
|
|
170
|
+
[lib/types/CustomFieldMap.ts:3](https://github.com/nevoland/quetch/blob/72f665b/lib/types/CustomFieldMap.ts#L3)
|
|
171
171
|
|
|
172
172
|
___
|
|
173
173
|
|
|
@@ -183,7 +183,7 @@ ___
|
|
|
183
183
|
|
|
184
184
|
#### Defined in
|
|
185
185
|
|
|
186
|
-
[lib/types/FieldFunction.ts:4](https://github.com/nevoland/quetch/blob/
|
|
186
|
+
[lib/types/FieldFunction.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FieldFunction.ts#L4)
|
|
187
187
|
|
|
188
188
|
___
|
|
189
189
|
|
|
@@ -208,7 +208,7 @@ Applies a custom field transform function.
|
|
|
208
208
|
|
|
209
209
|
#### Defined in
|
|
210
210
|
|
|
211
|
-
[lib/types/FieldFunctionCustom.ts:4](https://github.com/nevoland/quetch/blob/
|
|
211
|
+
[lib/types/FieldFunctionCustom.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FieldFunctionCustom.ts#L4)
|
|
212
212
|
|
|
213
213
|
___
|
|
214
214
|
|
|
@@ -234,7 +234,7 @@ Formats the date found in a given field, which can be an ISO string date or a ti
|
|
|
234
234
|
|
|
235
235
|
#### Defined in
|
|
236
236
|
|
|
237
|
-
[lib/types/FieldFunctionFormatDate.ts:6](https://github.com/nevoland/quetch/blob/
|
|
237
|
+
[lib/types/FieldFunctionFormatDate.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FieldFunctionFormatDate.ts#L6)
|
|
238
238
|
|
|
239
239
|
___
|
|
240
240
|
|
|
@@ -252,7 +252,7 @@ Return types of custom field functions.
|
|
|
252
252
|
|
|
253
253
|
#### Defined in
|
|
254
254
|
|
|
255
|
-
[lib/types/FieldFunctionReturn.ts:4](https://github.com/nevoland/quetch/blob/
|
|
255
|
+
[lib/types/FieldFunctionReturn.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FieldFunctionReturn.ts#L4)
|
|
256
256
|
|
|
257
257
|
___
|
|
258
258
|
|
|
@@ -270,7 +270,7 @@ Describes a predicate for filtering items.
|
|
|
270
270
|
|
|
271
271
|
#### Defined in
|
|
272
272
|
|
|
273
|
-
[lib/types/Filter.ts:15](https://github.com/nevoland/quetch/blob/
|
|
273
|
+
[lib/types/Filter.ts:15](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Filter.ts#L15)
|
|
274
274
|
|
|
275
275
|
___
|
|
276
276
|
|
|
@@ -297,7 +297,7 @@ Checks if a given array field matches a given array value according to a given o
|
|
|
297
297
|
|
|
298
298
|
#### Defined in
|
|
299
299
|
|
|
300
|
-
[lib/types/FilterArray.ts:7](https://github.com/nevoland/quetch/blob/
|
|
300
|
+
[lib/types/FilterArray.ts:7](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterArray.ts#L7)
|
|
301
301
|
|
|
302
302
|
___
|
|
303
303
|
|
|
@@ -323,7 +323,7 @@ Checks if a given boolean field is `true` or `false`.
|
|
|
323
323
|
|
|
324
324
|
#### Defined in
|
|
325
325
|
|
|
326
|
-
[lib/types/FilterBoolean.ts:6](https://github.com/nevoland/quetch/blob/
|
|
326
|
+
[lib/types/FilterBoolean.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterBoolean.ts#L6)
|
|
327
327
|
|
|
328
328
|
___
|
|
329
329
|
|
|
@@ -351,7 +351,7 @@ If `deep` is `true`, also captures all the descendants.
|
|
|
351
351
|
|
|
352
352
|
#### Defined in
|
|
353
353
|
|
|
354
|
-
[lib/types/FilterChildren.ts:10](https://github.com/nevoland/quetch/blob/
|
|
354
|
+
[lib/types/FilterChildren.ts:10](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterChildren.ts#L10)
|
|
355
355
|
|
|
356
356
|
___
|
|
357
357
|
|
|
@@ -376,7 +376,7 @@ Custom filter where `value(item)` returns `true` for matching items.
|
|
|
376
376
|
|
|
377
377
|
#### Defined in
|
|
378
378
|
|
|
379
|
-
[lib/types/FilterCustom.ts:4](https://github.com/nevoland/quetch/blob/
|
|
379
|
+
[lib/types/FilterCustom.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterCustom.ts#L4)
|
|
380
380
|
|
|
381
381
|
___
|
|
382
382
|
|
|
@@ -394,14 +394,14 @@ Checks if a given field exists.
|
|
|
394
394
|
|
|
395
395
|
#### Type declaration
|
|
396
396
|
|
|
397
|
-
| Name | Type |
|
|
398
|
-
| :------ | :------ |
|
|
399
|
-
| `
|
|
400
|
-
| `
|
|
397
|
+
| Name | Type | Description |
|
|
398
|
+
| :------ | :------ | :------ |
|
|
399
|
+
| `operator` | ``"exist"`` | - |
|
|
400
|
+
| `value` | keyof `T` | The field name for which to check its existence. |
|
|
401
401
|
|
|
402
402
|
#### Defined in
|
|
403
403
|
|
|
404
|
-
[lib/types/FilterField.ts:4](https://github.com/nevoland/quetch/blob/
|
|
404
|
+
[lib/types/FilterField.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterField.ts#L4)
|
|
405
405
|
|
|
406
406
|
___
|
|
407
407
|
|
|
@@ -419,7 +419,7 @@ Joins a list of filters with a specific boolean operator.
|
|
|
419
419
|
|
|
420
420
|
#### Defined in
|
|
421
421
|
|
|
422
|
-
[lib/types/FilterGroup.ts:6](https://github.com/nevoland/quetch/blob/
|
|
422
|
+
[lib/types/FilterGroup.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterGroup.ts#L6)
|
|
423
423
|
|
|
424
424
|
___
|
|
425
425
|
|
|
@@ -438,7 +438,7 @@ Returns object type with field extending the provided `P` type.
|
|
|
438
438
|
|
|
439
439
|
#### Defined in
|
|
440
440
|
|
|
441
|
-
[lib/types/FilterKeys.ts:4](https://github.com/nevoland/quetch/blob/
|
|
441
|
+
[lib/types/FilterKeys.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterKeys.ts#L4)
|
|
442
442
|
|
|
443
443
|
___
|
|
444
444
|
|
|
@@ -464,7 +464,7 @@ Checks if a given number field matches a given number value according to a given
|
|
|
464
464
|
|
|
465
465
|
#### Defined in
|
|
466
466
|
|
|
467
|
-
[lib/types/FilterNumber.ts:6](https://github.com/nevoland/quetch/blob/
|
|
467
|
+
[lib/types/FilterNumber.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterNumber.ts#L6)
|
|
468
468
|
|
|
469
469
|
___
|
|
470
470
|
|
|
@@ -474,7 +474,7 @@ ___
|
|
|
474
474
|
|
|
475
475
|
#### Defined in
|
|
476
476
|
|
|
477
|
-
[lib/types/FilterOperator.ts:3](https://github.com/nevoland/quetch/blob/
|
|
477
|
+
[lib/types/FilterOperator.ts:3](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterOperator.ts#L3)
|
|
478
478
|
|
|
479
479
|
___
|
|
480
480
|
|
|
@@ -500,7 +500,7 @@ Checks if a given string field matches a given string value according to a given
|
|
|
500
500
|
|
|
501
501
|
#### Defined in
|
|
502
502
|
|
|
503
|
-
[lib/types/FilterString.ts:6](https://github.com/nevoland/quetch/blob/
|
|
503
|
+
[lib/types/FilterString.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterString.ts#L6)
|
|
504
504
|
|
|
505
505
|
___
|
|
506
506
|
|
|
@@ -526,7 +526,7 @@ Checks if a given string field has any of the provided values.
|
|
|
526
526
|
|
|
527
527
|
#### Defined in
|
|
528
528
|
|
|
529
|
-
[lib/types/FilterStringIntersect.ts:6](https://github.com/nevoland/quetch/blob/
|
|
529
|
+
[lib/types/FilterStringIntersect.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterStringIntersect.ts#L6)
|
|
530
530
|
|
|
531
531
|
___
|
|
532
532
|
|
|
@@ -556,7 +556,7 @@ Checks if a given string field matches a given regular expression.
|
|
|
556
556
|
|
|
557
557
|
#### Defined in
|
|
558
558
|
|
|
559
|
-
[lib/types/FilterStringMatch.ts:8](https://github.com/nevoland/quetch/blob/
|
|
559
|
+
[lib/types/FilterStringMatch.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/types/FilterStringMatch.ts#L8)
|
|
560
560
|
|
|
561
561
|
___
|
|
562
562
|
|
|
@@ -576,7 +576,7 @@ Returns the type of the property at the specified `K` key.
|
|
|
576
576
|
|
|
577
577
|
#### Defined in
|
|
578
578
|
|
|
579
|
-
[lib/types/Get.ts:4](https://github.com/nevoland/quetch/blob/
|
|
579
|
+
[lib/types/Get.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Get.ts#L4)
|
|
580
580
|
|
|
581
581
|
___
|
|
582
582
|
|
|
@@ -594,7 +594,7 @@ Specifies how items should be grouped.
|
|
|
594
594
|
|
|
595
595
|
#### Defined in
|
|
596
596
|
|
|
597
|
-
[lib/types/Group.ts:4](https://github.com/nevoland/quetch/blob/
|
|
597
|
+
[lib/types/Group.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Group.ts#L4)
|
|
598
598
|
|
|
599
599
|
___
|
|
600
600
|
|
|
@@ -630,7 +630,7 @@ Handles an `input` query and returns an `output` promise, eventually using the `
|
|
|
630
630
|
|
|
631
631
|
#### Defined in
|
|
632
632
|
|
|
633
|
-
[lib/types/Handler.ts:6](https://github.com/nevoland/quetch/blob/
|
|
633
|
+
[lib/types/Handler.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Handler.ts#L6)
|
|
634
634
|
|
|
635
635
|
___
|
|
636
636
|
|
|
@@ -646,7 +646,7 @@ ___
|
|
|
646
646
|
|
|
647
647
|
#### Defined in
|
|
648
648
|
|
|
649
|
-
[lib/types/Immutable.ts:1](https://github.com/nevoland/quetch/blob/
|
|
649
|
+
[lib/types/Immutable.ts:1](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Immutable.ts#L1)
|
|
650
650
|
|
|
651
651
|
___
|
|
652
652
|
|
|
@@ -665,7 +665,7 @@ Injects the custom fields into the entity type.
|
|
|
665
665
|
|
|
666
666
|
#### Defined in
|
|
667
667
|
|
|
668
|
-
[lib/types/InjectCustomFields.ts:8](https://github.com/nevoland/quetch/blob/
|
|
668
|
+
[lib/types/InjectCustomFields.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/types/InjectCustomFields.ts#L8)
|
|
669
669
|
|
|
670
670
|
___
|
|
671
671
|
|
|
@@ -684,7 +684,7 @@ Returns the inferred item type of an array, or an alternative type if it is some
|
|
|
684
684
|
|
|
685
685
|
#### Defined in
|
|
686
686
|
|
|
687
|
-
[lib/types/Item.ts:4](https://github.com/nevoland/quetch/blob/
|
|
687
|
+
[lib/types/Item.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Item.ts#L4)
|
|
688
688
|
|
|
689
689
|
___
|
|
690
690
|
|
|
@@ -694,7 +694,7 @@ ___
|
|
|
694
694
|
|
|
695
695
|
#### Defined in
|
|
696
696
|
|
|
697
|
-
[lib/types/Key.ts:1](https://github.com/nevoland/quetch/blob/
|
|
697
|
+
[lib/types/Key.ts:1](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Key.ts#L1)
|
|
698
698
|
|
|
699
699
|
___
|
|
700
700
|
|
|
@@ -710,7 +710,7 @@ ___
|
|
|
710
710
|
|
|
711
711
|
#### Defined in
|
|
712
712
|
|
|
713
|
-
[lib/types/Mutable.ts:1](https://github.com/nevoland/quetch/blob/
|
|
713
|
+
[lib/types/Mutable.ts:1](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Mutable.ts#L1)
|
|
714
714
|
|
|
715
715
|
___
|
|
716
716
|
|
|
@@ -743,7 +743,7 @@ Handles an `input` query and returns an `output` promise.
|
|
|
743
743
|
|
|
744
744
|
#### Defined in
|
|
745
745
|
|
|
746
|
-
[lib/types/NextHandler.ts:4](https://github.com/nevoland/quetch/blob/
|
|
746
|
+
[lib/types/NextHandler.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/NextHandler.ts#L4)
|
|
747
747
|
|
|
748
748
|
___
|
|
749
749
|
|
|
@@ -761,7 +761,7 @@ Order item.
|
|
|
761
761
|
|
|
762
762
|
#### Defined in
|
|
763
763
|
|
|
764
|
-
[lib/types/Order.ts:4](https://github.com/nevoland/quetch/blob/
|
|
764
|
+
[lib/types/Order.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Order.ts#L4)
|
|
765
765
|
|
|
766
766
|
___
|
|
767
767
|
|
|
@@ -771,7 +771,7 @@ ___
|
|
|
771
771
|
|
|
772
772
|
#### Defined in
|
|
773
773
|
|
|
774
|
-
[lib/types/Parameters.ts:1](https://github.com/nevoland/quetch/blob/
|
|
774
|
+
[lib/types/Parameters.ts:1](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Parameters.ts#L1)
|
|
775
775
|
|
|
776
776
|
___
|
|
777
777
|
|
|
@@ -789,7 +789,7 @@ Query that fetches or mutates an entity.
|
|
|
789
789
|
|
|
790
790
|
#### Defined in
|
|
791
791
|
|
|
792
|
-
[lib/types/Query.ts:14](https://github.com/nevoland/quetch/blob/
|
|
792
|
+
[lib/types/Query.ts:14](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Query.ts#L14)
|
|
793
793
|
|
|
794
794
|
___
|
|
795
795
|
|
|
@@ -818,7 +818,7 @@ Query for computing an aggregated value.
|
|
|
818
818
|
|
|
819
819
|
#### Defined in
|
|
820
820
|
|
|
821
|
-
[lib/types/QueryAggregate.ts:10](https://github.com/nevoland/quetch/blob/
|
|
821
|
+
[lib/types/QueryAggregate.ts:10](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryAggregate.ts#L10)
|
|
822
822
|
|
|
823
823
|
___
|
|
824
824
|
|
|
@@ -847,7 +847,7 @@ Query for creating an item.
|
|
|
847
847
|
|
|
848
848
|
#### Defined in
|
|
849
849
|
|
|
850
|
-
[lib/types/QueryCreate.ts:8](https://github.com/nevoland/quetch/blob/
|
|
850
|
+
[lib/types/QueryCreate.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryCreate.ts#L8)
|
|
851
851
|
|
|
852
852
|
___
|
|
853
853
|
|
|
@@ -876,7 +876,7 @@ Query for creating multiple items.
|
|
|
876
876
|
|
|
877
877
|
#### Defined in
|
|
878
878
|
|
|
879
|
-
[lib/types/QueryCreateMultiple.ts:8](https://github.com/nevoland/quetch/blob/
|
|
879
|
+
[lib/types/QueryCreateMultiple.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryCreateMultiple.ts#L8)
|
|
880
880
|
|
|
881
881
|
___
|
|
882
882
|
|
|
@@ -905,7 +905,7 @@ Query for deleting an item.
|
|
|
905
905
|
|
|
906
906
|
#### Defined in
|
|
907
907
|
|
|
908
|
-
[lib/types/QueryDelete.ts:9](https://github.com/nevoland/quetch/blob/
|
|
908
|
+
[lib/types/QueryDelete.ts:9](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryDelete.ts#L9)
|
|
909
909
|
|
|
910
910
|
___
|
|
911
911
|
|
|
@@ -934,7 +934,7 @@ Query for deleting multiple items.
|
|
|
934
934
|
|
|
935
935
|
#### Defined in
|
|
936
936
|
|
|
937
|
-
[lib/types/QueryDeleteMultiple.ts:9](https://github.com/nevoland/quetch/blob/
|
|
937
|
+
[lib/types/QueryDeleteMultiple.ts:9](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryDeleteMultiple.ts#L9)
|
|
938
938
|
|
|
939
939
|
___
|
|
940
940
|
|
|
@@ -946,7 +946,7 @@ Available query methods.
|
|
|
946
946
|
|
|
947
947
|
#### Defined in
|
|
948
948
|
|
|
949
|
-
[lib/types/QueryMethod.ts:6](https://github.com/nevoland/quetch/blob/
|
|
949
|
+
[lib/types/QueryMethod.ts:6](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryMethod.ts#L6)
|
|
950
950
|
|
|
951
951
|
___
|
|
952
952
|
|
|
@@ -980,7 +980,7 @@ Query for reading a single item.
|
|
|
980
980
|
|
|
981
981
|
#### Defined in
|
|
982
982
|
|
|
983
|
-
[lib/types/QueryRead.ts:10](https://github.com/nevoland/quetch/blob/
|
|
983
|
+
[lib/types/QueryRead.ts:10](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryRead.ts#L10)
|
|
984
984
|
|
|
985
985
|
___
|
|
986
986
|
|
|
@@ -1014,7 +1014,7 @@ Query for getting a list of items.
|
|
|
1014
1014
|
|
|
1015
1015
|
#### Defined in
|
|
1016
1016
|
|
|
1017
|
-
[lib/types/QueryReadMultiple.ts:11](https://github.com/nevoland/quetch/blob/
|
|
1017
|
+
[lib/types/QueryReadMultiple.ts:11](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryReadMultiple.ts#L11)
|
|
1018
1018
|
|
|
1019
1019
|
___
|
|
1020
1020
|
|
|
@@ -1041,7 +1041,7 @@ Settings to use when doing a query.
|
|
|
1041
1041
|
|
|
1042
1042
|
#### Defined in
|
|
1043
1043
|
|
|
1044
|
-
[lib/types/QuerySettings.ts:8](https://github.com/nevoland/quetch/blob/
|
|
1044
|
+
[lib/types/QuerySettings.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QuerySettings.ts#L8)
|
|
1045
1045
|
|
|
1046
1046
|
___
|
|
1047
1047
|
|
|
@@ -1074,7 +1074,7 @@ Query for updating an item.
|
|
|
1074
1074
|
|
|
1075
1075
|
#### Defined in
|
|
1076
1076
|
|
|
1077
|
-
[lib/types/QueryUpdate.ts:9](https://github.com/nevoland/quetch/blob/
|
|
1077
|
+
[lib/types/QueryUpdate.ts:9](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryUpdate.ts#L9)
|
|
1078
1078
|
|
|
1079
1079
|
___
|
|
1080
1080
|
|
|
@@ -1107,7 +1107,7 @@ Query for updating multiple items.
|
|
|
1107
1107
|
|
|
1108
1108
|
#### Defined in
|
|
1109
1109
|
|
|
1110
|
-
[lib/types/QueryUpdateMultiple.ts:10](https://github.com/nevoland/quetch/blob/
|
|
1110
|
+
[lib/types/QueryUpdateMultiple.ts:10](https://github.com/nevoland/quetch/blob/72f665b/lib/types/QueryUpdateMultiple.ts#L10)
|
|
1111
1111
|
|
|
1112
1112
|
___
|
|
1113
1113
|
|
|
@@ -1124,7 +1124,7 @@ ___
|
|
|
1124
1124
|
|
|
1125
1125
|
#### Defined in
|
|
1126
1126
|
|
|
1127
|
-
[lib/types/Result.ts:20](https://github.com/nevoland/quetch/blob/
|
|
1127
|
+
[lib/types/Result.ts:20](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Result.ts#L20)
|
|
1128
1128
|
|
|
1129
1129
|
___
|
|
1130
1130
|
|
|
@@ -1149,7 +1149,7 @@ ___
|
|
|
1149
1149
|
|
|
1150
1150
|
#### Defined in
|
|
1151
1151
|
|
|
1152
|
-
[lib/types/Store.ts:2](https://github.com/nevoland/quetch/blob/
|
|
1152
|
+
[lib/types/Store.ts:2](https://github.com/nevoland/quetch/blob/72f665b/lib/types/Store.ts#L2)
|
|
1153
1153
|
|
|
1154
1154
|
## Functions
|
|
1155
1155
|
|
|
@@ -1190,7 +1190,7 @@ If a query occurs twice, `mergeQuery(query, currentQuery)` is called and the out
|
|
|
1190
1190
|
|
|
1191
1191
|
#### Defined in
|
|
1192
1192
|
|
|
1193
|
-
[lib/middlewares/aggregate.ts:16](https://github.com/nevoland/quetch/blob/
|
|
1193
|
+
[lib/middlewares/aggregate.ts:16](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/aggregate.ts#L16)
|
|
1194
1194
|
|
|
1195
1195
|
___
|
|
1196
1196
|
|
|
@@ -1232,7 +1232,7 @@ const customFetch = combine(
|
|
|
1232
1232
|
|
|
1233
1233
|
#### Defined in
|
|
1234
1234
|
|
|
1235
|
-
[lib/middlewares/branch.ts:21](https://github.com/nevoland/quetch/blob/
|
|
1235
|
+
[lib/middlewares/branch.ts:21](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/branch.ts#L21)
|
|
1236
1236
|
|
|
1237
1237
|
___
|
|
1238
1238
|
|
|
@@ -1267,7 +1267,7 @@ ___
|
|
|
1267
1267
|
|
|
1268
1268
|
#### Defined in
|
|
1269
1269
|
|
|
1270
|
-
[lib/middlewares/cache.ts:8](https://github.com/nevoland/quetch/blob/
|
|
1270
|
+
[lib/middlewares/cache.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/cache.ts#L8)
|
|
1271
1271
|
|
|
1272
1272
|
___
|
|
1273
1273
|
|
|
@@ -1340,7 +1340,7 @@ Handler that combines all provided handlers.
|
|
|
1340
1340
|
|
|
1341
1341
|
#### Defined in
|
|
1342
1342
|
|
|
1343
|
-
[lib/middlewares/combine.ts:801](https://github.com/nevoland/quetch/blob/
|
|
1343
|
+
[lib/middlewares/combine.ts:801](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/combine.ts#L801)
|
|
1344
1344
|
|
|
1345
1345
|
___
|
|
1346
1346
|
|
|
@@ -1362,7 +1362,7 @@ Uncallable handler used to terminate a sequence of handlers combined with `combi
|
|
|
1362
1362
|
|
|
1363
1363
|
#### Defined in
|
|
1364
1364
|
|
|
1365
|
-
[lib/types/NextHandler.ts:4](https://github.com/nevoland/quetch/blob/
|
|
1365
|
+
[lib/types/NextHandler.ts:4](https://github.com/nevoland/quetch/blob/72f665b/lib/types/NextHandler.ts#L4)
|
|
1366
1366
|
|
|
1367
1367
|
___
|
|
1368
1368
|
|
|
@@ -1425,7 +1425,7 @@ typeof `query`
|
|
|
1425
1425
|
|
|
1426
1426
|
#### Defined in
|
|
1427
1427
|
|
|
1428
|
-
[lib/tools/defineCheckQuery.ts:8](https://github.com/nevoland/quetch/blob/
|
|
1428
|
+
[lib/tools/defineCheckQuery.ts:8](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/defineCheckQuery.ts#L8)
|
|
1429
1429
|
|
|
1430
1430
|
___
|
|
1431
1431
|
|
|
@@ -1495,7 +1495,7 @@ A custom fetch function.
|
|
|
1495
1495
|
|
|
1496
1496
|
#### Defined in
|
|
1497
1497
|
|
|
1498
|
-
[lib/tools/defineCustomFetch.ts:11](https://github.com/nevoland/quetch/blob/
|
|
1498
|
+
[lib/tools/defineCustomFetch.ts:11](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/defineCustomFetch.ts#L11)
|
|
1499
1499
|
|
|
1500
1500
|
___
|
|
1501
1501
|
|
|
@@ -1558,7 +1558,7 @@ A curried generic fetch function.
|
|
|
1558
1558
|
|
|
1559
1559
|
#### Defined in
|
|
1560
1560
|
|
|
1561
|
-
[lib/tools/defineGenericFetch.ts:14](https://github.com/nevoland/quetch/blob/
|
|
1561
|
+
[lib/tools/defineGenericFetch.ts:14](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/defineGenericFetch.ts#L14)
|
|
1562
1562
|
|
|
1563
1563
|
___
|
|
1564
1564
|
|
|
@@ -1582,7 +1582,7 @@ Escaped regular expression
|
|
|
1582
1582
|
|
|
1583
1583
|
#### Defined in
|
|
1584
1584
|
|
|
1585
|
-
[lib/tools/escapeRegex.ts:7](https://github.com/nevoland/quetch/blob/
|
|
1585
|
+
[lib/tools/escapeRegex.ts:7](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/escapeRegex.ts#L7)
|
|
1586
1586
|
|
|
1587
1587
|
___
|
|
1588
1588
|
|
|
@@ -1606,7 +1606,7 @@ Handler that returns a promise that resolves to the response.
|
|
|
1606
1606
|
|
|
1607
1607
|
#### Defined in
|
|
1608
1608
|
|
|
1609
|
-
[lib/middlewares/fetchExternal.ts:12](https://github.com/nevoland/quetch/blob/
|
|
1609
|
+
[lib/middlewares/fetchExternal.ts:12](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/fetchExternal.ts#L12)
|
|
1610
1610
|
|
|
1611
1611
|
___
|
|
1612
1612
|
|
|
@@ -1630,7 +1630,7 @@ Promise that resolves to the response.
|
|
|
1630
1630
|
|
|
1631
1631
|
#### Defined in
|
|
1632
1632
|
|
|
1633
|
-
[lib/middlewares/fetchLocal.ts:9](https://github.com/nevoland/quetch/blob/
|
|
1633
|
+
[lib/middlewares/fetchLocal.ts:9](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/fetchLocal.ts#L9)
|
|
1634
1634
|
|
|
1635
1635
|
___
|
|
1636
1636
|
|
|
@@ -1659,7 +1659,7 @@ ___
|
|
|
1659
1659
|
|
|
1660
1660
|
#### Defined in
|
|
1661
1661
|
|
|
1662
|
-
[lib/tools/filterChildren.ts:5](https://github.com/nevoland/quetch/blob/
|
|
1662
|
+
[lib/tools/filterChildren.ts:5](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/filterChildren.ts#L5)
|
|
1663
1663
|
|
|
1664
1664
|
___
|
|
1665
1665
|
|
|
@@ -1685,7 +1685,7 @@ ___
|
|
|
1685
1685
|
|
|
1686
1686
|
#### Defined in
|
|
1687
1687
|
|
|
1688
|
-
[lib/tools/filterFromContext.ts:5](https://github.com/nevoland/quetch/blob/
|
|
1688
|
+
[lib/tools/filterFromContext.ts:5](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/filterFromContext.ts#L5)
|
|
1689
1689
|
|
|
1690
1690
|
___
|
|
1691
1691
|
|
|
@@ -1717,7 +1717,7 @@ Checks wether the provided `value` matches the `filter` or not.
|
|
|
1717
1717
|
|
|
1718
1718
|
#### Defined in
|
|
1719
1719
|
|
|
1720
|
-
[lib/tools/filterItem.ts:17](https://github.com/nevoland/quetch/blob/
|
|
1720
|
+
[lib/tools/filterItem.ts:17](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/filterItem.ts#L17)
|
|
1721
1721
|
|
|
1722
1722
|
___
|
|
1723
1723
|
|
|
@@ -1747,7 +1747,7 @@ ___
|
|
|
1747
1747
|
|
|
1748
1748
|
#### Defined in
|
|
1749
1749
|
|
|
1750
|
-
[lib/middlewares/identity.ts:3](https://github.com/nevoland/quetch/blob/
|
|
1750
|
+
[lib/middlewares/identity.ts:3](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/identity.ts#L3)
|
|
1751
1751
|
|
|
1752
1752
|
___
|
|
1753
1753
|
|
|
@@ -1777,7 +1777,7 @@ Whether the provided filter is a group filter or not.
|
|
|
1777
1777
|
|
|
1778
1778
|
#### Defined in
|
|
1779
1779
|
|
|
1780
|
-
[lib/tools/isFilterGroup.ts:9](https://github.com/nevoland/quetch/blob/
|
|
1780
|
+
[lib/tools/isFilterGroup.ts:9](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/isFilterGroup.ts#L9)
|
|
1781
1781
|
|
|
1782
1782
|
___
|
|
1783
1783
|
|
|
@@ -1810,7 +1810,7 @@ Query handler
|
|
|
1810
1810
|
|
|
1811
1811
|
#### Defined in
|
|
1812
1812
|
|
|
1813
|
-
[lib/middlewares/log.ts:13](https://github.com/nevoland/quetch/blob/
|
|
1813
|
+
[lib/middlewares/log.ts:13](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/log.ts#L13)
|
|
1814
1814
|
|
|
1815
1815
|
___
|
|
1816
1816
|
|
|
@@ -1841,7 +1841,7 @@ ___
|
|
|
1841
1841
|
|
|
1842
1842
|
#### Defined in
|
|
1843
1843
|
|
|
1844
|
-
[lib/tools/normalizeOrder.ts:3](https://github.com/nevoland/quetch/blob/
|
|
1844
|
+
[lib/tools/normalizeOrder.ts:3](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/normalizeOrder.ts#L3)
|
|
1845
1845
|
|
|
1846
1846
|
___
|
|
1847
1847
|
|
|
@@ -1868,7 +1868,7 @@ ___
|
|
|
1868
1868
|
|
|
1869
1869
|
#### Defined in
|
|
1870
1870
|
|
|
1871
|
-
[lib/tools/queryItemList.ts:41](https://github.com/nevoland/quetch/blob/
|
|
1871
|
+
[lib/tools/queryItemList.ts:41](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/queryItemList.ts#L41)
|
|
1872
1872
|
|
|
1873
1873
|
___
|
|
1874
1874
|
|
|
@@ -1897,7 +1897,7 @@ Handler
|
|
|
1897
1897
|
|
|
1898
1898
|
#### Defined in
|
|
1899
1899
|
|
|
1900
|
-
[lib/middlewares/retry.ts:15](https://github.com/nevoland/quetch/blob/
|
|
1900
|
+
[lib/middlewares/retry.ts:15](https://github.com/nevoland/quetch/blob/72f665b/lib/middlewares/retry.ts#L15)
|
|
1901
1901
|
|
|
1902
1902
|
___
|
|
1903
1903
|
|
|
@@ -1928,4 +1928,4 @@ The same array sorted in place.
|
|
|
1928
1928
|
|
|
1929
1929
|
#### Defined in
|
|
1930
1930
|
|
|
1931
|
-
[lib/tools/sortItemList.ts:12](https://github.com/nevoland/quetch/blob/
|
|
1931
|
+
[lib/tools/sortItemList.ts:12](https://github.com/nevoland/quetch/blob/72f665b/lib/tools/sortItemList.ts#L12)
|
package/lib/tools/filterItem.ts
CHANGED
|
@@ -42,7 +42,7 @@ export function filterItem<T extends object>(
|
|
|
42
42
|
}
|
|
43
43
|
case "exist":
|
|
44
44
|
// TODO: Handle path
|
|
45
|
-
return filter.
|
|
45
|
+
return filter.value in value;
|
|
46
46
|
case "equal": {
|
|
47
47
|
if (isArray(filter.value)) {
|
|
48
48
|
const item = value[filter.field] as Any[] | undefined;
|
package/lib/types/FilterField.ts
CHANGED