@inixiative/json-rules 3.13.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/README.md +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -12
- package/dist/index.d.ts +76 -12
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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,10 +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 } }` →
|
|
568
|
-
* → `week`), at any depth. Null when the rule reads no clock: absolute
|
|
569
|
-
* their offsets, weekday lists. A bound value (`{ bind }`) is read as
|
|
570
|
-
* binding may supply.
|
|
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.
|
|
571
626
|
*/
|
|
572
627
|
declare const clockUnit: (condition: Condition) => ClockUnit | null;
|
|
573
628
|
|
|
@@ -597,19 +652,28 @@ type EngineGlobalsState = {
|
|
|
597
652
|
dialect: SqlDialect;
|
|
598
653
|
};
|
|
599
654
|
clock: {
|
|
600
|
-
/** The finest clock unit
|
|
601
|
-
|
|
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;
|
|
602
658
|
};
|
|
603
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;
|
|
604
670
|
type DeepPartial<T> = {
|
|
605
671
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
606
672
|
};
|
|
607
|
-
/** Process-wide defaults, read and written by dotted path (`
|
|
608
|
-
* `string.fuzzy`, `prismaOptions.datasource.provider`, `prismaOptions.anyNull`, `sql.dialect`,
|
|
609
|
-
* `clock.finestUnit`). */
|
|
673
|
+
/** Process-wide defaults, read and written by dotted path (`EngineGlobalPath`). */
|
|
610
674
|
declare const engineGlobals: {
|
|
611
|
-
set: (path:
|
|
612
|
-
get: (path:
|
|
675
|
+
set: <P extends EngineGlobalPath>(path: P, value: EngineGlobalValues[P]) => void;
|
|
676
|
+
get: <P extends EngineGlobalPath>(path: P) => EngineGlobalValues[P];
|
|
613
677
|
reset: () => void;
|
|
614
678
|
with: <T>(partial: DeepPartial<EngineGlobalsState>, fn: () => T) => T;
|
|
615
679
|
};
|
|
@@ -1305,4 +1369,4 @@ declare const getConditionShapeKeys: (shape: ConditionShape) => ConditionShapeKe
|
|
|
1305
1369
|
*/
|
|
1306
1370
|
declare const orderRecords: <T>(items: readonly T[], orderBy: OrderBy) => T[];
|
|
1307
1371
|
|
|
1308
|
-
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,10 +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 } }` →
|
|
568
|
-
* → `week`), at any depth. Null when the rule reads no clock: absolute
|
|
569
|
-
* their offsets, weekday lists. A bound value (`{ bind }`) is read as
|
|
570
|
-
* binding may supply.
|
|
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.
|
|
571
626
|
*/
|
|
572
627
|
declare const clockUnit: (condition: Condition) => ClockUnit | null;
|
|
573
628
|
|
|
@@ -597,19 +652,28 @@ type EngineGlobalsState = {
|
|
|
597
652
|
dialect: SqlDialect;
|
|
598
653
|
};
|
|
599
654
|
clock: {
|
|
600
|
-
/** The finest clock unit
|
|
601
|
-
|
|
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;
|
|
602
658
|
};
|
|
603
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;
|
|
604
670
|
type DeepPartial<T> = {
|
|
605
671
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
606
672
|
};
|
|
607
|
-
/** Process-wide defaults, read and written by dotted path (`
|
|
608
|
-
* `string.fuzzy`, `prismaOptions.datasource.provider`, `prismaOptions.anyNull`, `sql.dialect`,
|
|
609
|
-
* `clock.finestUnit`). */
|
|
673
|
+
/** Process-wide defaults, read and written by dotted path (`EngineGlobalPath`). */
|
|
610
674
|
declare const engineGlobals: {
|
|
611
|
-
set: (path:
|
|
612
|
-
get: (path:
|
|
675
|
+
set: <P extends EngineGlobalPath>(path: P, value: EngineGlobalValues[P]) => void;
|
|
676
|
+
get: <P extends EngineGlobalPath>(path: P) => EngineGlobalValues[P];
|
|
613
677
|
reset: () => void;
|
|
614
678
|
with: <T>(partial: DeepPartial<EngineGlobalsState>, fn: () => T) => T;
|
|
615
679
|
};
|
|
@@ -1305,4 +1369,4 @@ declare const getConditionShapeKeys: (shape: ConditionShape) => ConditionShapeKe
|
|
|
1305
1369
|
*/
|
|
1306
1370
|
declare const orderRecords: <T>(items: readonly T[], orderBy: OrderBy) => T[];
|
|
1307
1371
|
|
|
1308
|
-
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 };
|