Filter Utilities
Import filter helpers from the main entry point:String Filters
contains(value)
Match if a field contains the given substring.
startsWith(value)
Match if a field starts with the given prefix.
endsWith(value)
Match if a field ends with the given suffix.
equals(value)
Exact match (case-sensitive).
notEquals(value)
Not equal.
Array Filters
oneOf(...values)
Match any of the provided values (OR).
notOneOf(...values)
Exclude all provided values.
Date Filters
dateRange(start?, end?)
Inclusive date range.
after(date) / before(date)
Exclusive date comparisons.
onOrAfter(date) / onOrBefore(date)
Inclusive date comparisons.
Number Filters
numberRange(min?, max?)
Inclusive number range.
greaterThan(value) / lessThan(value)
Exclusive number comparisons.
atLeast(value) / atMost(value)
Inclusive number comparisons.
Boolean Filters
isTrue() / isFalse()
Null Filters
isNull() / isNotNull()
Pagination Utilities
Import pagination helpers from the main entry point:Constants
collectAll(iterator)
Collects all items from an async iterator into an array. Use with caution on large datasets.
collectUpTo(iterator, maxItems)
Collects up to maxItems from an iterator.
getFirst(iterator)
Returns the first item from an iterator, or undefined if empty.
Manual Cursor Pagination
Async Iterator Pattern
Type Guards
Type guards narrow model types at runtime and give access to scope-specific fields without unsafe casts.Base Type Guards
Scoped Type Guards
Each scope sub-export provides type guards for that scope’s model types, available both as direct named exports and via aTypeGuards namespace object:
- Mexico
- Mexico ARI
- Mexico AVI
- Mexico INM
- Mexico JYS
- Mexico MJR
- Mexico MPC
- Mexico TSC
- Mexico VEH
- Mexico CNBV Transmisor
