@inixiative/json-rules 3.23.0 → 4.1.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 +33 -2
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -359,6 +359,8 @@ declare const RELATIVE_UNITS: {
|
|
|
359
359
|
};
|
|
360
360
|
};
|
|
361
361
|
type RelativeUnit = keyof typeof RELATIVE_UNITS;
|
|
362
|
+
/** How a categorization picks its cases (`categorize`): `first` (the default) or `all`. */
|
|
363
|
+
declare const CATEGORIZATION_MATCHES: readonly CategorizationMatch[];
|
|
362
364
|
|
|
363
365
|
type OperatorValues = typeof Operator;
|
|
364
366
|
type ArrayOperatorValues = typeof ArrayOperator;
|
|
@@ -623,6 +625,21 @@ type IfThenElseValue = {
|
|
|
623
625
|
then: ValueExpression;
|
|
624
626
|
else?: ValueExpression;
|
|
625
627
|
};
|
|
628
|
+
/** One case of a categorization: `then` is its value when `if` holds. */
|
|
629
|
+
type Category = {
|
|
630
|
+
if: Condition;
|
|
631
|
+
then: ValueExpression;
|
|
632
|
+
};
|
|
633
|
+
/** Cases checked in order against one row (`categorize`). `first` (the default) takes the first
|
|
634
|
+
* case that holds; `all` takes every one that holds, in order. `default` is the value when none
|
|
635
|
+
* holds. */
|
|
636
|
+
type Categorization = {
|
|
637
|
+
cases: Category[];
|
|
638
|
+
match?: CategorizationMatch;
|
|
639
|
+
default?: ValueExpression;
|
|
640
|
+
};
|
|
641
|
+
/** How a categorization picks its cases: the first that holds, or every one that holds. */
|
|
642
|
+
type CategorizationMatch = 'first' | 'all';
|
|
626
643
|
/** Experimental. A list of values, each item evaluated in turn; an `if` with no `else` that does not
|
|
627
644
|
* hold adds nothing — match-all, for a multiselect. Items are single values, not lists. A bare
|
|
628
645
|
* array keeps every item; `{ list, distinct: true }` keeps the first of equal items. */
|
|
@@ -920,10 +937,10 @@ type RuleSourceDescription = {
|
|
|
920
937
|
/**
|
|
921
938
|
* Which values a rule names at each source the lens declares — the lens owns the
|
|
922
939
|
* vocabulary, so it answers questions about it; callers never spell a path. A leaf reaches a
|
|
923
|
-
* source
|
|
924
|
-
* condition: { field: 'sku' } }`
|
|
925
|
-
*
|
|
926
|
-
* all apply, so a source declared in `mapDefaults` answers wherever a declared path reaches its model. Quantifier-blind on
|
|
940
|
+
* source walked as the gate walks it (`stepIntoField`, scope by scope): `{ field: 'orders',
|
|
941
|
+
* arrayOperator, condition: { field: 'sku' } }` reaches `orders.sku`, and a plain path the gate
|
|
942
|
+
* refuses (one continuing past a to-many relation, `{ field: 'orders.sku' }`) is silent. Declared
|
|
943
|
+
* relations, visibility, `mapDefaults`, and the Json boundary all apply, so a source declared in `mapDefaults` answers wherever a declared path reaches its model. Quantifier-blind on
|
|
927
944
|
* purpose — a `none` relation names its value as much as an `any` one, `notIn` as much as `in` —
|
|
928
945
|
* but shape-aware via the operator catalog: only literal-naming shapes contribute `values`;
|
|
929
946
|
* substring / pattern / range / window operators, and operators the catalog does not know, mark
|
|
@@ -1461,6 +1478,17 @@ type ConditionShapeKeys = {
|
|
|
1461
1478
|
/** The keys a node of one shape takes: those it must have and those it may. */
|
|
1462
1479
|
declare const getConditionShapeKeys: (shape: ConditionShape) => ConditionShapeKeys;
|
|
1463
1480
|
|
|
1481
|
+
/**
|
|
1482
|
+
* A row's category: the value of the first case whose `if` holds (`match: 'first'`, the default;
|
|
1483
|
+
* later cases are not checked), or the values of every case that holds, in case order
|
|
1484
|
+
* (`match: 'all'`). When none holds: the `default`, a list of it under `all`; with no default,
|
|
1485
|
+
* null, or `[]` under `all`. Each `if` is checked as check() checks a rule and each value computed
|
|
1486
|
+
* as evaluateValue() computes it, with their options. A case that throws stops the categorization:
|
|
1487
|
+
* it never falls through to a later case or the default, which would give a value its author
|
|
1488
|
+
* ordered below it.
|
|
1489
|
+
*/
|
|
1490
|
+
declare const categorize: (categorization: Categorization, row: Row, options?: CheckOptions) => unknown;
|
|
1491
|
+
|
|
1464
1492
|
/** Stamp the coercion a value expression's aggregates need from the lens, as `coerceRule` does for
|
|
1465
1493
|
* a rule's field rules: a `distinct` / `min` / `max` over a DateTime column gets
|
|
1466
1494
|
* `coerceType: 'DateTime'`, so ISO date strings read as dates. An aggregate that already names
|
|
@@ -1504,6 +1532,13 @@ declare const evaluateValue: (expression: ValueExpression, data: Row, options?:
|
|
|
1504
1532
|
*/
|
|
1505
1533
|
declare const inferValueType: (expression: ValueExpression, lens?: Lens | LensNarrowing) => ValueType;
|
|
1506
1534
|
|
|
1535
|
+
/** A categorization's shape checked without data: `cases` an array of `{ if, then }`, each `if`
|
|
1536
|
+
* valid as `validateRule` sees it and each `then` and the `default` as `validateValue` does,
|
|
1537
|
+
* `match` one of CATEGORIZATION_MATCHES, every key known. */
|
|
1538
|
+
declare const validateCategorization: (categorization: unknown) => ValidationResult;
|
|
1539
|
+
/** validateCategorization's throwing form. */
|
|
1540
|
+
declare const assertValidCategorization: (categorization: unknown) => void;
|
|
1541
|
+
|
|
1507
1542
|
/** A value expression's shape checked without data: each node exactly one kind, every key known,
|
|
1508
1543
|
* aggregate modes from VALUE_AGGREGATE_MODES, and each condition it holds (`if`, an aggregate's
|
|
1509
1544
|
* `filter` / `condition` / window) valid as `validateRule` sees it. */
|
|
@@ -1526,4 +1561,4 @@ declare const valueClockUnit: (expression: ValueExpression) => ClockUnit | null;
|
|
|
1526
1561
|
*/
|
|
1527
1562
|
declare const orderRecords: <T>(items: readonly T[], orderBy: OrderBy) => T[];
|
|
1528
1563
|
|
|
1529
|
-
export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type AggregateValue, type All, type Any, ArrayOperator, type ArrayRule, type BareLiteral, 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 EngineGlobalDefaults, type EngineGlobalPath, type EngineGlobalValues, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type IfThenElseValue, 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 ListValue, 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, VALUE_AGGREGATE_MODES, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, type ValueAggregateMode, type ValueDescription, type ValueExpression, ValueShape, type ValueSourceFields, type ValueSourceOf, type ValueType, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidFieldMaps, assertValidNarrowing, assertValidRule, assertValidValue, bindLens, bindRule, check, clampLens, clockUnit, coerceRule, coerceValue, composeLens, createLens, describeRule, describeRuleSources, describeValue, engineGlobals, evaluateValue, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, inferValueType, lensVisit, listBindings, listFields, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, pathSegments, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, registerEngineGlobals, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, validateValue, valueClockUnit, walkLensPath };
|
|
1564
|
+
export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type AggregateValue, type All, type Any, ArrayOperator, type ArrayRule, type BareLiteral, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, CATEGORIZATION_MATCHES, CLOCK_UNITS, type Categorization, type CategorizationMatch, type Category, 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 EngineGlobalDefaults, type EngineGlobalPath, type EngineGlobalValues, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type IfThenElseValue, 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 ListValue, 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, VALUE_AGGREGATE_MODES, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, type ValueAggregateMode, type ValueDescription, type ValueExpression, ValueShape, type ValueSourceFields, type ValueSourceOf, type ValueType, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidCategorization, assertValidFieldMaps, assertValidNarrowing, assertValidRule, assertValidValue, bindLens, bindRule, categorize, check, clampLens, clockUnit, coerceRule, coerceValue, composeLens, createLens, describeRule, describeRuleSources, describeValue, engineGlobals, evaluateValue, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, inferValueType, lensVisit, listBindings, listFields, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, pathSegments, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, registerEngineGlobals, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateCategorization, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, validateValue, valueClockUnit, walkLensPath };
|
package/dist/index.d.ts
CHANGED
|
@@ -359,6 +359,8 @@ declare const RELATIVE_UNITS: {
|
|
|
359
359
|
};
|
|
360
360
|
};
|
|
361
361
|
type RelativeUnit = keyof typeof RELATIVE_UNITS;
|
|
362
|
+
/** How a categorization picks its cases (`categorize`): `first` (the default) or `all`. */
|
|
363
|
+
declare const CATEGORIZATION_MATCHES: readonly CategorizationMatch[];
|
|
362
364
|
|
|
363
365
|
type OperatorValues = typeof Operator;
|
|
364
366
|
type ArrayOperatorValues = typeof ArrayOperator;
|
|
@@ -623,6 +625,21 @@ type IfThenElseValue = {
|
|
|
623
625
|
then: ValueExpression;
|
|
624
626
|
else?: ValueExpression;
|
|
625
627
|
};
|
|
628
|
+
/** One case of a categorization: `then` is its value when `if` holds. */
|
|
629
|
+
type Category = {
|
|
630
|
+
if: Condition;
|
|
631
|
+
then: ValueExpression;
|
|
632
|
+
};
|
|
633
|
+
/** Cases checked in order against one row (`categorize`). `first` (the default) takes the first
|
|
634
|
+
* case that holds; `all` takes every one that holds, in order. `default` is the value when none
|
|
635
|
+
* holds. */
|
|
636
|
+
type Categorization = {
|
|
637
|
+
cases: Category[];
|
|
638
|
+
match?: CategorizationMatch;
|
|
639
|
+
default?: ValueExpression;
|
|
640
|
+
};
|
|
641
|
+
/** How a categorization picks its cases: the first that holds, or every one that holds. */
|
|
642
|
+
type CategorizationMatch = 'first' | 'all';
|
|
626
643
|
/** Experimental. A list of values, each item evaluated in turn; an `if` with no `else` that does not
|
|
627
644
|
* hold adds nothing — match-all, for a multiselect. Items are single values, not lists. A bare
|
|
628
645
|
* array keeps every item; `{ list, distinct: true }` keeps the first of equal items. */
|
|
@@ -920,10 +937,10 @@ type RuleSourceDescription = {
|
|
|
920
937
|
/**
|
|
921
938
|
* Which values a rule names at each source the lens declares — the lens owns the
|
|
922
939
|
* vocabulary, so it answers questions about it; callers never spell a path. A leaf reaches a
|
|
923
|
-
* source
|
|
924
|
-
* condition: { field: 'sku' } }`
|
|
925
|
-
*
|
|
926
|
-
* all apply, so a source declared in `mapDefaults` answers wherever a declared path reaches its model. Quantifier-blind on
|
|
940
|
+
* source walked as the gate walks it (`stepIntoField`, scope by scope): `{ field: 'orders',
|
|
941
|
+
* arrayOperator, condition: { field: 'sku' } }` reaches `orders.sku`, and a plain path the gate
|
|
942
|
+
* refuses (one continuing past a to-many relation, `{ field: 'orders.sku' }`) is silent. Declared
|
|
943
|
+
* relations, visibility, `mapDefaults`, and the Json boundary all apply, so a source declared in `mapDefaults` answers wherever a declared path reaches its model. Quantifier-blind on
|
|
927
944
|
* purpose — a `none` relation names its value as much as an `any` one, `notIn` as much as `in` —
|
|
928
945
|
* but shape-aware via the operator catalog: only literal-naming shapes contribute `values`;
|
|
929
946
|
* substring / pattern / range / window operators, and operators the catalog does not know, mark
|
|
@@ -1461,6 +1478,17 @@ type ConditionShapeKeys = {
|
|
|
1461
1478
|
/** The keys a node of one shape takes: those it must have and those it may. */
|
|
1462
1479
|
declare const getConditionShapeKeys: (shape: ConditionShape) => ConditionShapeKeys;
|
|
1463
1480
|
|
|
1481
|
+
/**
|
|
1482
|
+
* A row's category: the value of the first case whose `if` holds (`match: 'first'`, the default;
|
|
1483
|
+
* later cases are not checked), or the values of every case that holds, in case order
|
|
1484
|
+
* (`match: 'all'`). When none holds: the `default`, a list of it under `all`; with no default,
|
|
1485
|
+
* null, or `[]` under `all`. Each `if` is checked as check() checks a rule and each value computed
|
|
1486
|
+
* as evaluateValue() computes it, with their options. A case that throws stops the categorization:
|
|
1487
|
+
* it never falls through to a later case or the default, which would give a value its author
|
|
1488
|
+
* ordered below it.
|
|
1489
|
+
*/
|
|
1490
|
+
declare const categorize: (categorization: Categorization, row: Row, options?: CheckOptions) => unknown;
|
|
1491
|
+
|
|
1464
1492
|
/** Stamp the coercion a value expression's aggregates need from the lens, as `coerceRule` does for
|
|
1465
1493
|
* a rule's field rules: a `distinct` / `min` / `max` over a DateTime column gets
|
|
1466
1494
|
* `coerceType: 'DateTime'`, so ISO date strings read as dates. An aggregate that already names
|
|
@@ -1504,6 +1532,13 @@ declare const evaluateValue: (expression: ValueExpression, data: Row, options?:
|
|
|
1504
1532
|
*/
|
|
1505
1533
|
declare const inferValueType: (expression: ValueExpression, lens?: Lens | LensNarrowing) => ValueType;
|
|
1506
1534
|
|
|
1535
|
+
/** A categorization's shape checked without data: `cases` an array of `{ if, then }`, each `if`
|
|
1536
|
+
* valid as `validateRule` sees it and each `then` and the `default` as `validateValue` does,
|
|
1537
|
+
* `match` one of CATEGORIZATION_MATCHES, every key known. */
|
|
1538
|
+
declare const validateCategorization: (categorization: unknown) => ValidationResult;
|
|
1539
|
+
/** validateCategorization's throwing form. */
|
|
1540
|
+
declare const assertValidCategorization: (categorization: unknown) => void;
|
|
1541
|
+
|
|
1507
1542
|
/** A value expression's shape checked without data: each node exactly one kind, every key known,
|
|
1508
1543
|
* aggregate modes from VALUE_AGGREGATE_MODES, and each condition it holds (`if`, an aggregate's
|
|
1509
1544
|
* `filter` / `condition` / window) valid as `validateRule` sees it. */
|
|
@@ -1526,4 +1561,4 @@ declare const valueClockUnit: (expression: ValueExpression) => ClockUnit | null;
|
|
|
1526
1561
|
*/
|
|
1527
1562
|
declare const orderRecords: <T>(items: readonly T[], orderBy: OrderBy) => T[];
|
|
1528
1563
|
|
|
1529
|
-
export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type AggregateValue, type All, type Any, ArrayOperator, type ArrayRule, type BareLiteral, 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 EngineGlobalDefaults, type EngineGlobalPath, type EngineGlobalValues, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type IfThenElseValue, 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 ListValue, 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, VALUE_AGGREGATE_MODES, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, type ValueAggregateMode, type ValueDescription, type ValueExpression, ValueShape, type ValueSourceFields, type ValueSourceOf, type ValueType, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidFieldMaps, assertValidNarrowing, assertValidRule, assertValidValue, bindLens, bindRule, check, clampLens, clockUnit, coerceRule, coerceValue, composeLens, createLens, describeRule, describeRuleSources, describeValue, engineGlobals, evaluateValue, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, inferValueType, lensVisit, listBindings, listFields, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, pathSegments, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, registerEngineGlobals, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, validateValue, valueClockUnit, walkLensPath };
|
|
1564
|
+
export { ALL_KINDS, type Absent, type AggregateMode, type AggregateRule, type AggregateValue, type All, type Any, ArrayOperator, type ArrayRule, type BareLiteral, type Bridge, type BridgeCardinality, type BridgeDictionary, type BridgeEndpoint, CATEGORIZATION_MATCHES, CLOCK_UNITS, type Categorization, type CategorizationMatch, type Category, 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 EngineGlobalDefaults, type EngineGlobalPath, type EngineGlobalValues, type EngineGlobalsState, type EnumNarrowing, FieldKind, type FieldMap, type FieldMapEntry, type FieldMapSet, type FuzzyConfig, type GroupByStep, type IfThenElse, type IfThenElseValue, 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 ListValue, 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, VALUE_AGGREGATE_MODES, type ValidateRuleOptions, type ValidationIssue, type ValidationResult, type ValueAggregateMode, type ValueDescription, type ValueExpression, ValueShape, type ValueSourceFields, type ValueSourceOf, type ValueType, type WeekStart, type WhereSqlOptions, type WhereStep, type WindowFields, andWhere, assertValidCategorization, assertValidFieldMaps, assertValidNarrowing, assertValidRule, assertValidValue, bindLens, bindRule, categorize, check, clampLens, clockUnit, coerceRule, coerceValue, composeLens, createLens, describeRule, describeRuleSources, describeValue, engineGlobals, evaluateValue, executePrismaPlan, getAggregateOperators, getArrayOperators, getConditionShapeKeys, getLensRoot, getOperatorsForKind, getValueShape, indexBridges, inferValueType, lensVisit, listBindings, listFields, listLensBindings, matchAll, matchNothing, materializeSourceQuery, materializeSources, narrowRule, orWhere, orderRecords, parseScopeRef, pathSegments, prefixConditionFields, projectLens, projectRows, readLensValue, readScopeRef, registerEngineGlobals, stitchFieldMaps, storeLens, toLensSelect, toLensWhereSql, toPrisma, toSourceQueries, toSql, toWhereSql, validateCategorization, validateFieldMaps, validateNarrowing, validateRule, validateRuleInLens, validateValue, valueClockUnit, walkLensPath };
|