@inixiative/json-rules 3.14.0 → 3.15.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/index.d.cts CHANGED
@@ -303,6 +303,60 @@ declare const getAggregateOperators: () => readonly Operator[];
303
303
  /** The steps a clock-relative date moves by, finest first. */
304
304
  declare const CLOCK_UNITS: readonly ["second", "minute", "hour", "day", "week", "month", "quarter", "year"];
305
305
  type ClockUnit = (typeof CLOCK_UNITS)[number];
306
+ /** Each relative unit: the Postgres interval field it adds to, its size there, whether it is
307
+ * a calendar unit (whole steps), and the clock unit it moves by. Applied months, then days,
308
+ * then time, as Postgres does. */
309
+ declare const RELATIVE_UNITS: {
310
+ readonly years: {
311
+ readonly interval: "months";
312
+ readonly factor: 12;
313
+ readonly calendar: true;
314
+ readonly clock: "year";
315
+ };
316
+ readonly quarters: {
317
+ readonly interval: "months";
318
+ readonly factor: 3;
319
+ readonly calendar: true;
320
+ readonly clock: "quarter";
321
+ };
322
+ readonly months: {
323
+ readonly interval: "months";
324
+ readonly factor: 1;
325
+ readonly calendar: true;
326
+ readonly clock: "month";
327
+ };
328
+ readonly weeks: {
329
+ readonly interval: "days";
330
+ readonly factor: 7;
331
+ readonly calendar: true;
332
+ readonly clock: "week";
333
+ };
334
+ readonly days: {
335
+ readonly interval: "days";
336
+ readonly factor: 1;
337
+ readonly calendar: true;
338
+ readonly clock: "day";
339
+ };
340
+ readonly hours: {
341
+ readonly interval: "secs";
342
+ readonly factor: 3600;
343
+ readonly calendar: false;
344
+ readonly clock: "hour";
345
+ };
346
+ readonly minutes: {
347
+ readonly interval: "secs";
348
+ readonly factor: 60;
349
+ readonly calendar: false;
350
+ readonly clock: "minute";
351
+ };
352
+ readonly seconds: {
353
+ readonly interval: "secs";
354
+ readonly factor: 1;
355
+ readonly calendar: false;
356
+ readonly clock: "second";
357
+ };
358
+ };
359
+ type RelativeUnit = keyof typeof RELATIVE_UNITS;
306
360
 
307
361
  type OperatorValues = typeof Operator;
308
362
  type ArrayOperatorValues = typeof ArrayOperator;
@@ -564,11 +618,11 @@ declare const check: <TData extends CheckData>(conditions: Condition, data: TDat
564
618
 
565
619
  /**
566
620
  * The finest clock unit a rule's answer can change by while its data stays the same: the smallest
567
- * unit any relative date in the tree names (`{ ago: { hours: 2 } }` → `hour`, `{ this: 'week' }`
568
- * → `week`), at any depth. Null when the rule reads no clock: absolute dates, column compares and
569
- * their offsets, weekday lists. A bound value (`{ bind }`) is read as written, not as what a
570
- * binding may supply. Throws on a unit finer than the engine's `clock.finestUnit`, as evaluating
571
- * the rule does.
621
+ * unit any relative date in the tree names, or the offset moving one (`{ ago: { hours: 2 } }` →
622
+ * `hour`, `{ this: 'week' }` → `week`), at any depth. Null when the rule reads no clock: absolute
623
+ * dates, column compares and their offsets, weekday lists. A bound value (`{ bind }`) is read as
624
+ * written, not as what a binding may supply. Throws on a unit finer than the engine's
625
+ * `clock.finestUnit`, as evaluating the rule does.
572
626
  */
573
627
  declare const clockUnit: (condition: Condition) => ClockUnit | null;
574
628
 
@@ -598,19 +652,28 @@ type EngineGlobalsState = {
598
652
  dialect: SqlDialect;
599
653
  };
600
654
  clock: {
601
- /** The finest clock unit a rule may read: a rule naming a finer one fails to evaluate. */
602
- finestUnit: ClockUnit;
655
+ /** The finest clock unit a rule may read, singular or plural: a rule naming a finer one
656
+ * fails to evaluate. */
657
+ finestUnit: ClockUnit | RelativeUnit;
603
658
  };
604
659
  };
