@inixiative/json-rules 2.16.0 → 2.17.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
@@ -382,8 +382,8 @@ declare const requiredBindings: (condition: Condition) => Set<string>;
382
382
  */
383
383
  declare const resolveBindings: (condition: Condition, bindings: Record<string, RuleValue>) => Condition;
384
384
 
385
- type Row$2 = Record<string, unknown>;
386
- type CheckData = Row$2 | unknown[];
385
+ type Row$3 = Record<string, unknown>;
386
+ type CheckData = Row$3 | unknown[];
387
387
  type CheckOptions = {
388
388
  context?: CheckData;
389
389
  bindings?: Record<string, RuleValue>;
@@ -416,10 +416,12 @@ declare const resolveCaseInsensitive: (ruleFlag?: boolean) => boolean;
416
416
  declare const resolveFuzzy: (ruleFlag?: boolean | FuzzyConfig) => FuzzyConfig | false;
417
417
 
418
418
  type PrismaWhere = Record<string, unknown>;
419
- /** A selectable option — the standard `<select>` shape: a value with an optional display label. */
419
+ /** A selectable option — the standard `<select>` shape: a value with an optional display
420
+ * label, plus the partition key when the source declares a `groupBy`. */
420
421
  type SourceOption = {
421
422
  value: string;
422
423
  label?: string;
424
+ group?: string;
423
425
  };
424
426
  type FieldMapEntry = {
425
427
  kind: 'scalar' | 'object' | 'enum' | 'bridge';
@@ -517,11 +519,11 @@ type FieldMapSet = {
517
519
  bridges?: Bridge[];
518
520
  };
519
521
 
520
- type Row$1 = Record<string, unknown>;
522
+ type Row$2 = Record<string, unknown>;
521
523
  type BridgeDictionary = Record<string, // map name
522
524
  Record<string, // model name
523
- Record<string, Record<string, Row$1 | Row$1[]>>>>;
524
- declare const buildBridgeDictionary: (set: FieldMapSet, rawData: Record<string, Row$1[]>) => BridgeDictionary;
525
+ Record<string, Record<string, Row$2 | Row$2[]>>>>;
526
+ declare const buildBridgeDictionary: (set: FieldMapSet, rawData: Record<string, Row$2[]>) => BridgeDictionary;
525
527
 
526
528
  declare const stitchFieldMaps: (set: FieldMapSet) => FieldMapSet;
527
529
 
@@ -567,15 +569,24 @@ type ModelDefaultNarrowing = {
567
569
  sources?: Record<string, SourceValue>;
568
570
  };
569
571
  /**
570
- * A sourced field's eligibility `where` plus an optional sibling display-label column.
571
- * At least one key is required `{}` is not a Condition; the unconstrained spelling is `true`.
572
+ * A sourced field's eligibility `where` plus an optional sibling display-label column
573
+ * and an optional `groupBy`a dotted path (to-one hops only, ending on a scalar)
574
+ * whose value partitions the option set. Grouped options carry `group`; the classic
575
+ * flat set is the ungrouped case. At least one key is required — `{}` is not a
576
+ * Condition; the unconstrained spelling is `true`.
572
577
  */
573
578
  type SourceSpec = {
574
579
  where: Condition;
575
580
  label?: string;
581
+ groupBy?: string;
576
582
  } | {
577
583
  where?: Condition;
578
584
  label: string;
585
+ groupBy?: string;
586
+ } | {
587
+ where?: Condition;
588
+ label?: string;
589
+ groupBy: string;
579
590
  };
580
591
  /** A `sources` entry: a bare eligibility `Condition`, or a richer `SourceSpec`. */
581
592
  type SourceValue = Condition | SourceSpec;
@@ -669,6 +680,8 @@ type ProjectedVisit = {
669
680
  sources: Record<string, Condition[]>;
670
681
  /** Per-field display-label column for a sourced field (from a SourceSpec's `label`). */
671
682
  sourceLabels: Record<string, string>;
683
+ /** Per-field option-partition path for a sourced field (from a SourceSpec's `groupBy`). */
684
+ sourceGroupBys: Record<string, string>;
672
685
  };
673
686
  type PathProjection = Map<string, ProjectedVisit>;
674
687
  /**
@@ -693,10 +706,18 @@ declare const exposedSurface: (lensOrNarrowing: Lens | LensNarrowing, opts?: Pro
693
706
 
694
707
  declare const validateNarrowing: (narrowing: LensNarrowing) => void;
695
708
 
709
+ /** Prisma `select` shape — nested for a grouped source's relation path. */
710
+ type SourceSelect = {
711
+ [field: string]: true | {
712
+ select: SourceSelect;
713
+ };
714
+ };
696
715
  type SourcePrismaQuery = {
697
716
  model: string;
698
- distinct: string[];
699
- select: Record<string, true>;
717
+ /** Absent for grouped sources — DISTINCT on the value column alone would collapse
718
+ * same-value rows across groups; dedup happens in `sourceValuesFromQueryRows`. */
719
+ distinct?: string[];
720
+ select: SourceSelect;
700
721
  where: PrismaWhere;
701
722
  /** Present only if the composed where used count operators (run via executePrismaQueryPlan). */
702
723
  steps?: PrismaStep[];
@@ -716,6 +737,9 @@ type SourceQuery = {
716
737
  field: string;
717
738
  /** Sibling column co-selected as each value's display label (from a SourceSpec's `label`). */
718
739
  label?: string;
740
+ /** Option-partition path (from a SourceSpec's `groupBy`); its column is selected
741
+ * nested in prisma and aliased `__group` in sql. */
742
+ groupBy?: string;
719
743
  composedWhere: Condition;
720
744
  prisma: SourcePrismaQuery;
721
745
  sql: SourceSqlQuery;
@@ -724,10 +748,25 @@ type SourceQuery = {
724
748
  * Compile a DISTINCT(value) query — Prisma and SQL — per sourced field across
725
749
  * the projected lens. The WHERE is the field's composed eligibility: the model's
726
750
  * own narrowing at that path AND its source where(s). The app runs these (with
727
- * its own client) to materialize each field's option set.
751
+ * its own client) to materialize each field's option set — feed the fetched rows
752
+ * to `sourceValuesFromQueryRows`.
728
753
  */
729
754
  declare const sourceQueries: (lensOrNarrowing: Lens | LensNarrowing) => SourceQuery[];
730
755
 
756
+ type Row$1 = Record<string, unknown>;
757
+ /** Which executor produced the rows — the caller always knows; never guessed. */
758
+ type SourceRowShape = 'prisma' | 'sql';
759
+ /**
760
+ * Materialize one compiled `SourceQuery`'s fetched rows into its `SourceValues` —
761
+ * the executor-side counterpart of `sourceQueries`, so apps never hand-map rows.
762
+ * `rowShape` names the wire format: prisma rows (default) nest the `groupBy` path
763
+ * as related objects; sql rows carry it flat under the statement's `__group` alias.
764
+ * Grouped queries fetch without DISTINCT, so dedup per (group, value) happens here.
765
+ */
766
+ declare const sourceValuesFromQueryRows: (query: SourceQuery, rows: readonly Row$1[], opts?: {
767
+ rowShape?: SourceRowShape;
768
+ }) => SourceValues;
769
+
731
770
  type Row = Record<string, unknown>;
732
771
  /**
733
772
  * Materialize each sourced field's option set from an already-fetched collection —
@@ -829,4 +868,4 @@ declare const assertValidRule: (condition: unknown, options?: {
829
868
  target?: RuleTarget;
830
869
  }) => asserts condition is Condition;
831
870
 
832
- export { AGGREGATE_OPERATORS, ALL_KINDS, ARRAY_OPERATOR_CATALOG, type AggregateMode, type AggregateRule, type All, type Any, type ArrayCatalogEntry, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, type BuildOptions, type CatalogEntry, type CheckOptions, type Condition, type CreateLensInput, DATE_OPERATOR_CATALOG, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, DateOperator, type DateRule, type DateRuleValue, EQUATABLE_KINDS, type EdgeExpr, type EngineGlobalsState, type EnumNarrowing, FIELD_OPERATOR_CATALOG, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensNarrowing, type ModelDefaultNarrowing, type ModelNarrowing, NULLABLE_KINDS, NUMERIC_KINDS, type NarrowingDefaults, ORDERABLE_KINDS, Operator, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectOptions, type ProjectedVisit, type RelativeUnits, type RollingExpr, type Rule, type RuleDescription, type RuleLensCheck, type RuleLensViolation, type RuleScalar, RuleTarget, type RuleValue, STRINGY_KINDS, type SortDir, type SourceOption, type SourcePrismaQuery, type SourceQuery, type SourceSpec, type SourceSqlQuery, type SourceValue, type SourceValues, type SqlResult, type StepRef, 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 ToPrismaResult, type ValidationIssue, type ValidationResult, ValueShape, WINDOW_SELECTOR, type WeekStart, type WhereStep, type WindowFields, type WindowRuleType, WindowSupport, applyLens, assertValidRule, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, sourceQueries, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
871
+ export { AGGREGATE_OPERATORS, ALL_KINDS, ARRAY_OPERATOR_CATALOG, type AggregateMode, type AggregateRule, type All, type Any, type ArrayCatalogEntry, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, type BuildOptions, type CatalogEntry, type CheckOptions, type Condition, type CreateLensInput, DATE_OPERATOR_CATALOG, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, DateOperator, type DateRule, type DateRuleValue, EQUATABLE_KINDS, type EdgeExpr, type EngineGlobalsState, type EnumNarrowing, FIELD_OPERATOR_CATALOG, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensNarrowing, type ModelDefaultNarrowing, type ModelNarrowing, NULLABLE_KINDS, NUMERIC_KINDS, type NarrowingDefaults, ORDERABLE_KINDS, Operator, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectOptions, type ProjectedVisit, type RelativeUnits, type RollingExpr, type Rule, type RuleDescription, type RuleLensCheck, type RuleLensViolation, type RuleScalar, RuleTarget, type RuleValue, STRINGY_KINDS, type SortDir, type SourceOption, type SourcePrismaQuery, type SourceQuery, type SourceRowShape, type SourceSpec, type SourceSqlQuery, type SourceValue, type SourceValues, type SqlResult, type StepRef, 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 ToPrismaResult, type ValidationIssue, type ValidationResult, ValueShape, WINDOW_SELECTOR, type WeekStart, type WhereStep, type WindowFields, type WindowRuleType, WindowSupport, applyLens, assertValidRule, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, sourceQueries, sourceValuesFromQueryRows, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
package/dist/index.d.ts CHANGED
@@ -382,8 +382,8 @@ declare const requiredBindings: (condition: Condition) => Set<string>;
382
382
  */
383
383
  declare const resolveBindings: (condition: Condition, bindings: Record<string, RuleValue>) => Condition;
384
384
 
385
- type Row$2 = Record<string, unknown>;
386
- type CheckData = Row$2 | unknown[];
385
+ type Row$3 = Record<string, unknown>;
386
+ type CheckData = Row$3 | unknown[];
387
387
  type CheckOptions = {
388
388
  context?: CheckData;
389
389
  bindings?: Record<string, RuleValue>;
@@ -416,10 +416,12 @@ declare const resolveCaseInsensitive: (ruleFlag?: boolean) => boolean;
416
416
  declare const resolveFuzzy: (ruleFlag?: boolean | FuzzyConfig) => FuzzyConfig | false;
417
417
 
418
418
  type PrismaWhere = Record<string, unknown>;
419
- /** A selectable option — the standard `<select>` shape: a value with an optional display label. */
419
+ /** A selectable option — the standard `<select>` shape: a value with an optional display
420
+ * label, plus the partition key when the source declares a `groupBy`. */
420
421
  type SourceOption = {
421
422
  value: string;
422
423
  label?: string;
424
+ group?: string;
423
425
  };
424
426
  type FieldMapEntry = {
425
427
  kind: 'scalar' | 'object' | 'enum' | 'bridge';
@@ -517,11 +519,11 @@ type FieldMapSet = {
517
519
  bridges?: Bridge[];
518
520
  };
519
521
 
520
- type Row$1 = Record<string, unknown>;
522
+ type Row$2 = Record<string, unknown>;
521
523
  type BridgeDictionary = Record<string, // map name
522
524
  Record<string, // model name
523
- Record<string, Record<string, Row$1 | Row$1[]>>>>;
524
- declare const buildBridgeDictionary: (set: FieldMapSet, rawData: Record<string, Row$1[]>) => BridgeDictionary;
525
+ Record<string, Record<string, Row$2 | Row$2[]>>>>;
526
+ declare const buildBridgeDictionary: (set: FieldMapSet, rawData: Record<string, Row$2[]>) => BridgeDictionary;
525
527
 
526
528
  declare const stitchFieldMaps: (set: FieldMapSet) => FieldMapSet;
527
529
 
@@ -567,15 +569,24 @@ type ModelDefaultNarrowing = {
567
569
  sources?: Record<string, SourceValue>;
568
570
  };
569
571
  /**
570
- * A sourced field's eligibility `where` plus an optional sibling display-label column.
571
- * At least one key is required `{}` is not a Condition; the unconstrained spelling is `true`.
572
+ * A sourced field's eligibility `where` plus an optional sibling display-label column
573
+ * and an optional `groupBy`a dotted path (to-one hops only, ending on a scalar)
574
+ * whose value partitions the option set. Grouped options carry `group`; the classic
575
+ * flat set is the ungrouped case. At least one key is required — `{}` is not a
576
+ * Condition; the unconstrained spelling is `true`.
572
577
  */
573
578
  type SourceSpec = {
574
579
  where: Condition;
575
580
  label?: string;
581
+ groupBy?: string;
576
582
  } | {
577
583
  where?: Condition;
578
584
  label: string;
585
+ groupBy?: string;
586
+ } | {
587
+ where?: Condition;
588
+ label?: string;
589
+ groupBy: string;
579
590
  };
580
591
  /** A `sources` entry: a bare eligibility `Condition`, or a richer `SourceSpec`. */
581
592
  type SourceValue = Condition | SourceSpec;
@@ -669,6 +680,8 @@ type ProjectedVisit = {
669
680
  sources: Record<string, Condition[]>;
670
681
  /** Per-field display-label column for a sourced field (from a SourceSpec's `label`). */
671
682
  sourceLabels: Record<string, string>;
683
+ /** Per-field option-partition path for a sourced field (from a SourceSpec's `groupBy`). */
684
+ sourceGroupBys: Record<string, string>;
672
685
  };
673
686
  type PathProjection = Map<string, ProjectedVisit>;
674
687
  /**
@@ -693,10 +706,18 @@ declare const exposedSurface: (lensOrNarrowing: Lens | LensNarrowing, opts?: Pro
693
706
 
694
707
  declare const validateNarrowing: (narrowing: LensNarrowing) => void;
695
708
 
709
+ /** Prisma `select` shape — nested for a grouped source's relation path. */
710
+ type SourceSelect = {
711
+ [field: string]: true | {
712
+ select: SourceSelect;
713
+ };
714
+ };
696
715
  type SourcePrismaQuery = {
697
716
  model: string;
698
- distinct: string[];
699
- select: Record<string, true>;
717
+ /** Absent for grouped sources — DISTINCT on the value column alone would collapse
718
+ * same-value rows across groups; dedup happens in `sourceValuesFromQueryRows`. */
719
+ distinct?: string[];
720
+ select: SourceSelect;
700
721
  where: PrismaWhere;
701
722
  /** Present only if the composed where used count operators (run via executePrismaQueryPlan). */
702
723
  steps?: PrismaStep[];
@@ -716,6 +737,9 @@ type SourceQuery = {
716
737
  field: string;
717
738
  /** Sibling column co-selected as each value's display label (from a SourceSpec's `label`). */
718
739
  label?: string;
740
+ /** Option-partition path (from a SourceSpec's `groupBy`); its column is selected
741
+ * nested in prisma and aliased `__group` in sql. */
742
+ groupBy?: string;
719
743
  composedWhere: Condition;
720
744
  prisma: SourcePrismaQuery;
721
745
  sql: SourceSqlQuery;
@@ -724,10 +748,25 @@ type SourceQuery = {
724
748
  * Compile a DISTINCT(value) query — Prisma and SQL — per sourced field across
725
749
  * the projected lens. The WHERE is the field's composed eligibility: the model's
726
750
  * own narrowing at that path AND its source where(s). The app runs these (with
727
- * its own client) to materialize each field's option set.
751
+ * its own client) to materialize each field's option set — feed the fetched rows
752
+ * to `sourceValuesFromQueryRows`.
728
753
  */
729
754
  declare const sourceQueries: (lensOrNarrowing: Lens | LensNarrowing) => SourceQuery[];
730
755
 
756
+ type Row$1 = Record<string, unknown>;
757
+ /** Which executor produced the rows — the caller always knows; never guessed. */
758
+ type SourceRowShape = 'prisma' | 'sql';
759
+ /**
760
+ * Materialize one compiled `SourceQuery`'s fetched rows into its `SourceValues` —
761
+ * the executor-side counterpart of `sourceQueries`, so apps never hand-map rows.
762
+ * `rowShape` names the wire format: prisma rows (default) nest the `groupBy` path
763
+ * as related objects; sql rows carry it flat under the statement's `__group` alias.
764
+ * Grouped queries fetch without DISTINCT, so dedup per (group, value) happens here.
765
+ */
766
+ declare const sourceValuesFromQueryRows: (query: SourceQuery, rows: readonly Row$1[], opts?: {
767
+ rowShape?: SourceRowShape;
768
+ }) => SourceValues;
769
+
731
770
  type Row = Record<string, unknown>;
732
771
  /**
733
772
  * Materialize each sourced field's option set from an already-fetched collection —
@@ -829,4 +868,4 @@ declare const assertValidRule: (condition: unknown, options?: {
829
868
  target?: RuleTarget;
830
869
  }) => asserts condition is Condition;
831
870
 
832
- export { AGGREGATE_OPERATORS, ALL_KINDS, ARRAY_OPERATOR_CATALOG, type AggregateMode, type AggregateRule, type All, type Any, type ArrayCatalogEntry, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, type BuildOptions, type CatalogEntry, type CheckOptions, type Condition, type CreateLensInput, DATE_OPERATOR_CATALOG, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, DateOperator, type DateRule, type DateRuleValue, EQUATABLE_KINDS, type EdgeExpr, type EngineGlobalsState, type EnumNarrowing, FIELD_OPERATOR_CATALOG, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensNarrowing, type ModelDefaultNarrowing, type ModelNarrowing, NULLABLE_KINDS, NUMERIC_KINDS, type NarrowingDefaults, ORDERABLE_KINDS, Operator, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectOptions, type ProjectedVisit, type RelativeUnits, type RollingExpr, type Rule, type RuleDescription, type RuleLensCheck, type RuleLensViolation, type RuleScalar, RuleTarget, type RuleValue, STRINGY_KINDS, type SortDir, type SourceOption, type SourcePrismaQuery, type SourceQuery, type SourceSpec, type SourceSqlQuery, type SourceValue, type SourceValues, type SqlResult, type StepRef, 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 ToPrismaResult, type ValidationIssue, type ValidationResult, ValueShape, WINDOW_SELECTOR, type WeekStart, type WhereStep, type WindowFields, type WindowRuleType, WindowSupport, applyLens, assertValidRule, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, sourceQueries, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
871
+ export { AGGREGATE_OPERATORS, ALL_KINDS, ARRAY_OPERATOR_CATALOG, type AggregateMode, type AggregateRule, type All, type Any, type ArrayCatalogEntry, ArrayOperator, type ArrayRule, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, type BuildOptions, type CatalogEntry, type CheckOptions, type Condition, type CreateLensInput, DATE_OPERATOR_CATALOG, type DateConfig, type DateExpr, type DateInputOrExpr, type DateInputValue, DateOperator, type DateRule, type DateRuleValue, EQUATABLE_KINDS, type EdgeExpr, type EngineGlobalsState, type EnumNarrowing, FIELD_OPERATOR_CATALOG, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type Lens, type LensNarrowing, type ModelDefaultNarrowing, type ModelNarrowing, NULLABLE_KINDS, NUMERIC_KINDS, type NarrowingDefaults, ORDERABLE_KINDS, Operator, type OrderBy, type OrderedRuleValue, type PathProjection, type PeriodExpr, type PeriodUnit, type PrismaProvider, type PrismaStep, type PrismaWhere, type ProjectOptions, type ProjectedVisit, type RelativeUnits, type RollingExpr, type Rule, type RuleDescription, type RuleLensCheck, type RuleLensViolation, type RuleScalar, RuleTarget, type RuleValue, STRINGY_KINDS, type SortDir, type SourceOption, type SourcePrismaQuery, type SourceQuery, type SourceRowShape, type SourceSpec, type SourceSqlQuery, type SourceValue, type SourceValues, type SqlResult, type StepRef, 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 ToPrismaResult, type ValidationIssue, type ValidationResult, ValueShape, WINDOW_SELECTOR, type WeekStart, type WhereStep, type WindowFields, type WindowRuleType, WindowSupport, applyLens, assertValidRule, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, sourceQueries, sourceValuesFromQueryRows, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };