@inixiative/json-rules 2.22.0 → 2.24.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/README.md +30 -8
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -17
- package/dist/index.d.ts +36 -17
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -587,20 +587,21 @@ type ModelDefaultNarrowing = {
|
|
|
587
587
|
* Per-field eligibility over THIS model — decorates a field's option picker.
|
|
588
588
|
* A bare `Condition` is the eligibility `where`: the field's selectable values =
|
|
589
589
|
* DISTINCT(field) over this model filtered by `where` (plus the model's own
|
|
590
|
-
* narrowing). A `SourceSpec` adds an optional `label` — a sibling column
|
|
591
|
-
*
|
|
592
|
-
* sets need no special form: declare
|
|
593
|
-
* node and it compiles over whatever
|
|
594
|
-
* composes AND-only across layers (general
|
|
595
|
-
* `root`/`relations`); a later layer's `label` wins.
|
|
590
|
+
* narrowing). A `SourceSpec` adds an optional `label` — a sibling column, or a
|
|
591
|
+
* dotted to-one path ending on a scalar (like `groupBy`), co-selected as each
|
|
592
|
+
* value's display label. Referenced-model option sets need no special form: declare
|
|
593
|
+
* the source at a relation-traversed narrowing node and it compiles over whatever
|
|
594
|
+
* model that path resolves to. The `where` composes AND-only across layers (general
|
|
595
|
+
* via `mapDefaults`, path-specific via `root`/`relations`); a later layer's `label` wins.
|
|
596
596
|
*/
|
|
597
597
|
sources?: Record<string, SourceValue>;
|
|
598
598
|
};
|
|
599
599
|
/**
|
|
600
|
-
* A sourced field's eligibility `where` plus an optional
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
600
|
+
* A sourced field's eligibility `where` plus an optional display-label column — a
|
|
601
|
+
* sibling, or a dotted to-one path ending on a scalar, resolved exactly like a
|
|
602
|
+
* `groupBy` axis — and an optional `groupBy`: a dotted path (to-one hops only, ending
|
|
603
|
+
* on a scalar) whose value partitions the option set. Grouped options carry `group`;
|
|
604
|
+
* the classic flat set is the ungrouped case. At least one key is required — `{}` is not a
|
|
604
605
|
* Condition; the unconstrained spelling is `true`.
|
|
605
606
|
*/
|
|
606
607
|
type SourceSpec = {
|
|
@@ -707,7 +708,8 @@ type ProjectedVisit = {
|
|
|
707
708
|
whereClauses: Condition[];
|
|
708
709
|
/** Per-field source eligibility wheres, composed across layers (general + path). */
|
|
709
710
|
sources: Record<string, Condition[]>;
|
|
710
|
-
/** Per-field display
|
|
711
|
+
/** Per-field display label for a sourced field (from a SourceSpec's `label`): a sibling
|
|
712
|
+
* column or a dotted to-one path. */
|
|
711
713
|
sourceLabels: Record<string, string>;
|
|
712
714
|
/** Per-field option-partition axes for a sourced field (from a SourceSpec's `groupBy`). */
|
|
713
715
|
sourceGroupBys: Record<string, string[]>;
|
|
@@ -802,7 +804,9 @@ type SourceQuery = {
|
|
|
802
804
|
mapName: string;
|
|
803
805
|
model: string;
|
|
804
806
|
field: string;
|
|
805
|
-
/**
|
|
807
|
+
/** Co-selected as each value's display label (from a SourceSpec's `label`): a sibling
|
|
808
|
+
* column, or a dotted to-one path like a groupBy axis — then selected nested in prisma
|
|
809
|
+
* and aliased `__label` in sql. */
|
|
806
810
|
label?: string;
|
|
807
811
|
/** Option-partition axes (from a SourceSpec's `groupBy`, normalized); each axis
|
|
808
812
|
* column is selected nested in prisma and aliased `__group_i` in sql. */
|
|
@@ -827,9 +831,9 @@ type SourceRowShape = 'prisma' | 'sql';
|
|
|
827
831
|
* Materialize one compiled `SourceQuery`'s fetched rows into its `SourceValues` —
|
|
828
832
|
* the executor-side counterpart of `sourceQueries`, so apps never hand-map rows.
|
|
829
833
|
* `rowShape` names the wire format: prisma rows (default) nest each `groupBy` axis
|
|
830
|
-
* as related objects; sql rows carry them flat under the
|
|
831
|
-
* aliases. Grouped queries fetch without
|
|
832
|
-
* happens here.
|
|
834
|
+
* (and a dotted `label`) as related objects; sql rows carry them flat under the
|
|
835
|
+
* statement's `__group_i` / `__label` aliases. Grouped queries fetch without
|
|
836
|
+
* DISTINCT, so dedup per (groups, value) happens here.
|
|
833
837
|
*/
|
|
834
838
|
declare const sourceValuesFromQueryRows: (query: SourceQuery, rows: readonly Row$1[], opts?: {
|
|
835
839
|
rowShape?: SourceRowShape;
|
|
@@ -843,7 +847,8 @@ type Row = Record<string, unknown>;
|
|
|
843
847
|
* the collection fetched UNDER the lens (relations inline), so they are already
|
|
844
848
|
* lens-scoped: eligibility here is the field's source `where` only, evaluated via
|
|
845
849
|
* `check()` (`options` feeds `{bind}` clauses). Scalar-list fields contribute one
|
|
846
|
-
* option per element, labels take the first non-null
|
|
850
|
+
* option per element, labels take the first non-null value of the label column
|
|
851
|
+
* (a sibling, or a dotted to-one path read through the nested rows), and sorting is
|
|
847
852
|
* numeric-aware in a fixed locale. Feed the result to `exposedSurface` /
|
|
848
853
|
* `projectByPath` as `{ sourceValues }`.
|
|
849
854
|
*/
|
|
@@ -851,6 +856,20 @@ declare const sourceValuesFromRows: (lensOrNarrowing: Lens | LensNarrowing, rows
|
|
|
851
856
|
|
|
852
857
|
declare const stampCoercions: (condition: Condition, lensOrNarrowing: Lens | LensNarrowing) => Condition;
|
|
853
858
|
|
|
859
|
+
type ScopeRef = {
|
|
860
|
+
depth: number;
|
|
861
|
+
path: string;
|
|
862
|
+
};
|
|
863
|
+
declare const parseScopeRef: (ref: string) => ScopeRef | null;
|
|
864
|
+
type ScopedRef<S> = {
|
|
865
|
+
scope: S;
|
|
866
|
+
path: string;
|
|
867
|
+
};
|
|
868
|
+
type ScopeOutOfBounds = {
|
|
869
|
+
outOfBounds: string;
|
|
870
|
+
};
|
|
871
|
+
declare const resolveScopeRef: <S>(ref: string, scopes: readonly S[]) => ScopedRef<S> | ScopeOutOfBounds;
|
|
872
|
+
|
|
854
873
|
/**
|
|
855
874
|
* Execute a Prisma query plan produced by toPrisma().
|
|
856
875
|
*
|
|
@@ -936,4 +955,4 @@ declare const assertValidRule: (condition: unknown, options?: {
|
|
|
936
955
|
target?: RuleTarget;
|
|
937
956
|
}) => asserts condition is Condition;
|
|
938
957
|
|
|
939
|
-
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, type RuleSourceValues, 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, bindingNames, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getAggregateOperators, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, ruleSourceValues, sourceQueries, sourceValuesFromQueryRows, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
|
|
958
|
+
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, type RuleSourceValues, RuleTarget, type RuleValue, STRINGY_KINDS, type ScopeOutOfBounds, type ScopeRef, type ScopedRef, 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, bindingNames, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getAggregateOperators, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, parseScopeRef, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, resolveScopeRef, ruleSourceValues, sourceQueries, sourceValuesFromQueryRows, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
|
package/dist/index.d.ts
CHANGED
|
@@ -587,20 +587,21 @@ type ModelDefaultNarrowing = {
|
|
|
587
587
|
* Per-field eligibility over THIS model — decorates a field's option picker.
|
|
588
588
|
* A bare `Condition` is the eligibility `where`: the field's selectable values =
|
|
589
589
|
* DISTINCT(field) over this model filtered by `where` (plus the model's own
|
|
590
|
-
* narrowing). A `SourceSpec` adds an optional `label` — a sibling column
|
|
591
|
-
*
|
|
592
|
-
* sets need no special form: declare
|
|
593
|
-
* node and it compiles over whatever
|
|
594
|
-
* composes AND-only across layers (general
|
|
595
|
-
* `root`/`relations`); a later layer's `label` wins.
|
|
590
|
+
* narrowing). A `SourceSpec` adds an optional `label` — a sibling column, or a
|
|
591
|
+
* dotted to-one path ending on a scalar (like `groupBy`), co-selected as each
|
|
592
|
+
* value's display label. Referenced-model option sets need no special form: declare
|
|
593
|
+
* the source at a relation-traversed narrowing node and it compiles over whatever
|
|
594
|
+
* model that path resolves to. The `where` composes AND-only across layers (general
|
|
595
|
+
* via `mapDefaults`, path-specific via `root`/`relations`); a later layer's `label` wins.
|
|
596
596
|
*/
|
|
597
597
|
sources?: Record<string, SourceValue>;
|
|
598
598
|
};
|
|
599
599
|
/**
|
|
600
|
-
* A sourced field's eligibility `where` plus an optional
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
600
|
+
* A sourced field's eligibility `where` plus an optional display-label column — a
|
|
601
|
+
* sibling, or a dotted to-one path ending on a scalar, resolved exactly like a
|
|
602
|
+
* `groupBy` axis — and an optional `groupBy`: a dotted path (to-one hops only, ending
|
|
603
|
+
* on a scalar) whose value partitions the option set. Grouped options carry `group`;
|
|
604
|
+
* the classic flat set is the ungrouped case. At least one key is required — `{}` is not a
|
|
604
605
|
* Condition; the unconstrained spelling is `true`.
|
|
605
606
|
*/
|
|
606
607
|
type SourceSpec = {
|
|
@@ -707,7 +708,8 @@ type ProjectedVisit = {
|
|
|
707
708
|
whereClauses: Condition[];
|
|
708
709
|
/** Per-field source eligibility wheres, composed across layers (general + path). */
|
|
709
710
|
sources: Record<string, Condition[]>;
|
|
710
|
-
/** Per-field display
|
|
711
|
+
/** Per-field display label for a sourced field (from a SourceSpec's `label`): a sibling
|
|
712
|
+
* column or a dotted to-one path. */
|
|
711
713
|
sourceLabels: Record<string, string>;
|
|
712
714
|
/** Per-field option-partition axes for a sourced field (from a SourceSpec's `groupBy`). */
|
|
713
715
|
sourceGroupBys: Record<string, string[]>;
|
|
@@ -802,7 +804,9 @@ type SourceQuery = {
|
|
|
802
804
|
mapName: string;
|
|
803
805
|
model: string;
|
|
804
806
|
field: string;
|
|
805
|
-
/**
|
|
807
|
+
/** Co-selected as each value's display label (from a SourceSpec's `label`): a sibling
|
|
808
|
+
* column, or a dotted to-one path like a groupBy axis — then selected nested in prisma
|
|
809
|
+
* and aliased `__label` in sql. */
|
|
806
810
|
label?: string;
|
|
807
811
|
/** Option-partition axes (from a SourceSpec's `groupBy`, normalized); each axis
|
|
808
812
|
* column is selected nested in prisma and aliased `__group_i` in sql. */
|
|
@@ -827,9 +831,9 @@ type SourceRowShape = 'prisma' | 'sql';
|
|
|
827
831
|
* Materialize one compiled `SourceQuery`'s fetched rows into its `SourceValues` —
|
|
828
832
|
* the executor-side counterpart of `sourceQueries`, so apps never hand-map rows.
|
|
829
833
|
* `rowShape` names the wire format: prisma rows (default) nest each `groupBy` axis
|
|
830
|
-
* as related objects; sql rows carry them flat under the
|
|
831
|
-
* aliases. Grouped queries fetch without
|
|
832
|
-
* happens here.
|
|
834
|
+
* (and a dotted `label`) as related objects; sql rows carry them flat under the
|
|
835
|
+
* statement's `__group_i` / `__label` aliases. Grouped queries fetch without
|
|
836
|
+
* DISTINCT, so dedup per (groups, value) happens here.
|
|
833
837
|
*/
|
|
834
838
|
declare const sourceValuesFromQueryRows: (query: SourceQuery, rows: readonly Row$1[], opts?: {
|
|
835
839
|
rowShape?: SourceRowShape;
|
|
@@ -843,7 +847,8 @@ type Row = Record<string, unknown>;
|
|
|
843
847
|
* the collection fetched UNDER the lens (relations inline), so they are already
|
|
844
848
|
* lens-scoped: eligibility here is the field's source `where` only, evaluated via
|
|
845
849
|
* `check()` (`options` feeds `{bind}` clauses). Scalar-list fields contribute one
|
|
846
|
-
* option per element, labels take the first non-null
|
|
850
|
+
* option per element, labels take the first non-null value of the label column
|
|
851
|
+
* (a sibling, or a dotted to-one path read through the nested rows), and sorting is
|
|
847
852
|
* numeric-aware in a fixed locale. Feed the result to `exposedSurface` /
|
|
848
853
|
* `projectByPath` as `{ sourceValues }`.
|
|
849
854
|
*/
|
|
@@ -851,6 +856,20 @@ declare const sourceValuesFromRows: (lensOrNarrowing: Lens | LensNarrowing, rows
|
|
|
851
856
|
|
|
852
857
|
declare const stampCoercions: (condition: Condition, lensOrNarrowing: Lens | LensNarrowing) => Condition;
|
|
853
858
|
|
|
859
|
+
type ScopeRef = {
|
|
860
|
+
depth: number;
|
|
861
|
+
path: string;
|
|
862
|
+
};
|
|
863
|
+
declare const parseScopeRef: (ref: string) => ScopeRef | null;
|
|
864
|
+
type ScopedRef<S> = {
|
|
865
|
+
scope: S;
|
|
866
|
+
path: string;
|
|
867
|
+
};
|
|
868
|
+
type ScopeOutOfBounds = {
|
|
869
|
+
outOfBounds: string;
|
|
870
|
+
};
|
|
871
|
+
declare const resolveScopeRef: <S>(ref: string, scopes: readonly S[]) => ScopedRef<S> | ScopeOutOfBounds;
|
|
872
|
+
|
|
854
873
|
/**
|
|
855
874
|
* Execute a Prisma query plan produced by toPrisma().
|
|
856
875
|
*
|
|
@@ -936,4 +955,4 @@ declare const assertValidRule: (condition: unknown, options?: {
|
|
|
936
955
|
target?: RuleTarget;
|
|
937
956
|
}) => asserts condition is Condition;
|
|
938
957
|
|
|
939
|
-
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, type RuleSourceValues, 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, bindingNames, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getAggregateOperators, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, ruleSourceValues, sourceQueries, sourceValuesFromQueryRows, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
|
|
958
|
+
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, type RuleSourceValues, RuleTarget, type RuleValue, STRINGY_KINDS, type ScopeOutOfBounds, type ScopeRef, type ScopedRef, 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, bindingNames, buildBridgeDictionary, check, checkRuleAgainstLens, createLens, describeRule, engineGlobals, executePrismaQueryPlan, exposedSurface, fuzzyContains, getAggregateOperators, getArrayOperators, getOperatorsForKind, getValueShape, getWindowSupport, isAggregateRangeOperator, isAggregateSingleOperator, isOperatorSupportedForTarget, lensRequiredBindings, maxFuzzyDistance, parseScopeRef, projectByPath, requiredBindings, resolveBindings, resolveCaseInsensitive, resolveFuzzy, resolveLensBindings, resolveScopeRef, ruleSourceValues, sourceQueries, sourceValuesFromQueryRows, sourceValuesFromRows, stampCoercions, stitchFieldMaps, supportsQueryMode, toPrisma, toSql, validateBindNames, validateFieldMap, validateFieldMapSet, validateNarrowing, validateRule };
|