660
+ /** Each path `engineGlobals` reads and writes, and the values it takes. */
661
+ type EngineGlobalValues = {
662
+ 'string.caseInsensitive': EngineGlobalsState['string']['caseInsensitive'];
663
+ 'string.fuzzy': EngineGlobalsState['string']['fuzzy'];
664
+ 'prismaOptions.datasource.provider': EngineGlobalsState['prismaOptions']['datasource']['provider'];
665
+ 'prismaOptions.anyNull': EngineGlobalsState['prismaOptions']['anyNull'];
666
+ 'sql.dialect': EngineGlobalsState['sql']['dialect'];
667
+ 'clock.finestUnit': EngineGlobalsState['clock']['finestUnit'];
668
+ };
669
+ type EngineGlobalPath = keyof EngineGlobalValues;
605
670
  type DeepPartial<T> = {
606
671
  [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
607
672
  };
608
- /** Process-wide defaults, read and written by dotted path (`string.caseInsensitive`,
609
- * `string.fuzzy`, `prismaOptions.datasource.provider`, `prismaOptions.anyNull`, `sql.dialect`,
610
- * `clock.finestUnit`). */
673
+ /** Process-wide defaults, read and written by dotted path (`EngineGlobalPath`). */
611
674
  declare const engineGlobals: {
612
- set: (path: string, value: unknown) => void;
613
- get: (path: string) => unknown;
675
+ set: <P extends EngineGlobalPath>(path: P, value: EngineGlobalValues[P]) => void;
676
+ get: <P extends EngineGlobalPath>(path: P) => EngineGlobalValues[P];
614
677
  reset: () => void;
615
678
  with: <T>(partial: DeepPartial<EngineGlobalsState>, fn: () => T) => T;
616
679
  };
@@ -1306,4 +1369,4 @@ declare const getConditionShapeKeys: (shape: ConditionShape) => ConditionShapeKe
1306
1369
  */
1307
1370
  declare const orderRecords: <T>(items: readonly T[], orderBy: OrderBy) => T[];
1308
1371
 
1309
- export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type All, type Any, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, CLOCK_UNITS, type CheckData, type CheckOptions, type ClockUnit, type CompileOptions, type Condition, ConditionShape, type ConditionShapeKeys, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, type DateOffset, DateOperator, type DateRule, type DateRuleValue, type EdgeExpr, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensClamps, type LensNarrowing, type LensPathHop, type LensPathResolution, LensRefusal, type LensRelationSelect, type LensSelect, type LensSelectOptions, type LensValue, type LensWhereSql, type LensWhereSqlOptions, type ListBindingsOptions, type Magnitude, type MaterializeSourceQueryOptions, type ModelDefaultNarrowing, type ModelEntry, type ModelNarrowing, NUMERIC_KINDS, type NarrowingDefaults, type NumberOffset, Operator, type OperatorFamily, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectLensOptions, type ProjectRowsOptions, type ProjectedVisit, type RelativeUnits, type RollingExpr, type Row, type Rule, type RuleDescription, type RuleScalar, type RuleSourceDescription, RuleTarget, type RuleValue, type ScopeOutOfBounds, type ScopeRef, type ScopedRef, type SortDir, type SourceEntry, type SourceOption, SourceOptionOrder, type SourcePrismaQuery, type SourceQuery, type SourceRowShape, type SourceSelect, type SourceSpec, type SourceSqlQuery, type SourceValues, SqlDialect, type StepRef, type StoredLens, type StrictAggregateRule, type StrictAll, type StrictAny, type StrictArrayCountRule, type StrictArrayPredicateRule, type StrictArrayPresenceRule, type StrictArrayRule, type StrictCondition, type StrictContainsRule, type StrictDateComparisonRule, type StrictDateDayRule, type StrictDateRangeRule, type StrictDateRule, type StrictEqualityRule, type StrictIfThenElse, type StrictMembershipRule, type StrictOrderedComparisonRule, type StrictPatternRule, type StrictPresenceRule, type StrictRangeRule, type StrictRule, type StrictStringBoundaryRule, type TimeZoneConfig, type ToPrismaOptions, type ToPrismaResult, type ToSqlOptions, type ToSqlResult, UsageError, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, ValueShape, type ValueSourceFields, type ValueSourceOf, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidFieldMaps, assertValidNarrowing, assertValidRule, bindLens, bindRule, check, clampLens, clockUnit, coerceRule, composeLens, createLens, describeRule, describeRuleSources, engineGlobals, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, lensVisit, listBindings, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, walkLensPath };
1372
+ export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type All, type Any, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, CLOCK_UNITS, type CheckData, type CheckOptions, type ClockUnit, type CompileOptions, type Condition, ConditionShape, type ConditionShapeKeys, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, type DateOffset, DateOperator, type DateRule, type DateRuleValue, type EdgeExpr, type EngineGlobalPath, type EngineGlobalValues, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensClamps, type LensNarrowing, type LensPathHop, type LensPathResolution, LensRefusal, type LensRelationSelect, type LensSelect, type LensSelectOptions, type LensValue, type LensWhereSql, type LensWhereSqlOptions, type ListBindingsOptions, type Magnitude, type MaterializeSourceQueryOptions, type ModelDefaultNarrowing, type ModelEntry, type ModelNarrowing, NUMERIC_KINDS, type NarrowingDefaults, type NumberOffset, Operator, type OperatorFamily, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectLensOptions, type ProjectRowsOptions, type ProjectedVisit, type RelativeUnit, type RelativeUnits, type RollingExpr, type Row, type Rule, type RuleDescription, type RuleScalar, type RuleSourceDescription, RuleTarget, type RuleValue, type ScopeOutOfBounds, type ScopeRef, type ScopedRef, type SortDir, type SourceEntry, type SourceOption, SourceOptionOrder, type SourcePrismaQuery, type SourceQuery, type SourceRowShape, type SourceSelect, type SourceSpec, type SourceSqlQuery, type SourceValues, SqlDialect, type StepRef, type StoredLens, type StrictAggregateRule, type StrictAll, type StrictAny, type StrictArrayCountRule, type StrictArrayPredicateRule, type StrictArrayPresenceRule, type StrictArrayRule, type StrictCondition, type StrictContainsRule, type StrictDateComparisonRule, type StrictDateDayRule, type StrictDateRangeRule, type StrictDateRule, type StrictEqualityRule, type StrictIfThenElse, type StrictMembershipRule, type StrictOrderedComparisonRule, type StrictPatternRule, type StrictPresenceRule, type StrictRangeRule, type StrictRule, type StrictStringBoundaryRule, type TimeZoneConfig, type ToPrismaOptions, type ToPrismaResult, type ToSqlOptions, type ToSqlResult, UsageError, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, ValueShape, type ValueSourceFields, type ValueSourceOf, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidFieldMaps, assertValidNarrowing, assertValidRule, bindLens, bindRule, check, clampLens, clockUnit, coerceRule, composeLens, createLens, describeRule, describeRuleSources, engineGlobals, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, lensVisit, listBindings, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, walkLensPath };
package/dist/index.d.ts CHANGED
@@ -303,6 +303,60 @@ declare const getAggregateOperators: () => readonly Operator[];
303
303
  /** The steps a clock-relative date moves by, finest first. */
