remove depth limitation from OperatorsOnlyFilters to make it compatible with BaseFilterable

This commit is contained in:
Pedro Guzman committed 2025-06-14 02:38:31 +02:00
1 parent 8443d37275
commit 6e8b7c6262
1 file changed
+5 -12
@@ -50,28 +50,21 @@ type OperatorsOnlyFilters<
RemoteQueryEntryPointsLevel = RemoteQueryEntryPoints, RemoteQueryEntryPointsLevel = RemoteQueryEntryPoints,
Exclusion extends string[] = [], Exclusion extends string[] = [],
Lim extends number = Depth[3] Lim extends number = Depth[3]
> = Lim extends number > = {
? {
$or?: RemoteQueryFilters< $or?: RemoteQueryFilters<
TEntry, TEntry,
RemoteQueryEntryPointsLevel, RemoteQueryEntryPointsLevel,
Exclusion, Exclusion,
Depth[Lim] Lim
>[] >[]
$and?: RemoteQueryFilters< $and?: RemoteQueryFilters<
TEntry, TEntry,
RemoteQueryEntryPointsLevel, RemoteQueryEntryPointsLevel,
Exclusion, Exclusion,
Depth[Lim] Lim
>[] >[]
$not?: RemoteQueryFilters< $not?: RemoteQueryFilters<TEntry, RemoteQueryEntryPointsLevel, Exclusion, Lim>
TEntry, }
RemoteQueryEntryPointsLevel,
Exclusion,
Depth[Lim]
>
}
: never
/** /**
* Extract all available filters from a remote entry point deeply * Extract all available filters from a remote entry point deeply