304
304
  declare const CLOCK_UNITS: readonly ["second", "minute", "hour", "day", "week", "month", "quarter", "year"];
305
305
  type ClockUnit = (typeof CLOCK_UNITS)[number];
306
+ /** Each relative unit: the Postgres interval field it adds to, its size there, whether it is
307
+ * a calendar unit (whole steps), and the clock unit it moves by. Applied months, then days,
308
+ * then time, as Postgres does. */
309
+ declare const RELATIVE_UNITS: {
310
+ readonly years: {
311
+ readonly interval: "months";
312
+ readonly factor: 12;
313
+ readonly calendar: true;
314
+ readonly clock: "year";
315
+ };
316
+ readonly quarters: {
317
+ readonly interval: "months";
318
+ readonly factor: 3;
319
+ readonly calendar: true;
320
+ readonly clock: "quarter";
321
+ };
322
+ readonly months: {
323
+ readonly interval: "months";
324
+ readonly factor: 1;
325
+ readonly calendar: true;
326
+ readonly clock: "month";
327
+ };
328
+ readonly weeks: {
329
+ readonly interval: "days";
330
+ readonly factor: 7;
331
+ readonly calendar: true;
332
+ readonly clock: "week";
333
+ };
334
+ readonly days: {
335
+ readonly interval: "days";
336
+ readonly factor: 1;
337
+ readonly calendar: true;
338
+ readonly clock: "day";
339
+ };
340
+ readonly hours: {
341
+ readonly interval: "secs";
342
+ readonly factor: 3600;
343
+ readonly calendar: false;
344
+ readonly clock: "hour";
345
+ };
346
+ readonly minutes: {
347
+ readonly interval: "secs";
348
+ readonly factor: 60;
349
+ readonly calendar: false;
350
+ readonly clock: "minute";
351
+ };
352
+ readonly seconds: {
353
+ readonly interval: "secs";
354
+ readonly factor: 1;
355
+ readonly calendar: false;
356
+ readonly clock: "second";
357
+ };
358
+ };
359
+ type RelativeUnit = keyof typeof RELATIVE_UNITS;
306
360
 
307
361
  type OperatorValues = typeof Operator;
308
362
  type ArrayOperatorValues = typeof ArrayOperator;
@@ -564,11 +618,11 @@ declare const check: <TData extends CheckData>(conditions: Condition, data: TDat
564
618
 
565
619
  /**
566
620
  * The finest clock unit a rule's answer can change by while its data stays the same: the smallest
567
- * unit any relative date in the tree names (`{ ago: { hours: 2 } }` → `hour`, `{ this: 'week' }`
568
- * → `week`), at any depth. Null when the rule reads no clock: absolute dates, column compares and
569
- * their offsets, weekday lists. A bound value (`{ bind }`) is read as written, not as what a
570
- * binding may supply. Throws on a unit finer than the engine's `clock.finestUnit`, as evaluating
571
- * the rule does.
621
+ * unit any relative date in the tree names, or the offset moving one (`{ ago: { hours: 2 } }` →
622
+ * `hour`, `{ this: 'week' }` → `week`), at any depth. Null when the rule reads no clock: absolute
623
+ * dates, column compares and their offsets, weekday lists. A bound value (`{ bind }`) is read as
624
+ * written, not as what a binding may supply. Throws on a unit finer than the engine's
625
+ * `clock.finestUnit`, as evaluating the rule does.
572
626
  */
573
627
  declare const clockUnit: (condition: Condition) => ClockUnit | null;
574
628
 
@@ -598,19 +652,28 @@ type EngineGlobalsState = {
598
652
  dialect: SqlDialect;
599
653
  };
600
654
  clock: {
601
- /** The finest clock unit a rule may read: a rule naming a finer one fails to evaluate. */
602
- finestUnit: ClockUnit;
655
+ /** The finest clock unit a rule may read, singular or plural: a rule naming a finer one
656
+ * fails to evaluate. */
657
+ finestUnit: ClockUnit | RelativeUnit;
603
658
  };
604
659
  };
660
+ /** Each path `engineGlobals` reads and writes, and the values it takes. */
661
+ type EngineGlobalValues = {
662
+ 'string.caseInsensitive': EngineGlobalsState['string']['caseInsensitive'];
663
+ 'string.fuzzy': EngineGlobalsState['string']['fuzzy'];
664
+ 'prismaOptions.datasource.provider': EngineGlobalsState['prismaOptions']['datasource']['provider'];
665
+ 'prismaOptions.anyNull': EngineGlobalsState['prismaOptions']['anyNull'];
666
+ 'sql.dialect': EngineGlobalsState['sql']['dialect'];
667
+ 'clock.finestUnit': EngineGlobalsState['clock']['finestUnit'];
668
+ };
669
+ type EngineGlobalPath = keyof EngineGlobalValues;
605
670
  type DeepPartial<T> = {
606
671
  [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
607
672
  };
608
- /** Process-wide defaults, read and written by dotted path (`string.caseInsensitive`,
609
- * `string.fuzzy`, `prismaOptions.datasource.provider`, `prismaOptions.anyNull`, `sql.dialect`,
610
- * `clock.finestUnit`). */
673
+ /** Process-wide defaults, read and written by dotted path (`EngineGlobalPath`). */
611
674
  declare const engineGlobals: {
612
- set: (path: string, value: unknown) => void;
613
- get: (path: string) => unknown;
675
+ set: <P extends EngineGlobalPath>(path: P, value: EngineGlobalValues[P]) => void;
676
+ get: <P extends EngineGlobalPath>(path: P) => EngineGlobalValues[P];
614
677
  reset: () => void;
615
678
  with: <T>(partial: DeepPartial<EngineGlobalsState>, fn: () => T) => T;
616
679
  };
@@ -1306,4 +1369,4 @@ declare const getConditionShapeKeys: (shape: ConditionShape) => ConditionShapeKe
1306
1369
  */
1307
1370
  declare const orderRecords: <T>(items: readonly T[], orderBy: OrderBy) => T[];
1308
1371
 
1309
- export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type All, type Any, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, CLOCK_UNITS, type CheckData, type CheckOptions, type ClockUnit, type CompileOptions, type Condition, ConditionShape, type ConditionShapeKeys, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, type DateOffset, DateOperator, type DateRule, type DateRuleValue, type EdgeExpr, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensClamps, type LensNarrowing, type LensPathHop, type LensPathResolution, LensRefusal, type LensRelationSelect, type LensSelect, type LensSelectOptions, type LensValue, type LensWhereSql, type LensWhereSqlOptions, type ListBindingsOptions, type Magnitude, type MaterializeSourceQueryOptions, type ModelDefaultNarrowing, type ModelEntry, type ModelNarrowing, NUMERIC_KINDS, type NarrowingDefaults, type NumberOffset, Operator, type OperatorFamily, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectLensOptions, type ProjectRowsOptions, type ProjectedVisit, type RelativeUnits, type RollingExpr, type Row, type Rule, type RuleDescription, type RuleScalar, type RuleSourceDescription, RuleTarget, type RuleValue, type ScopeOutOfBounds, type ScopeRef, type ScopedRef, type SortDir, type SourceEntry, type SourceOption, SourceOptionOrder, type SourcePrismaQuery, type SourceQuery, type SourceRowShape, type SourceSelect, type SourceSpec, type SourceSqlQuery, type SourceValues, SqlDialect, type StepRef, type StoredLens, type StrictAggregateRule, type StrictAll, type StrictAny, type StrictArrayCountRule, type StrictArrayPredicateRule, type StrictArrayPresenceRule, type StrictArrayRule, type StrictCondition, type StrictContainsRule, type StrictDateComparisonRule, type StrictDateDayRule, type StrictDateRangeRule, type StrictDateRule, type StrictEqualityRule, type StrictIfThenElse, type StrictMembershipRule, type StrictOrderedComparisonRule, type StrictPatternRule, type StrictPresenceRule, type StrictRangeRule, type StrictRule, type StrictStringBoundaryRule, type TimeZoneConfig, type ToPrismaOptions, type ToPrismaResult, type ToSqlOptions, type ToSqlResult, UsageError, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, ValueShape, type ValueSourceFields, type ValueSourceOf, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidFieldMaps, assertValidNarrowing, assertValidRule, bindLens, bindRule, check, clampLens, clockUnit, coerceRule, composeLens, createLens, describeRule, describeRuleSources, engineGlobals, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, lensVisit, listBindings, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, walkLensPath };
1372
+ export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type All, type Any, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, CLOCK_UNITS, type CheckData, type CheckOptions, type ClockUnit, type CompileOptions, type Condition, ConditionShape, type ConditionShapeKeys, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, type DateOffset, DateOperator, type DateRule, type DateRuleValue, type EdgeExpr, type EngineGlobalPath, type EngineGlobalValues, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensClamps, type LensNarrowing, type LensPathHop, type LensPathResolution, LensRefusal, type LensRelationSelect, type LensSelect, type LensSelectOptions, type LensValue, type LensWhereSql, type LensWhereSqlOptions, type ListBindingsOptions, type Magnitude, type MaterializeSourceQueryOptions, type ModelDefaultNarrowing, type ModelEntry, type ModelNarrowing, NUMERIC_KINDS, type NarrowingDefaults, type NumberOffset, Operator, type OperatorFamily, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectLensOptions, type ProjectRowsOptions, type ProjectedVisit, type RelativeUnit, type RelativeUnits, type RollingExpr, type Row, type Rule, type RuleDescription, type RuleScalar, type RuleSourceDescription, RuleTarget, type RuleValue, type ScopeOutOfBounds, type ScopeRef, type ScopedRef, type SortDir, type SourceEntry, type SourceOption, SourceOptionOrder, type SourcePrismaQuery, type SourceQuery, type SourceRowShape, type SourceSelect, type SourceSpec, type SourceSqlQuery, type SourceValues, SqlDialect, type StepRef, type StoredLens, type StrictAggregateRule, type StrictAll, type StrictAny, type StrictArrayCountRule, type StrictArrayPredicateRule, type StrictArrayPresenceRule, type StrictArrayRule, type StrictCondition, type StrictContainsRule, type StrictDateComparisonRule, type StrictDateDayRule, type StrictDateRangeRule, type StrictDateRule, type StrictEqualityRule, type StrictIfThenElse, type StrictMembershipRule, type StrictOrderedComparisonRule, type StrictPatternRule, type StrictPresenceRule, type StrictRangeRule, type StrictRule, type StrictStringBoundaryRule, type TimeZoneConfig, type ToPrismaOptions, type ToPrismaResult, type ToSqlOptions, type ToSqlResult, UsageError, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, ValueShape, type ValueSourceFields, type ValueSourceOf, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidFieldMaps, assertValidNarrowing, assertValidRule, bindLens, bindRule, check, clampLens, clockUnit, coerceRule, composeLens, createLens, describeRule, describeRuleSources, engineGlobals, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, lensVisit, listBindings, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, walkLensPath };