joist-core 2.4.0-next.37 → 2.4.0-next.39
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/build/BaseEntity.d.cts +3 -4
- package/build/BaseEntity.d.cts.map +1 -1
- package/build/BaseEntity.d.mts +3 -4
- package/build/BaseEntity.d.mts.map +1 -1
- package/build/Entity.d.cts +3 -4
- package/build/Entity.d.cts.map +1 -1
- package/build/Entity.d.mts +3 -4
- package/build/Entity.d.mts.map +1 -1
- package/build/EntityFields.d.cts +3 -4
- package/build/EntityFields.d.cts.map +1 -1
- package/build/EntityFields.d.mts +3 -4
- package/build/EntityFields.d.mts.map +1 -1
- package/build/EntityManager.cjs +11 -3
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts +47 -41
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts +47 -41
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +11 -3
- package/build/EntityManager.js.map +1 -1
- package/build/EntityMetadata.d.cts +31 -32
- package/build/EntityMetadata.d.cts.map +1 -1
- package/build/EntityMetadata.d.mts +31 -32
- package/build/EntityMetadata.d.mts.map +1 -1
- package/build/EnumMetadata.d.cts +1 -2
- package/build/EnumMetadata.d.cts.map +1 -1
- package/build/EnumMetadata.d.mts +1 -2
- package/build/EnumMetadata.d.mts.map +1 -1
- package/build/IndexManager.cjs.map +1 -1
- package/build/IndexManager.d.cts +2 -3
- package/build/IndexManager.d.cts.map +1 -1
- package/build/IndexManager.d.mts +2 -3
- package/build/IndexManager.d.mts.map +1 -1
- package/build/IndexManager.js.map +1 -1
- package/build/InstanceData.cjs.map +1 -1
- package/build/InstanceData.d.cts +1 -2
- package/build/InstanceData.d.cts.map +1 -1
- package/build/InstanceData.d.mts +1 -2
- package/build/InstanceData.d.mts.map +1 -1
- package/build/InstanceData.js.map +1 -1
- package/build/PluginManager.cjs.map +1 -1
- package/build/PluginManager.d.cts +4 -4
- package/build/PluginManager.d.cts.map +1 -1
- package/build/PluginManager.d.mts +4 -4
- package/build/PluginManager.d.mts.map +1 -1
- package/build/PluginManager.js.map +1 -1
- package/build/RowData.d.cts +3 -4
- package/build/RowData.d.cts.map +1 -1
- package/build/RowData.d.mts +3 -4
- package/build/RowData.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.cjs.map +1 -1
- package/build/batchloaders/BatchLoader.d.cts +1 -2
- package/build/batchloaders/BatchLoader.d.cts.map +1 -1
- package/build/batchloaders/BatchLoader.d.mts +1 -2
- package/build/batchloaders/BatchLoader.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.js.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.cts +2 -3
- package/build/batchloaders/enumCollectionBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.mts +2 -3
- package/build/batchloaders/enumCollectionBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.cts +2 -3
- package/build/batchloaders/loadBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.mts +2 -3
- package/build/batchloaders/loadBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.cts +2 -3
- package/build/batchloaders/manyToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.mts +2 -3
- package/build/batchloaders/manyToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.cts +2 -3
- package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.mts +2 -3
- package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.cts +2 -3
- package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.mts +2 -3
- package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/populateBatchLoader.d.cts +2 -3
- package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/populateBatchLoader.d.mts +2 -3
- package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts.map +1 -1
- package/build/changes.cjs.map +1 -1
- package/build/changes.d.cts +9 -10
- package/build/changes.d.cts.map +1 -1
- package/build/changes.d.mts +9 -10
- package/build/changes.d.mts.map +1 -1
- package/build/changes.js.map +1 -1
- package/build/config.d.cts +17 -17
- package/build/config.d.cts.map +1 -1
- package/build/config.d.mts +17 -17
- package/build/config.d.mts.map +1 -1
- package/build/configure.d.cts +8 -9
- package/build/configure.d.cts.map +1 -1
- package/build/configure.d.mts +8 -9
- package/build/configure.d.mts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.cts +1 -2
- package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.mts +1 -2
- package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.cts +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.mts +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.cts +4 -5
- package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.mts +4 -5
- package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findDataLoader.d.cts +11 -12
- package/build/dataloaders/findDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findDataLoader.d.mts +11 -12
- package/build/dataloaders/findDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.d.cts +2 -3
- package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.d.mts +2 -3
- package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.cts +3 -3
- package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.mts +3 -3
- package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.cts +1 -2
- package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.mts +1 -2
- package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
- package/build/dataloaders/lensDataLoader.d.cts +2 -3
- package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
- package/build/dataloaders/lensDataLoader.d.mts +2 -3
- package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.cts +2 -3
- package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.mts +2 -3
- package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.cts +2 -3
- package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.mts +2 -3
- package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
- package/build/defaults.cjs.map +1 -1
- package/build/defaults.d.cts +7 -7
- package/build/defaults.d.cts.map +1 -1
- package/build/defaults.d.mts +7 -7
- package/build/defaults.d.mts.map +1 -1
- package/build/defaults.js.map +1 -1
- package/build/drivers/Driver.d.cts +2 -3
- package/build/drivers/Driver.d.cts.map +1 -1
- package/build/drivers/Driver.d.mts +2 -3
- package/build/drivers/Driver.d.mts.map +1 -1
- package/build/drivers/EntityWriter.d.cts +7 -7
- package/build/drivers/EntityWriter.d.cts.map +1 -1
- package/build/drivers/EntityWriter.d.mts +7 -7
- package/build/drivers/EntityWriter.d.mts.map +1 -1
- package/build/drivers/IdAssigner.cjs.map +1 -1
- package/build/drivers/IdAssigner.d.cts +5 -5
- package/build/drivers/IdAssigner.d.cts.map +1 -1
- package/build/drivers/IdAssigner.d.mts +5 -5
- package/build/drivers/IdAssigner.d.mts.map +1 -1
- package/build/drivers/IdAssigner.js.map +1 -1
- package/build/drivers/driverApi.d.cts +2 -3
- package/build/drivers/driverApi.d.cts.map +1 -1
- package/build/drivers/driverApi.d.mts +2 -3
- package/build/drivers/driverApi.d.mts.map +1 -1
- package/build/fields.d.cts +6 -7
- package/build/fields.d.cts.map +1 -1
- package/build/fields.d.mts +6 -7
- package/build/fields.d.mts.map +1 -1
- package/build/flush/FlushLock.cjs.map +1 -1
- package/build/flush/FlushLock.d.cts +1 -2
- package/build/flush/FlushLock.d.cts.map +1 -1
- package/build/flush/FlushLock.d.mts +1 -2
- package/build/flush/FlushLock.d.mts.map +1 -1
- package/build/flush/FlushLock.js.map +1 -1
- package/build/flush/JoinRows.cjs.map +1 -1
- package/build/flush/JoinRows.d.cts +5 -6
- package/build/flush/JoinRows.d.cts.map +1 -1
- package/build/flush/JoinRows.d.mts +5 -6
- package/build/flush/JoinRows.d.mts.map +1 -1
- package/build/flush/JoinRows.js.map +1 -1
- package/build/flush/PendingChanges.d.cts +5 -6
- package/build/flush/PendingChanges.d.cts.map +1 -1
- package/build/flush/PendingChanges.d.mts +5 -6
- package/build/flush/PendingChanges.d.mts.map +1 -1
- package/build/flush/Todo.d.cts +5 -6
- package/build/flush/Todo.d.cts.map +1 -1
- package/build/flush/Todo.d.mts +5 -6
- package/build/flush/Todo.d.mts.map +1 -1
- package/build/getProperties.d.cts +3 -4
- package/build/getProperties.d.cts.map +1 -1
- package/build/getProperties.d.mts +3 -4
- package/build/getProperties.d.mts.map +1 -1
- package/build/index.d.cts +17 -17
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +17 -17
- package/build/index.d.mts.map +1 -1
- package/build/json.d.cts +11 -11
- package/build/json.d.cts.map +1 -1
- package/build/json.d.mts +11 -11
- package/build/json.d.mts.map +1 -1
- package/build/keys.d.cts +27 -27
- package/build/keys.d.cts.map +1 -1
- package/build/keys.d.mts +27 -27
- package/build/keys.d.mts.map +1 -1
- package/build/loading/HintTree.d.cts +3 -4
- package/build/loading/HintTree.d.cts.map +1 -1
- package/build/loading/HintTree.d.mts +3 -4
- package/build/loading/HintTree.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.cjs.map +1 -1
- package/build/loading/IsLoadedCache.d.cts +2 -3
- package/build/loading/IsLoadedCache.d.cts.map +1 -1
- package/build/loading/IsLoadedCache.d.mts +2 -3
- package/build/loading/IsLoadedCache.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.js.map +1 -1
- package/build/loading/loadHints.d.cts +17 -17
- package/build/loading/loadHints.d.cts.map +1 -1
- package/build/loading/loadHints.d.mts +17 -17
- package/build/loading/loadHints.d.mts.map +1 -1
- package/build/loading/loadLens.d.cts +13 -13
- package/build/loading/loadLens.d.cts.map +1 -1
- package/build/loading/loadLens.d.mts +13 -13
- package/build/loading/loadLens.d.mts.map +1 -1
- package/build/loading/withLoaded.d.cts +5 -6
- package/build/loading/withLoaded.d.cts.map +1 -1
- package/build/loading/withLoaded.d.mts +5 -6
- package/build/loading/withLoaded.d.mts.map +1 -1
- package/build/logging/FactoryLogger.d.cts +3 -4
- package/build/logging/FactoryLogger.d.cts.map +1 -1
- package/build/logging/FactoryLogger.d.mts +3 -4
- package/build/logging/FactoryLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.cjs.map +1 -1
- package/build/logging/FieldLogger.d.cts +4 -5
- package/build/logging/FieldLogger.d.cts.map +1 -1
- package/build/logging/FieldLogger.d.mts +4 -5
- package/build/logging/FieldLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.js.map +1 -1
- package/build/logging/ReactionLogger.d.cts +7 -7
- package/build/logging/ReactionLogger.d.cts.map +1 -1
- package/build/logging/ReactionLogger.d.mts +7 -7
- package/build/logging/ReactionLogger.d.mts.map +1 -1
- package/build/newEntity.cjs.map +1 -1
- package/build/newEntity.d.cts +4 -5
- package/build/newEntity.d.cts.map +1 -1
- package/build/newEntity.d.mts +4 -5
- package/build/newEntity.d.mts.map +1 -1
- package/build/newEntity.js.map +1 -1
- package/build/newTestInstance.d.cts +21 -21
- package/build/newTestInstance.d.cts.map +1 -1
- package/build/newTestInstance.d.mts +21 -21
- package/build/newTestInstance.d.mts.map +1 -1
- package/build/normalizeHints.d.cts +7 -8
- package/build/normalizeHints.d.cts.map +1 -1
- package/build/normalizeHints.d.mts +7 -8
- package/build/normalizeHints.d.mts.map +1 -1
- package/build/nowUTC.d.cts +4 -5
- package/build/nowUTC.d.cts.map +1 -1
- package/build/nowUTC.d.mts +4 -5
- package/build/nowUTC.d.mts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.cts +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.mts +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
- package/build/plugins/PreloadPlugin.d.cts +3 -4
- package/build/plugins/PreloadPlugin.d.cts.map +1 -1
- package/build/plugins/PreloadPlugin.d.mts +3 -4
- package/build/plugins/PreloadPlugin.d.mts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.cts +1 -2
- package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.mts +1 -2
- package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
- package/build/preloading/canPreload.d.cts +1 -2
- package/build/preloading/canPreload.d.cts.map +1 -1
- package/build/preloading/canPreload.d.mts +1 -2
- package/build/preloading/canPreload.d.mts.map +1 -1
- package/build/preloading/partitionHint.d.cts +1 -2
- package/build/preloading/partitionHint.d.cts.map +1 -1
- package/build/preloading/partitionHint.d.mts +1 -2
- package/build/preloading/partitionHint.d.mts.map +1 -1
- package/build/queries/ConditionBuilder.d.cts +2 -2
- package/build/queries/ConditionBuilder.d.cts.map +1 -1
- package/build/queries/ConditionBuilder.d.mts +2 -2
- package/build/queries/ConditionBuilder.d.mts.map +1 -1
- package/build/queries/conditions.d.cts +11 -12
- package/build/queries/conditions.d.cts.map +1 -1
- package/build/queries/conditions.d.mts +11 -12
- package/build/queries/conditions.d.mts.map +1 -1
- package/build/queries/entityQueryUtils.d.cts +4 -5
- package/build/queries/entityQueryUtils.d.cts.map +1 -1
- package/build/queries/entityQueryUtils.d.mts +4 -5
- package/build/queries/entityQueryUtils.d.mts.map +1 -1
- package/build/queries/find/Aliases.d.cts +16 -16
- package/build/queries/find/Aliases.d.cts.map +1 -1
- package/build/queries/find/Aliases.d.mts +16 -16
- package/build/queries/find/Aliases.d.mts.map +1 -1
- package/build/queries/find/DeferredAlias.d.cts +5 -6
- package/build/queries/find/DeferredAlias.d.cts.map +1 -1
- package/build/queries/find/DeferredAlias.d.mts +5 -6
- package/build/queries/find/DeferredAlias.d.mts.map +1 -1
- package/build/queries/find/EntityFilter.d.cts +12 -13
- package/build/queries/find/EntityFilter.d.cts.map +1 -1
- package/build/queries/find/EntityFilter.d.mts +12 -13
- package/build/queries/find/EntityFilter.d.mts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.cts +8 -9
- package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.mts +8 -9
- package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -2
- package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -2
- package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
- package/build/queries/find/QueryParser.d.cts +18 -18
- package/build/queries/find/QueryParser.d.cts.map +1 -1
- package/build/queries/find/QueryParser.d.mts +18 -18
- package/build/queries/find/QueryParser.d.mts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.cts +2 -3
- package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.mts +2 -3
- package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
- package/build/queries/find/QueryVisitor.d.cts +4 -4
- package/build/queries/find/QueryVisitor.d.cts.map +1 -1
- package/build/queries/find/QueryVisitor.d.mts +4 -4
- package/build/queries/find/QueryVisitor.d.mts.map +1 -1
- package/build/queries/find/buildFindQuery.d.cts +3 -3
- package/build/queries/find/buildFindQuery.d.cts.map +1 -1
- package/build/queries/find/buildFindQuery.d.mts +3 -3
- package/build/queries/find/buildFindQuery.d.mts.map +1 -1
- package/build/queries/find/scopes.cjs.map +1 -1
- package/build/queries/find/scopes.d.cts +12 -13
- package/build/queries/find/scopes.d.cts.map +1 -1
- package/build/queries/find/scopes.d.mts +12 -13
- package/build/queries/find/scopes.d.mts.map +1 -1
- package/build/queries/find/scopes.js.map +1 -1
- package/build/queries/parsedConditions.d.cts +7 -8
- package/build/queries/parsedConditions.d.cts.map +1 -1
- package/build/queries/parsedConditions.d.mts +7 -8
- package/build/queries/parsedConditions.d.mts.map +1 -1
- package/build/queries/renderConditions.d.cts +3 -4
- package/build/queries/renderConditions.d.cts.map +1 -1
- package/build/queries/renderConditions.d.mts +3 -4
- package/build/queries/renderConditions.d.mts.map +1 -1
- package/build/queries/skipCondition.d.cts +1 -2
- package/build/queries/skipCondition.d.cts.map +1 -1
- package/build/queries/skipCondition.d.mts +1 -2
- package/build/queries/skipCondition.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.cjs.map +1 -1
- package/build/queries/sql/AliasAssigner.d.cts +1 -2
- package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
- package/build/queries/sql/AliasAssigner.d.mts +1 -2
- package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.js.map +1 -1
- package/build/queries/sql/Expr.d.cts +26 -27
- package/build/queries/sql/Expr.d.cts.map +1 -1
- package/build/queries/sql/Expr.d.mts +26 -27
- package/build/queries/sql/Expr.d.mts.map +1 -1
- package/build/queries/sql/JoinTree.d.cts +5 -5
- package/build/queries/sql/JoinTree.d.cts.map +1 -1
- package/build/queries/sql/JoinTree.d.mts +5 -5
- package/build/queries/sql/JoinTree.d.mts.map +1 -1
- package/build/queries/sql/Tables.d.cts +39 -39
- package/build/queries/sql/Tables.d.cts.map +1 -1
- package/build/queries/sql/Tables.d.mts +39 -39
- package/build/queries/sql/Tables.d.mts.map +1 -1
- package/build/queries/sql/custom.d.cts +14 -14
- package/build/queries/sql/custom.d.cts.map +1 -1
- package/build/queries/sql/custom.d.mts +14 -14
- package/build/queries/sql/custom.d.mts.map +1 -1
- package/build/queries/sql/execute.d.cts +15 -15
- package/build/queries/sql/execute.d.cts.map +1 -1
- package/build/queries/sql/execute.d.mts +15 -15
- package/build/queries/sql/execute.d.mts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.cts +5 -6
- package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.mts +5 -6
- package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
- package/build/queries/sql/expressions/case.d.cts +10 -10
- package/build/queries/sql/expressions/case.d.cts.map +1 -1
- package/build/queries/sql/expressions/case.d.mts +10 -10
- package/build/queries/sql/expressions/case.d.mts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.cts +5 -6
- package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.mts +5 -6
- package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.cts +1 -2
- package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.mts +1 -2
- package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
- package/build/queries/sql/expressions/expression.d.cts +6 -6
- package/build/queries/sql/expressions/expression.d.cts.map +1 -1
- package/build/queries/sql/expressions/expression.d.mts +6 -6
- package/build/queries/sql/expressions/expression.d.mts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.cts +5 -6
- package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.mts +5 -6
- package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
- package/build/queries/sql/expressions/least.d.cts +5 -6
- package/build/queries/sql/expressions/least.d.cts.map +1 -1
- package/build/queries/sql/expressions/least.d.mts +5 -6
- package/build/queries/sql/expressions/least.d.mts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.cts +5 -6
- package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.mts +5 -6
- package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.cts +5 -6
- package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.mts +5 -6
- package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
- package/build/queries/sql/expressions/types.d.cts +11 -11
- package/build/queries/sql/expressions/types.d.cts.map +1 -1
- package/build/queries/sql/expressions/types.d.mts +11 -11
- package/build/queries/sql/expressions/types.d.mts.map +1 -1
- package/build/queries/sql/keywords.d.cts +4 -5
- package/build/queries/sql/keywords.d.cts.map +1 -1
- package/build/queries/sql/keywords.d.mts +4 -5
- package/build/queries/sql/keywords.d.mts.map +1 -1
- package/build/queries/sql/query.cjs.map +1 -1
- package/build/queries/sql/query.d.cts +67 -67
- package/build/queries/sql/query.d.cts.map +1 -1
- package/build/queries/sql/query.d.mts +67 -67
- package/build/queries/sql/query.d.mts.map +1 -1
- package/build/queries/sql/query.js.map +1 -1
- package/build/queries/unnest.d.cts +2 -3
- package/build/queries/unnest.d.cts.map +1 -1
- package/build/queries/unnest.d.mts +2 -3
- package/build/queries/unnest.d.mts.map +1 -1
- package/build/queries/valueFilters.d.cts +5 -6
- package/build/queries/valueFilters.d.cts.map +1 -1
- package/build/queries/valueFilters.d.mts +5 -6
- package/build/queries/valueFilters.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.cjs.map +1 -1
- package/build/reactivity/ReactionsManager.d.cts +2 -3
- package/build/reactivity/ReactionsManager.d.cts.map +1 -1
- package/build/reactivity/ReactionsManager.d.mts +2 -3
- package/build/reactivity/ReactionsManager.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.js.map +1 -1
- package/build/reactivity/reactiveHints.d.cts +18 -18
- package/build/reactivity/reactiveHints.d.cts.map +1 -1
- package/build/reactivity/reactiveHints.d.mts +18 -18
- package/build/reactivity/reactiveHints.d.mts.map +1 -1
- package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.cts +1 -2
- package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.mts +1 -2
- package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
- package/build/relations/AbstractPropertyImpl.js.map +1 -1
- package/build/relations/AbstractRelationImpl.d.cts +1 -2
- package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
- package/build/relations/AbstractRelationImpl.d.mts +1 -2
- package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
- package/build/relations/AsyncProperty.cjs.map +1 -1
- package/build/relations/AsyncProperty.d.cts +5 -6
- package/build/relations/AsyncProperty.d.cts.map +1 -1
- package/build/relations/AsyncProperty.d.mts +5 -6
- package/build/relations/AsyncProperty.d.mts.map +1 -1
- package/build/relations/AsyncProperty.js.map +1 -1
- package/build/relations/AsyncReactiveField.cjs.map +1 -1
- package/build/relations/AsyncReactiveField.d.cts +4 -5
- package/build/relations/AsyncReactiveField.d.cts.map +1 -1
- package/build/relations/AsyncReactiveField.d.mts +4 -5
- package/build/relations/AsyncReactiveField.d.mts.map +1 -1
- package/build/relations/AsyncReactiveField.js.map +1 -1
- package/build/relations/Collection.d.cts +4 -5
- package/build/relations/Collection.d.cts.map +1 -1
- package/build/relations/Collection.d.mts +4 -5
- package/build/relations/Collection.d.mts.map +1 -1
- package/build/relations/CustomCollection.cjs.map +1 -1
- package/build/relations/CustomCollection.d.cts +3 -4
- package/build/relations/CustomCollection.d.cts.map +1 -1
- package/build/relations/CustomCollection.d.mts +3 -4
- package/build/relations/CustomCollection.d.mts.map +1 -1
- package/build/relations/CustomCollection.js.map +1 -1
- package/build/relations/CustomReference.cjs.map +1 -1
- package/build/relations/CustomReference.d.cts +3 -4
- package/build/relations/CustomReference.d.cts.map +1 -1
- package/build/relations/CustomReference.d.mts +3 -4
- package/build/relations/CustomReference.d.mts.map +1 -1
- package/build/relations/CustomReference.js.map +1 -1
- package/build/relations/EnumCollection.cjs.map +1 -1
- package/build/relations/EnumCollection.d.cts +5 -5
- package/build/relations/EnumCollection.d.cts.map +1 -1
- package/build/relations/EnumCollection.d.mts +5 -5
- package/build/relations/EnumCollection.d.mts.map +1 -1
- package/build/relations/EnumCollection.js.map +1 -1
- package/build/relations/LargeCollection.d.cts +1 -2
- package/build/relations/LargeCollection.d.cts.map +1 -1
- package/build/relations/LargeCollection.d.mts +1 -2
- package/build/relations/LargeCollection.d.mts.map +1 -1
- package/build/relations/LazyField.cjs.map +1 -1
- package/build/relations/LazyField.d.cts +7 -8
- package/build/relations/LazyField.d.cts.map +1 -1
- package/build/relations/LazyField.d.mts +7 -8
- package/build/relations/LazyField.d.mts.map +1 -1
- package/build/relations/LazyField.js.map +1 -1
- package/build/relations/ManyToManyCollection.cjs.map +1 -1
- package/build/relations/ManyToManyCollection.d.cts +2 -3
- package/build/relations/ManyToManyCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyCollection.d.mts +2 -3
- package/build/relations/ManyToManyCollection.d.mts.map +1 -1
- package/build/relations/ManyToManyCollection.js.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.cts +2 -3
- package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.mts +2 -3
- package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.cjs.map +1 -1
- package/build/relations/ManyToOneReference.d.cts +6 -7
- package/build/relations/ManyToOneReference.d.cts.map +1 -1
- package/build/relations/ManyToOneReference.d.mts +6 -7
- package/build/relations/ManyToOneReference.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.js.map +1 -1
- package/build/relations/OneToManyCollection.cjs.map +1 -1
- package/build/relations/OneToManyCollection.d.cts +2 -3
- package/build/relations/OneToManyCollection.d.cts.map +1 -1
- package/build/relations/OneToManyCollection.d.mts +2 -3
- package/build/relations/OneToManyCollection.d.mts.map +1 -1
- package/build/relations/OneToManyCollection.js.map +1 -1
- package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.cts +2 -3
- package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.mts +2 -3
- package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/OneToManyLargeCollection.js.map +1 -1
- package/build/relations/OneToOneReference.cjs.map +1 -1
- package/build/relations/OneToOneReference.d.cts +7 -7
- package/build/relations/OneToOneReference.d.cts.map +1 -1
- package/build/relations/OneToOneReference.d.mts +7 -7
- package/build/relations/OneToOneReference.d.mts.map +1 -1
- package/build/relations/OneToOneReference.js.map +1 -1
- package/build/relations/PolymorphicReference.cjs.map +1 -1
- package/build/relations/PolymorphicReference.d.cts +4 -5
- package/build/relations/PolymorphicReference.d.cts.map +1 -1
- package/build/relations/PolymorphicReference.d.mts +4 -5
- package/build/relations/PolymorphicReference.d.mts.map +1 -1
- package/build/relations/PolymorphicReference.js.map +1 -1
- package/build/relations/PropertySymbols.d.cts +1 -2
- package/build/relations/PropertySymbols.d.cts.map +1 -1
- package/build/relations/PropertySymbols.d.mts +1 -2
- package/build/relations/PropertySymbols.d.mts.map +1 -1
- package/build/relations/ReactiveField.cjs.map +1 -1
- package/build/relations/ReactiveField.d.cts +4 -5
- package/build/relations/ReactiveField.d.cts.map +1 -1
- package/build/relations/ReactiveField.d.mts +4 -5
- package/build/relations/ReactiveField.d.mts.map +1 -1
- package/build/relations/ReactiveField.js.map +1 -1
- package/build/relations/ReactiveGetter.cjs.map +1 -1
- package/build/relations/ReactiveGetter.d.cts +4 -5
- package/build/relations/ReactiveGetter.d.cts.map +1 -1
- package/build/relations/ReactiveGetter.d.mts +4 -5
- package/build/relations/ReactiveGetter.d.mts.map +1 -1
- package/build/relations/ReactiveGetter.js.map +1 -1
- package/build/relations/ReactiveManyToMany.cjs.map +1 -1
- package/build/relations/ReactiveManyToMany.d.cts +4 -5
- package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
- package/build/relations/ReactiveManyToMany.d.mts +4 -5
- package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
- package/build/relations/ReactiveManyToMany.js.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.cts +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.mts +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
- package/build/relations/ReactiveReference.cjs.map +1 -1
- package/build/relations/ReactiveReference.d.cts +5 -6
- package/build/relations/ReactiveReference.d.cts.map +1 -1
- package/build/relations/ReactiveReference.d.mts +5 -6
- package/build/relations/ReactiveReference.d.mts.map +1 -1
- package/build/relations/ReactiveReference.js.map +1 -1
- package/build/relations/ReadOnlyCollection.d.cts +4 -5
- package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
- package/build/relations/ReadOnlyCollection.d.mts +4 -5
- package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.cjs.map +1 -1
- package/build/relations/RecursiveCollection.d.cts +10 -10
- package/build/relations/RecursiveCollection.d.cts.map +1 -1
- package/build/relations/RecursiveCollection.d.mts +10 -10
- package/build/relations/RecursiveCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.js.map +1 -1
- package/build/relations/RecursiveCycleError.d.cts +2 -2
- package/build/relations/RecursiveCycleError.d.cts.map +1 -1
- package/build/relations/RecursiveCycleError.d.mts +2 -2
- package/build/relations/RecursiveCycleError.d.mts.map +1 -1
- package/build/relations/Reference.d.cts +5 -5
- package/build/relations/Reference.d.cts.map +1 -1
- package/build/relations/Reference.d.mts +5 -5
- package/build/relations/Reference.d.mts.map +1 -1
- package/build/relations/ReferenceSymbols.d.cts +1 -2
- package/build/relations/ReferenceSymbols.d.cts.map +1 -1
- package/build/relations/ReferenceSymbols.d.mts +1 -2
- package/build/relations/ReferenceSymbols.d.mts.map +1 -1
- package/build/relations/Relation.d.cts +3 -3
- package/build/relations/Relation.d.cts.map +1 -1
- package/build/relations/Relation.d.mts +3 -3
- package/build/relations/Relation.d.mts.map +1 -1
- package/build/relations/RelationSymbols.d.cts +2 -3
- package/build/relations/RelationSymbols.d.cts.map +1 -1
- package/build/relations/RelationSymbols.d.mts +2 -3
- package/build/relations/RelationSymbols.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.cjs.map +1 -1
- package/build/relations/hasAsyncMethod.d.cts +6 -6
- package/build/relations/hasAsyncMethod.d.cts.map +1 -1
- package/build/relations/hasAsyncMethod.d.mts +6 -6
- package/build/relations/hasAsyncMethod.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.js.map +1 -1
- package/build/relations/hasManyDerived.d.cts +2 -2
- package/build/relations/hasManyDerived.d.cts.map +1 -1
- package/build/relations/hasManyDerived.d.mts +2 -2
- package/build/relations/hasManyDerived.d.mts.map +1 -1
- package/build/relations/hasManyThrough.d.cts +1 -2
- package/build/relations/hasManyThrough.d.cts.map +1 -1
- package/build/relations/hasManyThrough.d.mts +1 -2
- package/build/relations/hasManyThrough.d.mts.map +1 -1
- package/build/relations/hasOneDerived.d.cts +1 -2
- package/build/relations/hasOneDerived.d.cts.map +1 -1
- package/build/relations/hasOneDerived.d.mts +1 -2
- package/build/relations/hasOneDerived.d.mts.map +1 -1
- package/build/relations/hasOneThrough.d.cts +1 -2
- package/build/relations/hasOneThrough.d.cts.map +1 -1
- package/build/relations/hasOneThrough.d.mts +1 -2
- package/build/relations/hasOneThrough.d.mts.map +1 -1
- package/build/relations/hasProperty.cjs.map +1 -1
- package/build/relations/hasProperty.d.cts +8 -8
- package/build/relations/hasProperty.d.cts.map +1 -1
- package/build/relations/hasProperty.d.mts +8 -8
- package/build/relations/hasProperty.d.mts.map +1 -1
- package/build/relations/hasProperty.js.map +1 -1
- package/build/relations/isCascadeDelete.d.cts +1 -2
- package/build/relations/isCascadeDelete.d.cts.map +1 -1
- package/build/relations/isCascadeDelete.d.mts +1 -2
- package/build/relations/isCascadeDelete.d.mts.map +1 -1
- package/build/resurrection.d.cts +3 -4
- package/build/resurrection.d.cts.map +1 -1
- package/build/resurrection.d.mts +3 -4
- package/build/resurrection.d.mts.map +1 -1
- package/build/rules.d.cts +20 -20
- package/build/rules.d.cts.map +1 -1
- package/build/rules.d.mts +20 -20
- package/build/rules.d.mts.map +1 -1
- package/build/runtimeConfig.d.cts +4 -5
- package/build/runtimeConfig.d.cts.map +1 -1
- package/build/runtimeConfig.d.mts +4 -5
- package/build/runtimeConfig.d.mts.map +1 -1
- package/build/serde/TypeInfo.d.cts +3 -4
- package/build/serde/TypeInfo.d.cts.map +1 -1
- package/build/serde/TypeInfo.d.mts +3 -4
- package/build/serde/TypeInfo.d.mts.map +1 -1
- package/build/serde/columns.d.cts +2 -3
- package/build/serde/columns.d.cts.map +1 -1
- package/build/serde/columns.d.mts +2 -3
- package/build/serde/columns.d.mts.map +1 -1
- package/build/serde/fieldSerde.d.cts +9 -9
- package/build/serde/fieldSerde.d.cts.map +1 -1
- package/build/serde/fieldSerde.d.mts +9 -9
- package/build/serde/fieldSerde.d.mts.map +1 -1
- package/build/serde/serde.d.cts +18 -19
- package/build/serde/serde.d.cts.map +1 -1
- package/build/serde/serde.d.mts +18 -19
- package/build/serde/serde.d.mts.map +1 -1
- package/build/serde/temporal.d.cts +5 -5
- package/build/serde/temporal.d.cts.map +1 -1
- package/build/serde/temporal.d.mts +5 -5
- package/build/serde/temporal.d.mts.map +1 -1
- package/build/serde/temporalMappers.d.cts +4 -5
- package/build/serde/temporalMappers.d.cts.map +1 -1
- package/build/serde/temporalMappers.d.mts +4 -5
- package/build/serde/temporalMappers.d.mts.map +1 -1
- package/build/transitions.d.cts +17 -18
- package/build/transitions.d.cts.map +1 -1
- package/build/transitions.d.mts +17 -18
- package/build/transitions.d.mts.map +1 -1
- package/build/trusted.d.cts +2 -3
- package/build/trusted.d.cts.map +1 -1
- package/build/trusted.d.mts +2 -3
- package/build/trusted.d.mts.map +1 -1
- package/build/typeMap.d.cts +17 -17
- package/build/typeMap.d.cts.map +1 -1
- package/build/typeMap.d.mts +17 -17
- package/build/typeMap.d.mts.map +1 -1
- package/build/upsert.d.cts +4 -4
- package/build/upsert.d.cts.map +1 -1
- package/build/upsert.d.mts +4 -4
- package/build/upsert.d.mts.map +1 -1
- package/build/utils.d.cts +27 -28
- package/build/utils.d.cts.map +1 -1
- package/build/utils.d.mts +27 -28
- package/build/utils.d.mts.map +1 -1
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ import { FindFilterOptions, IdOf } from "../../EntityManager.mjs";
|
|
|
6
6
|
import { Entity } from "../../Entity.mjs";
|
|
7
7
|
//#region src/queries/find/EntityFilter.d.ts
|
|
8
8
|
/** Combines a `where` filter with optional `orderBy`, `limit`, and `offset` settings. */
|
|
9
|
-
type FilterAndSettings<T extends Entity> = {
|
|
9
|
+
export type FilterAndSettings<T extends Entity> = {
|
|
10
10
|
where: FindFilter<T>;
|
|
11
11
|
conditions?: ExpressionFilter;
|
|
12
12
|
orderBy?: OrderOf<T> | OrderOf<T>[];
|
|
@@ -16,7 +16,7 @@ type FilterAndSettings<T extends Entity> = {
|
|
|
16
16
|
allowMultipleLeftJoins?: boolean;
|
|
17
17
|
optimizeJoinsToExists?: boolean;
|
|
18
18
|
};
|
|
19
|
-
type OrderBy = "ASC" | "DESC";
|
|
19
|
+
export type OrderBy = "ASC" | "DESC";
|
|
20
20
|
/**
|
|
21
21
|
* A filter for an entity of type `T` for `em.find` inline conditions.
|
|
22
22
|
*
|
|
@@ -28,16 +28,16 @@ type OrderBy = "ASC" | "DESC";
|
|
|
28
28
|
* @typeparam F The filter type for the entity, i.e. `AuthorFilter`
|
|
29
29
|
* @typeparam N Either `null | undefined` if the entity can be null, or `never` if it cannot.
|
|
30
30
|
*/
|
|
31
|
-
type EntityFilter<T extends Entity, I = IdOf<T>, F = FilterOf<T>, N = never> = T | readonly T[] | I | readonly I[] | Scope<T> | EntityFilterObject<T, I, F, N> | undefined | N | {
|
|
31
|
+
export type EntityFilter<T extends Entity, I = IdOf<T>, F = FilterOf<T>, N = never> = T | readonly T[] | I | readonly I[] | Scope<T> | EntityFilterObject<T, I, F, N> | undefined | N | {
|
|
32
32
|
ne: T | I | N | undefined;
|
|
33
33
|
} | boolean | Alias<T>;
|
|
34
34
|
/** A nested object filter, including logical composition at the current entity alias. */
|
|
35
|
-
type EntityFilterObject<T extends Entity, I = IdOf<T>, F = FilterOf<T>, N = never> = {
|
|
35
|
+
export type EntityFilterObject<T extends Entity, I = IdOf<T>, F = FilterOf<T>, N = never> = {
|
|
36
36
|
as?: Alias<T>;
|
|
37
37
|
and?: EntityFilter<T, I, F, N> | readonly EntityFilter<T, I, F, N>[];
|
|
38
38
|
or?: EntityFilter<T, I, F, N> | readonly EntityFilter<T, I, F, N>[];
|
|
39
39
|
} & F;
|
|
40
|
-
type BooleanFilter<N> = true | false | N;
|
|
40
|
+
export type BooleanFilter<N> = true | false | N;
|
|
41
41
|
/**
|
|
42
42
|
* The root `em.find` `where` shape: an `EntityFilterObject` with `I`/`F`/`N` defaulted.
|
|
43
43
|
*
|
|
@@ -47,10 +47,10 @@ type BooleanFilter<N> = true | false | N;
|
|
|
47
47
|
* nullability (`N`) flow through `and`/`or` recursion — which a `FilterOf<T>`-hardcoded root can't
|
|
48
48
|
* supply, so the shape lives on `EntityFilterObject` and this just specializes it.
|
|
49
49
|
*/
|
|
50
|
-
type FilterWithAlias<T extends Entity> = EntityFilterObject<T>;
|
|
50
|
+
export type FilterWithAlias<T extends Entity> = EntityFilterObject<T>;
|
|
51
51
|
/** Allows `em.find` to accept either a `{ ... }` EntityFilter or a Scope like `Adult.parent` */
|
|
52
|
-
type FindFilter<T extends Entity> = FilterWithAlias<T> | Scope<T>;
|
|
53
|
-
type UniqueFilter<T extends Entity> = { [K in keyof FieldsOf<T> & keyof FilterOf<T> as FieldsOf<T>[K] extends {
|
|
52
|
+
export type FindFilter<T extends Entity> = FilterWithAlias<T> | Scope<T>;
|
|
53
|
+
export type UniqueFilter<T extends Entity> = { [K in keyof FieldsOf<T> & keyof FilterOf<T> as FieldsOf<T>[K] extends {
|
|
54
54
|
unique: true;
|
|
55
55
|
} ? K : never]?: FilterOf<T>[K]; };
|
|
56
56
|
/**
|
|
@@ -59,7 +59,7 @@ type UniqueFilter<T extends Entity> = { [K in keyof FieldsOf<T> & keyof FilterOf
|
|
|
59
59
|
* We always allow `undefined` to support condition pruning, but only conditionally
|
|
60
60
|
* allow `null` if the column is actually nullable.
|
|
61
61
|
*/
|
|
62
|
-
type ValueFilter<V, N> = V | readonly V[] | N | undefined | {
|
|
62
|
+
export type ValueFilter<V, N> = V | readonly V[] | N | undefined | {
|
|
63
63
|
eq: V | N | undefined;
|
|
64
64
|
} | {
|
|
65
65
|
ne: V | N | undefined;
|
|
@@ -114,14 +114,13 @@ type ValueFilter<V, N> = V | readonly V[] | N | undefined | {
|
|
|
114
114
|
*
|
|
115
115
|
* This is the user-facing DSL that internally will be converted to `ParsedExpressionFilter.
|
|
116
116
|
*/
|
|
117
|
-
type ExpressionFilter = AndCondition<ExpressionCondition> | OrCondition<ExpressionCondition>;
|
|
117
|
+
export type ExpressionFilter = AndCondition<ExpressionCondition> | OrCondition<ExpressionCondition>;
|
|
118
118
|
/** A domain-alias predicate or nested group for em.find and scopes, not SQL table expressions. */
|
|
119
|
-
type ExpressionCondition = ExpressionFilter | DomainPredicate | UnbrandedPredicate;
|
|
119
|
+
export type ExpressionCondition = ExpressionFilter | DomainPredicate | UnbrandedPredicate;
|
|
120
120
|
/** Merges root-scope find settings with caller options, letting caller options win. */
|
|
121
|
-
declare function mergeFindOptions<T extends Entity>(where: FindFilter<T>, options: FindFilterOptions<T>): {
|
|
121
|
+
export declare function mergeFindOptions<T extends Entity>(where: FindFilter<T>, options: FindFilterOptions<T>): {
|
|
122
122
|
where: FindFilter<T>;
|
|
123
123
|
options: FindFilterOptions<T>;
|
|
124
124
|
};
|
|
125
125
|
//#endregion
|
|
126
|
-
export { BooleanFilter, EntityFilter, EntityFilterObject, ExpressionCondition, ExpressionFilter, FilterAndSettings, FilterWithAlias, FindFilter, OrderBy, UniqueFilter, ValueFilter, mergeFindOptions };
|
|
127
126
|
//# sourceMappingURL=EntityFilter.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFilter.d.mts","names":[],"sources":["../../../src/queries/find/EntityFilter.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"EntityFilter.d.mts","names":[],"sources":["../../../src/queries/find/EntityFilter.ts"],"mappings":";;;;;;;;YAQY,kBAAkB,UAAU;EAEtC,OAAO,WAAW;EAClB,aAAa;EACb,UAAU,QAAQ,KAAK,QAAQ;EAC/B;EACA;EACA;EACA;EACA;;YAGU;;;;;;;;;;;;YAaA,aAAa,UAAU,QAAQ,IAAI,KAAK,IAAI,IAAI,SAAS,IAAI,aACrE,aACS,MACT,aACS,MACT,MAAM,KAEN,mBAAmB,GAAG,GAAG,GAAG,iBAI5B;EACE,IAAI,IAAI,IAAI;cAGd,MAAM;;YAGE,mBAAmB,UAAU,QAAQ,IAAI,KAAK,IAAI,IAAI,SAAS,IAAI;EAC7E,KAAK,MAAM;EACX,MAAM,aAAa,GAAG,GAAG,GAAG,cAAc,aAAa,GAAG,GAAG,GAAG;EAChE,KAAK,aAAa,GAAG,GAAG,GAAG,cAAc,aAAa,GAAG,GAAG,GAAG;IAC7D;YAEQ,cAAc,oBAAoB;;;;;;;;;;YAWlC,gBAAgB,UAAU,UAAU,mBAAmB;;YAGvD,WAAW,UAAU,UAAU,gBAAgB,KAAK,MAAM;YAE1D,aAAa,UAAU,aAChC,WAAW,SAAS,WAAW,SAAS,MAAM,SAAS,GAAG;EAAa;IAAiB,aAAa,SAAS,GAAG;;;;;;;YASxG,YAAY,GAAG,KACvB,aACS,MACT;EAGE,IAAI,IAAI;;EACR,IAAI,IAAI;;EACR,cAAc,IAAI;;EAClB,eAAe,IAAI;;EACnB,IAAI;;EACJ,KAAK;;EACL,IAAI;;EACJ,KAAK;;EACL,MAAM;;EACN,OAAO;;EACP,OAAO;;EACP,QAAQ;;EACR,QAAQ;;EACR,SAAS;;EACT,SAAS;;EACT,UAAU;;EACV,QAAQ;;EAER,UAAU;;EACV,UAAU;;EACV,aAAa;;EAEb;;EACA;;EAEA,KAAK;EAAe,KAAK;;EACzB,UAAU,GAAG;;;;;;;YAOP,mBAAmB,aAAa,uBAAuB,YAAY;;YAGnE,sBAAsB,mBAAmB,kBAAkB;;wBAGvD,iBAAiB,UAAU,QACzC,OAAO,WAAW,IAClB,SAAS,kBAAkB;EACxB,OAAO,WAAW;EAAI,SAAS,kBAAkB"}
|
|
@@ -3,11 +3,11 @@ import { Alias } from "./Aliases.cjs";
|
|
|
3
3
|
import { EntityFilter, ExpressionFilter } from "./EntityFilter.cjs";
|
|
4
4
|
import { Entity } from "../../Entity.cjs";
|
|
5
5
|
//#region src/queries/find/EntityGraphQLFilter.d.ts
|
|
6
|
-
type GraphQLFilterWithAlias<T extends Entity> = {
|
|
6
|
+
export type GraphQLFilterWithAlias<T extends Entity> = {
|
|
7
7
|
as?: Alias<T>;
|
|
8
8
|
} & GraphQLFilterOf<T>;
|
|
9
9
|
/** Combines a `where` filter with optional `orderBy`, `limit`, and `offset` settings. */
|
|
10
|
-
type GraphQLFilterAndSettings<T extends Entity> = {
|
|
10
|
+
export type GraphQLFilterAndSettings<T extends Entity> = {
|
|
11
11
|
where: GraphQLFilterWithAlias<T>;
|
|
12
12
|
conditions?: ExpressionFilter;
|
|
13
13
|
orderBy?: OrderOf<T>;
|
|
@@ -20,7 +20,7 @@ type GraphQLFilterAndSettings<T extends Entity> = {
|
|
|
20
20
|
/**
|
|
21
21
|
* This essentially matches the ValueFilter but with looser types to placate GraphQL.
|
|
22
22
|
*/
|
|
23
|
-
type ValueGraphQLFilter<V> = {
|
|
23
|
+
export type ValueGraphQLFilter<V> = {
|
|
24
24
|
eq?: V | null;
|
|
25
25
|
in?: readonly V[] | null;
|
|
26
26
|
nin?: readonly V[] | null;
|
|
@@ -48,12 +48,11 @@ type ValueGraphQLFilter<V> = {
|
|
|
48
48
|
op: Operator;
|
|
49
49
|
value: V | readonly V[] | undefined | null;
|
|
50
50
|
} | V | readonly V[] | null;
|
|
51
|
-
type BooleanGraphQLFilter = true | false | null;
|
|
52
|
-
declare const operators: readonly ["eq", "gt", "gte", "ne", "lt", "lte", "like", "nlike", "ilike", "nilike", "regex", "iregex", "nregex", "niregex", "in", "nin", "between", "contains", "overlaps", "containedBy", "jsonPathExists", "jsonPathPredicate"];
|
|
53
|
-
type Operator = (typeof operators)[number];
|
|
54
|
-
declare const opToFn: Record<Exclude<Operator, "in" | "nin" | "between">, string>;
|
|
51
|
+
export type BooleanGraphQLFilter = true | false | null;
|
|
52
|
+
export declare const operators: readonly ["eq", "gt", "gte", "ne", "lt", "lte", "like", "nlike", "ilike", "nilike", "regex", "iregex", "nregex", "niregex", "in", "nin", "between", "contains", "overlaps", "containedBy", "jsonPathExists", "jsonPathPredicate"];
|
|
53
|
+
export type Operator = (typeof operators)[number];
|
|
54
|
+
export declare const opToFn: Record<Exclude<Operator, "in" | "nin" | "between">, string>;
|
|
55
55
|
/** A GraphQL version of EntityFilter. */
|
|
56
|
-
type EntityGraphQLFilter<T extends Entity, I, F, N> = EntityFilter<T, I, F, N> | null;
|
|
56
|
+
export type EntityGraphQLFilter<T extends Entity, I, F, N> = EntityFilter<T, I, F, N> | null;
|
|
57
57
|
//#endregion
|
|
58
|
-
export { BooleanGraphQLFilter, EntityGraphQLFilter, GraphQLFilterAndSettings, GraphQLFilterWithAlias, Operator, ValueGraphQLFilter, opToFn, operators };
|
|
59
58
|
//# sourceMappingURL=EntityGraphQLFilter.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityGraphQLFilter.d.cts","names":[],"sources":["../../../src/queries/find/EntityGraphQLFilter.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"EntityGraphQLFilter.d.cts","names":[],"sources":["../../../src/queries/find/EntityGraphQLFilter.ts"],"mappings":";;;;;YAKY,uBAAuB,UAAU;EAAY,KAAK,MAAM;IAAO,gBAAgB;;YAG/E,yBAAyB,UAAU;EAC7C,OAAO,uBAAuB;EAC9B,aAAa;EACb,UAAU,QAAQ;EAClB;EACA;EACA;EACA;EACA;;;;;YAMU,mBAAmB;EAEzB,KAAK;EACL,cAAc;EACd,eAAe;EACf,KAAK;EACL,MAAM;EACN,KAAK;EACL,KAAK;EACL,MAAM;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,SAAS;EACT,SAAS;EACT,UAAU;EACV,SAAS;EACT,mBAAmB;EACnB,WAAW;EACX,WAAW;EACX,cAAc;EACd;EACA;;EAEA,IAAI;EAAU,OAAO,aAAa;IACpC,aACS;YAGD;qBAEC;YA0BD,mBAAmB;qBAElB,QAAQ,OAAO,QAAQ;;YA0BxB,oBAAoB,UAAU,QAAQ,GAAG,GAAG,KAAK,aAAa,GAAG,GAAG,GAAG"}
|
|
@@ -3,11 +3,11 @@ import { Alias } from "./Aliases.mjs";
|
|
|
3
3
|
import { EntityFilter, ExpressionFilter } from "./EntityFilter.mjs";
|
|
4
4
|
import { Entity } from "../../Entity.mjs";
|
|
5
5
|
//#region src/queries/find/EntityGraphQLFilter.d.ts
|
|
6
|
-
type GraphQLFilterWithAlias<T extends Entity> = {
|
|
6
|
+
export type GraphQLFilterWithAlias<T extends Entity> = {
|
|
7
7
|
as?: Alias<T>;
|
|
8
8
|
} & GraphQLFilterOf<T>;
|
|
9
9
|
/** Combines a `where` filter with optional `orderBy`, `limit`, and `offset` settings. */
|
|
10
|
-
type GraphQLFilterAndSettings<T extends Entity> = {
|
|
10
|
+
export type GraphQLFilterAndSettings<T extends Entity> = {
|
|
11
11
|
where: GraphQLFilterWithAlias<T>;
|
|
12
12
|
conditions?: ExpressionFilter;
|
|
13
13
|
orderBy?: OrderOf<T>;
|
|
@@ -20,7 +20,7 @@ type GraphQLFilterAndSettings<T extends Entity> = {
|
|
|
20
20
|
/**
|
|
21
21
|
* This essentially matches the ValueFilter but with looser types to placate GraphQL.
|
|
22
22
|
*/
|
|
23
|
-
type ValueGraphQLFilter<V> = {
|
|
23
|
+
export type ValueGraphQLFilter<V> = {
|
|
24
24
|
eq?: V | null;
|
|
25
25
|
in?: readonly V[] | null;
|
|
26
26
|
nin?: readonly V[] | null;
|
|
@@ -48,12 +48,11 @@ type ValueGraphQLFilter<V> = {
|
|
|
48
48
|
op: Operator;
|
|
49
49
|
value: V | readonly V[] | undefined | null;
|
|
50
50
|
} | V | readonly V[] | null;
|
|
51
|
-
type BooleanGraphQLFilter = true | false | null;
|
|
52
|
-
declare const operators: readonly ["eq", "gt", "gte", "ne", "lt", "lte", "like", "nlike", "ilike", "nilike", "regex", "iregex", "nregex", "niregex", "in", "nin", "between", "contains", "overlaps", "containedBy", "jsonPathExists", "jsonPathPredicate"];
|
|
53
|
-
type Operator = (typeof operators)[number];
|
|
54
|
-
declare const opToFn: Record<Exclude<Operator, "in" | "nin" | "between">, string>;
|
|
51
|
+
export type BooleanGraphQLFilter = true | false | null;
|
|
52
|
+
export declare const operators: readonly ["eq", "gt", "gte", "ne", "lt", "lte", "like", "nlike", "ilike", "nilike", "regex", "iregex", "nregex", "niregex", "in", "nin", "between", "contains", "overlaps", "containedBy", "jsonPathExists", "jsonPathPredicate"];
|
|
53
|
+
export type Operator = (typeof operators)[number];
|
|
54
|
+
export declare const opToFn: Record<Exclude<Operator, "in" | "nin" | "between">, string>;
|
|
55
55
|
/** A GraphQL version of EntityFilter. */
|
|
56
|
-
type EntityGraphQLFilter<T extends Entity, I, F, N> = EntityFilter<T, I, F, N> | null;
|
|
56
|
+
export type EntityGraphQLFilter<T extends Entity, I, F, N> = EntityFilter<T, I, F, N> | null;
|
|
57
57
|
//#endregion
|
|
58
|
-
export { BooleanGraphQLFilter, EntityGraphQLFilter, GraphQLFilterAndSettings, GraphQLFilterWithAlias, Operator, ValueGraphQLFilter, opToFn, operators };
|
|
59
58
|
//# sourceMappingURL=EntityGraphQLFilter.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityGraphQLFilter.d.mts","names":[],"sources":["../../../src/queries/find/EntityGraphQLFilter.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"EntityGraphQLFilter.d.mts","names":[],"sources":["../../../src/queries/find/EntityGraphQLFilter.ts"],"mappings":";;;;;YAKY,uBAAuB,UAAU;EAAY,KAAK,MAAM;IAAO,gBAAgB;;YAG/E,yBAAyB,UAAU;EAC7C,OAAO,uBAAuB;EAC9B,aAAa;EACb,UAAU,QAAQ;EAClB;EACA;EACA;EACA;EACA;;;;;YAMU,mBAAmB;EAEzB,KAAK;EACL,cAAc;EACd,eAAe;EACf,KAAK;EACL,MAAM;EACN,KAAK;EACL,KAAK;EACL,MAAM;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,SAAS;EACT,SAAS;EACT,UAAU;EACV,SAAS;EACT,mBAAmB;EACnB,WAAW;EACX,WAAW;EACX,cAAc;EACd;EACA;;EAEA,IAAI;EAAU,OAAO,aAAa;IACpC,aACS;YAGD;qBAEC;YA0BD,mBAAmB;qBAElB,QAAQ,OAAO,QAAQ;;YA0BxB,oBAAoB,UAAU,QAAQ,GAAG,GAAG,KAAK,aAAa,GAAG,GAAG,GAAG"}
|
|
@@ -19,12 +19,11 @@ import { ParsedFindQuery } from "./QueryParser.cjs";
|
|
|
19
19
|
* because they can produce cross-product row explosions.
|
|
20
20
|
* 5. Finally, `maybeAddIdNotNulls` and `pruneUnusedJoins` clean up the joins that remain.
|
|
21
21
|
*/
|
|
22
|
-
declare function optimizeCollectionJoins(query: ParsedFindQuery, opts?: {
|
|
22
|
+
export declare function optimizeCollectionJoins(query: ParsedFindQuery, opts?: {
|
|
23
23
|
allowMultipleLeftJoins?: boolean;
|
|
24
24
|
optimizeJoinsToExists?: boolean;
|
|
25
25
|
pruneJoins?: boolean;
|
|
26
26
|
keepAliases?: string[];
|
|
27
27
|
}): void;
|
|
28
28
|
//#endregion
|
|
29
|
-
export { optimizeCollectionJoins };
|
|
30
29
|
//# sourceMappingURL=QueryParser.collectionJoins.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParser.collectionJoins.d.cts","names":[],"sources":["../../../src/queries/find/QueryParser.collectionJoins.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QueryParser.collectionJoins.d.cts","names":[],"sources":["../../../src/queries/find/QueryParser.collectionJoins.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBA6CgB,wBACd,OAAO,iBACP;EACE;EACA;EACA;EACA"}
|
|
@@ -19,12 +19,11 @@ import { ParsedFindQuery } from "./QueryParser.mjs";
|
|
|
19
19
|
* because they can produce cross-product row explosions.
|
|
20
20
|
* 5. Finally, `maybeAddIdNotNulls` and `pruneUnusedJoins` clean up the joins that remain.
|
|
21
21
|
*/
|
|
22
|
-
declare function optimizeCollectionJoins(query: ParsedFindQuery, opts?: {
|
|
22
|
+
export declare function optimizeCollectionJoins(query: ParsedFindQuery, opts?: {
|
|
23
23
|
allowMultipleLeftJoins?: boolean;
|
|
24
24
|
optimizeJoinsToExists?: boolean;
|
|
25
25
|
pruneJoins?: boolean;
|
|
26
26
|
keepAliases?: string[];
|
|
27
27
|
}): void;
|
|
28
28
|
//#endregion
|
|
29
|
-
export { optimizeCollectionJoins };
|
|
30
29
|
//# sourceMappingURL=QueryParser.collectionJoins.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParser.collectionJoins.d.mts","names":[],"sources":["../../../src/queries/find/QueryParser.collectionJoins.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QueryParser.collectionJoins.d.mts","names":[],"sources":["../../../src/queries/find/QueryParser.collectionJoins.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBA6CgB,wBACd,OAAO,iBACP;EACE;EACA;EACA;EACA"}
|
|
@@ -2,12 +2,12 @@ import { ParsedExpressionFilter } from "../parsedConditions.cjs";
|
|
|
2
2
|
import { ExpressionFilter, OrderBy } from "./EntityFilter.cjs";
|
|
3
3
|
import { EntityMetadata, Field } from "../../EntityMetadata.cjs";
|
|
4
4
|
//#region src/queries/find/QueryParser.d.ts
|
|
5
|
-
interface PrimaryTable {
|
|
5
|
+
export interface PrimaryTable {
|
|
6
6
|
join: "primary";
|
|
7
7
|
alias: string;
|
|
8
8
|
table: string;
|
|
9
9
|
}
|
|
10
|
-
interface JoinTable {
|
|
10
|
+
export interface JoinTable {
|
|
11
11
|
join: "inner" | "outer";
|
|
12
12
|
alias: string;
|
|
13
13
|
table: string;
|
|
@@ -62,7 +62,7 @@ interface JoinTable {
|
|
|
62
62
|
* GROUP BY a.id
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
interface CrossJoinTable {
|
|
65
|
+
export interface CrossJoinTable {
|
|
66
66
|
join: "cross";
|
|
67
67
|
/** The new alias for the joined table. */
|
|
68
68
|
alias: string;
|
|
@@ -80,7 +80,7 @@ interface CrossJoinTable {
|
|
|
80
80
|
* )
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
interface ParsedCteClause {
|
|
83
|
+
export interface ParsedCteClause {
|
|
84
84
|
/** The new alias for the CTE, i.e. `_find` in the above query. */
|
|
85
85
|
alias: string;
|
|
86
86
|
/** The columns, i.e. `tag, arg0, arg1` in the above query. */
|
|
@@ -103,7 +103,7 @@ interface ParsedCteClause {
|
|
|
103
103
|
/**
|
|
104
104
|
* Creates `LATERAL JOIN`s, currently used by `findCount` and JSON preloading.
|
|
105
105
|
*/
|
|
106
|
-
interface LateralJoinTable {
|
|
106
|
+
export interface LateralJoinTable {
|
|
107
107
|
join: "lateral";
|
|
108
108
|
alias: string;
|
|
109
109
|
/** Used for join dependency tracking. */
|
|
@@ -118,26 +118,26 @@ interface LateralJoinTable {
|
|
|
118
118
|
offset?: number;
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
type ParsedTable = PrimaryTable | JoinTable | CrossJoinTable | LateralJoinTable;
|
|
122
|
-
interface ParsedOrderBy {
|
|
121
|
+
export type ParsedTable = PrimaryTable | JoinTable | CrossJoinTable | LateralJoinTable;
|
|
122
|
+
export interface ParsedOrderBy {
|
|
123
123
|
alias: string;
|
|
124
124
|
column: string;
|
|
125
125
|
order: OrderBy;
|
|
126
126
|
}
|
|
127
|
-
type ParsedGroupBy = {
|
|
127
|
+
export type ParsedGroupBy = {
|
|
128
128
|
alias: string;
|
|
129
129
|
column: string;
|
|
130
130
|
} | {
|
|
131
131
|
expression: string;
|
|
132
132
|
};
|
|
133
|
-
type ParsedSelect = string | ParsedSelectWithBindings;
|
|
133
|
+
export type ParsedSelect = string | ParsedSelectWithBindings;
|
|
134
134
|
type ParsedSelectWithBindings = {
|
|
135
135
|
sql: string;
|
|
136
136
|
bindings: any[];
|
|
137
137
|
aliases: string[];
|
|
138
138
|
};
|
|
139
139
|
/** The result of parsing an `em.find` filter. */
|
|
140
|
-
interface ParsedFindQuery {
|
|
140
|
+
export interface ParsedFindQuery {
|
|
141
141
|
selects: ParsedSelect[];
|
|
142
142
|
/** The primary table plus any joins. */
|
|
143
143
|
tables: ParsedTable[];
|
|
@@ -156,7 +156,7 @@ interface ParsedFindQuery {
|
|
|
156
156
|
* The main execution flow is:
|
|
157
157
|
* parseFindQuery -> beforeFind plugins -> optimizeCollectionJoins -> pruneUnusedJoins -> execute SQL.
|
|
158
158
|
*/
|
|
159
|
-
declare function parseFindQuery(meta: EntityMetadata, filter: any, opts?: {
|
|
159
|
+
export declare function parseFindQuery(meta: EntityMetadata, filter: any, opts?: {
|
|
160
160
|
conditions?: ExpressionFilter;
|
|
161
161
|
orderBy?: any;
|
|
162
162
|
pruneJoins?: boolean;
|
|
@@ -176,17 +176,17 @@ declare function parseFindQuery(meta: EntityMetadata, filter: any, opts?: {
|
|
|
176
176
|
* to do an `OR` across two different children (which queries both children being
|
|
177
177
|
* OUTER JOINs, and detecting that case seemed complicated).
|
|
178
178
|
*/
|
|
179
|
-
declare function maybeAddIdNotNulls(query: ParsedFindQuery): void;
|
|
179
|
+
export declare function maybeAddIdNotNulls(query: ParsedFindQuery): void;
|
|
180
180
|
/** Returns the `a` from `"a".*`. */
|
|
181
|
-
declare function parseAlias(alias: string): string;
|
|
181
|
+
export declare function parseAlias(alias: string): string;
|
|
182
182
|
/** Finds a filter field by fieldName or generated fieldIdName. */
|
|
183
|
-
declare function findFilterField(meta: EntityMetadata, key: string): (Field & {
|
|
183
|
+
export declare function findFilterField(meta: EntityMetadata, key: string): (Field & {
|
|
184
184
|
aliasSuffix: string;
|
|
185
185
|
}) | undefined;
|
|
186
186
|
/** Adds any user-configured default order, plus an "always order by id" for determinism. */
|
|
187
|
-
declare function maybeAddOrderBy(query: ParsedFindQuery, meta: EntityMetadata, alias: string): void;
|
|
188
|
-
declare function addTablePerClassJoinsAndClassTag(query: ParsedFindQuery, meta: EntityMetadata, alias: string, isPrimary: boolean): void;
|
|
189
|
-
declare function getTables(query: ParsedFindQuery): [PrimaryTable, JoinTable[], LateralJoinTable[], CrossJoinTable[]];
|
|
187
|
+
export declare function maybeAddOrderBy(query: ParsedFindQuery, meta: EntityMetadata, alias: string): void;
|
|
188
|
+
export declare function addTablePerClassJoinsAndClassTag(query: ParsedFindQuery, meta: EntityMetadata, alias: string, isPrimary: boolean): void;
|
|
189
|
+
export declare function getTables(query: ParsedFindQuery): [PrimaryTable, JoinTable[], LateralJoinTable[], CrossJoinTable[]];
|
|
190
190
|
//#endregion
|
|
191
|
-
export {
|
|
191
|
+
export {};
|
|
192
192
|
//# sourceMappingURL=QueryParser.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParser.d.cts","names":[],"sources":["../../../src/queries/find/QueryParser.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"QueryParser.d.cts","names":[],"sources":["../../../src/queries/find/QueryParser.ts"],"mappings":";;;;iBA6BiB;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;;;;;;;EAsBA;;IAEE;;IAEA;;IAEA;;;;;;;;;;;;;;;;;;;;;iBAsBa;EACf;;EAEA;;EAEA;;;;;;;;;;;;;iBAce;;EAEf;;EAEA;IAAY;IAAoB;;;EAEhC;IAAS;IAAa;IAAa;;IAA+B;IAAa,OAAO;;;EAEtF;;;;;iBAMe;EACf;EACA;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;IAAa;IAAgB;;;YAGnB,cAAc,eAAe,YAAY,iBAAiB;iBAErD;EACf;EACA;EACA,OAAO;;YAGG;EAAkB;EAAe;;EAAqB;;YAEtD,wBAAwB;KAC/B;EAA6B;EAAa;EAAiB;;;iBAG/C;EACf,SAAS;;EAET,QAAQ;;EAER,YAAY;;EAEZ,WAAW;;EAEX,UAAU;;EAEV,OAAO;;;;;;;;wBASO,eACd,MAAM,gBACN,aACA;EACE,aAAa;EACb;EACA;EACA;EACA;EACA;EACA;IAED;;;;;;;;;;;;wBAqhBa,mBAAmB,OAAO;;wBAgC1B,WAAW;;wBAKX,gBAAgB,MAAM,gBAAgB,eAAe;EAAU;;;wBAU/D,gBAAgB,OAAO,iBAAiB,MAAM,gBAAgB;wBAiB9D,iCACd,OAAO,iBACP,MAAM,gBACN,eACA;wBA8Fc,UAAU,OAAO,mBAAmB,cAAc,aAAa,oBAAoB"}
|
|
@@ -2,12 +2,12 @@ import { ParsedExpressionFilter } from "../parsedConditions.mjs";
|
|
|
2
2
|
import { ExpressionFilter, OrderBy } from "./EntityFilter.mjs";
|
|
3
3
|
import { EntityMetadata, Field } from "../../EntityMetadata.mjs";
|
|
4
4
|
//#region src/queries/find/QueryParser.d.ts
|
|
5
|
-
interface PrimaryTable {
|
|
5
|
+
export interface PrimaryTable {
|
|
6
6
|
join: "primary";
|
|
7
7
|
alias: string;
|
|
8
8
|
table: string;
|
|
9
9
|
}
|
|
10
|
-
interface JoinTable {
|
|
10
|
+
export interface JoinTable {
|
|
11
11
|
join: "inner" | "outer";
|
|
12
12
|
alias: string;
|
|
13
13
|
table: string;
|
|
@@ -62,7 +62,7 @@ interface JoinTable {
|
|
|
62
62
|
* GROUP BY a.id
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
interface CrossJoinTable {
|
|
65
|
+
export interface CrossJoinTable {
|
|
66
66
|
join: "cross";
|
|
67
67
|
/** The new alias for the joined table. */
|
|
68
68
|
alias: string;
|
|
@@ -80,7 +80,7 @@ interface CrossJoinTable {
|
|
|
80
80
|
* )
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
interface ParsedCteClause {
|
|
83
|
+
export interface ParsedCteClause {
|
|
84
84
|
/** The new alias for the CTE, i.e. `_find` in the above query. */
|
|
85
85
|
alias: string;
|
|
86
86
|
/** The columns, i.e. `tag, arg0, arg1` in the above query. */
|
|
@@ -103,7 +103,7 @@ interface ParsedCteClause {
|
|
|
103
103
|
/**
|
|
104
104
|
* Creates `LATERAL JOIN`s, currently used by `findCount` and JSON preloading.
|
|
105
105
|
*/
|
|
106
|
-
interface LateralJoinTable {
|
|
106
|
+
export interface LateralJoinTable {
|
|
107
107
|
join: "lateral";
|
|
108
108
|
alias: string;
|
|
109
109
|
/** Used for join dependency tracking. */
|
|
@@ -118,26 +118,26 @@ interface LateralJoinTable {
|
|
|
118
118
|
offset?: number;
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
type ParsedTable = PrimaryTable | JoinTable | CrossJoinTable | LateralJoinTable;
|
|
122
|
-
interface ParsedOrderBy {
|
|
121
|
+
export type ParsedTable = PrimaryTable | JoinTable | CrossJoinTable | LateralJoinTable;
|
|
122
|
+
export interface ParsedOrderBy {
|
|
123
123
|
alias: string;
|
|
124
124
|
column: string;
|
|
125
125
|
order: OrderBy;
|
|
126
126
|
}
|
|
127
|
-
type ParsedGroupBy = {
|
|
127
|
+
export type ParsedGroupBy = {
|
|
128
128
|
alias: string;
|
|
129
129
|
column: string;
|
|
130
130
|
} | {
|
|
131
131
|
expression: string;
|
|
132
132
|
};
|
|
133
|
-
type ParsedSelect = string | ParsedSelectWithBindings;
|
|
133
|
+
export type ParsedSelect = string | ParsedSelectWithBindings;
|
|
134
134
|
type ParsedSelectWithBindings = {
|
|
135
135
|
sql: string;
|
|
136
136
|
bindings: any[];
|
|
137
137
|
aliases: string[];
|
|
138
138
|
};
|
|
139
139
|
/** The result of parsing an `em.find` filter. */
|
|
140
|
-
interface ParsedFindQuery {
|
|
140
|
+
export interface ParsedFindQuery {
|
|
141
141
|
selects: ParsedSelect[];
|
|
142
142
|
/** The primary table plus any joins. */
|
|
143
143
|
tables: ParsedTable[];
|
|
@@ -156,7 +156,7 @@ interface ParsedFindQuery {
|
|
|
156
156
|
* The main execution flow is:
|
|
157
157
|
* parseFindQuery -> beforeFind plugins -> optimizeCollectionJoins -> pruneUnusedJoins -> execute SQL.
|
|
158
158
|
*/
|
|
159
|
-
declare function parseFindQuery(meta: EntityMetadata, filter: any, opts?: {
|
|
159
|
+
export declare function parseFindQuery(meta: EntityMetadata, filter: any, opts?: {
|
|
160
160
|
conditions?: ExpressionFilter;
|
|
161
161
|
orderBy?: any;
|
|
162
162
|
pruneJoins?: boolean;
|
|
@@ -176,17 +176,17 @@ declare function parseFindQuery(meta: EntityMetadata, filter: any, opts?: {
|
|
|
176
176
|
* to do an `OR` across two different children (which queries both children being
|
|
177
177
|
* OUTER JOINs, and detecting that case seemed complicated).
|
|
178
178
|
*/
|
|
179
|
-
declare function maybeAddIdNotNulls(query: ParsedFindQuery): void;
|
|
179
|
+
export declare function maybeAddIdNotNulls(query: ParsedFindQuery): void;
|
|
180
180
|
/** Returns the `a` from `"a".*`. */
|
|
181
|
-
declare function parseAlias(alias: string): string;
|
|
181
|
+
export declare function parseAlias(alias: string): string;
|
|
182
182
|
/** Finds a filter field by fieldName or generated fieldIdName. */
|
|
183
|
-
declare function findFilterField(meta: EntityMetadata, key: string): (Field & {
|
|
183
|
+
export declare function findFilterField(meta: EntityMetadata, key: string): (Field & {
|
|
184
184
|
aliasSuffix: string;
|
|
185
185
|
}) | undefined;
|
|
186
186
|
/** Adds any user-configured default order, plus an "always order by id" for determinism. */
|
|
187
|
-
declare function maybeAddOrderBy(query: ParsedFindQuery, meta: EntityMetadata, alias: string): void;
|
|
188
|
-
declare function addTablePerClassJoinsAndClassTag(query: ParsedFindQuery, meta: EntityMetadata, alias: string, isPrimary: boolean): void;
|
|
189
|
-
declare function getTables(query: ParsedFindQuery): [PrimaryTable, JoinTable[], LateralJoinTable[], CrossJoinTable[]];
|
|
187
|
+
export declare function maybeAddOrderBy(query: ParsedFindQuery, meta: EntityMetadata, alias: string): void;
|
|
188
|
+
export declare function addTablePerClassJoinsAndClassTag(query: ParsedFindQuery, meta: EntityMetadata, alias: string, isPrimary: boolean): void;
|
|
189
|
+
export declare function getTables(query: ParsedFindQuery): [PrimaryTable, JoinTable[], LateralJoinTable[], CrossJoinTable[]];
|
|
190
190
|
//#endregion
|
|
191
|
-
export {
|
|
191
|
+
export {};
|
|
192
192
|
//# sourceMappingURL=QueryParser.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParser.d.mts","names":[],"sources":["../../../src/queries/find/QueryParser.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"QueryParser.d.mts","names":[],"sources":["../../../src/queries/find/QueryParser.ts"],"mappings":";;;;iBA6BiB;EACf;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;;;;;;;EAsBA;;IAEE;;IAEA;;IAEA;;;;;;;;;;;;;;;;;;;;;iBAsBa;EACf;;EAEA;;EAEA;;;;;;;;;;;;;iBAce;;EAEf;;EAEA;IAAY;IAAoB;;;EAEhC;IAAS;IAAa;IAAa;;IAA+B;IAAa,OAAO;;;EAEtF;;;;;iBAMe;EACf;EACA;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;IAAa;IAAgB;;;YAGnB,cAAc,eAAe,YAAY,iBAAiB;iBAErD;EACf;EACA;EACA,OAAO;;YAGG;EAAkB;EAAe;;EAAqB;;YAEtD,wBAAwB;KAC/B;EAA6B;EAAa;EAAiB;;;iBAG/C;EACf,SAAS;;EAET,QAAQ;;EAER,YAAY;;EAEZ,WAAW;;EAEX,UAAU;;EAEV,OAAO;;;;;;;;wBASO,eACd,MAAM,gBACN,aACA;EACE,aAAa;EACb;EACA;EACA;EACA;EACA;EACA;IAED;;;;;;;;;;;;wBAqhBa,mBAAmB,OAAO;;wBAgC1B,WAAW;;wBAKX,gBAAgB,MAAM,gBAAgB,eAAe;EAAU;;;wBAU/D,gBAAgB,OAAO,iBAAiB,MAAM,gBAAgB;wBAiB9D,iCACd,OAAO,iBACP,MAAM,gBACN,eACA;wBA8Fc,UAAU,OAAO,mBAAmB,cAAc,aAAa,oBAAoB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ParsedFindQuery } from "./QueryParser.cjs";
|
|
2
2
|
//#region src/queries/find/QueryParser.pruning.d.ts
|
|
3
|
-
declare function pruneUnusedJoins(parsed: ParsedFindQuery, keepAliases: string[]): void;
|
|
3
|
+
export declare function pruneUnusedJoins(parsed: ParsedFindQuery, keepAliases: string[]): void;
|
|
4
4
|
/** Returns true if a raw select expression references `alias.column` or the whole-row `alias`. */
|
|
5
|
-
declare function selectReferencesAlias(select: string, alias: string): boolean;
|
|
5
|
+
export declare function selectReferencesAlias(select: string, alias: string): boolean;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { pruneUnusedJoins, selectReferencesAlias };
|
|
8
7
|
//# sourceMappingURL=QueryParser.pruning.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParser.pruning.d.cts","names":[],"sources":["../../../src/queries/find/QueryParser.pruning.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"QueryParser.pruning.d.cts","names":[],"sources":["../../../src/queries/find/QueryParser.pruning.ts"],"mappings":";;wBAKgB,iBAAiB,QAAQ,iBAAiB;;wBAkG1C,sBAAsB,gBAAgB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ParsedFindQuery } from "./QueryParser.mjs";
|
|
2
2
|
//#region src/queries/find/QueryParser.pruning.d.ts
|
|
3
|
-
declare function pruneUnusedJoins(parsed: ParsedFindQuery, keepAliases: string[]): void;
|
|
3
|
+
export declare function pruneUnusedJoins(parsed: ParsedFindQuery, keepAliases: string[]): void;
|
|
4
4
|
/** Returns true if a raw select expression references `alias.column` or the whole-row `alias`. */
|
|
5
|
-
declare function selectReferencesAlias(select: string, alias: string): boolean;
|
|
5
|
+
export declare function selectReferencesAlias(select: string, alias: string): boolean;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { pruneUnusedJoins, selectReferencesAlias };
|
|
8
7
|
//# sourceMappingURL=QueryParser.pruning.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParser.pruning.d.mts","names":[],"sources":["../../../src/queries/find/QueryParser.pruning.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"QueryParser.pruning.d.mts","names":[],"sources":["../../../src/queries/find/QueryParser.pruning.ts"],"mappings":";;wBAKgB,iBAAiB,QAAQ,iBAAiB;;wBAkG1C,sBAAsB,gBAAgB"}
|
|
@@ -15,10 +15,10 @@ interface Visitor {
|
|
|
15
15
|
*
|
|
16
16
|
* If the visitor returns null, the condition or expression will be removed from the tree.
|
|
17
17
|
*/
|
|
18
|
-
declare function visitConditions(query: ParsedFindQuery, visitor: Visitor): void;
|
|
18
|
+
export declare function visitConditions(query: ParsedFindQuery, visitor: Visitor): void;
|
|
19
19
|
/** Returns whether a parsed query contains a condition tree that cannot match any database row. */
|
|
20
|
-
declare function isQueryProvablyEmpty(query: ParsedFindQuery): boolean;
|
|
21
|
-
declare function visitFilter(pc: ParsedExpressionCondition, visitor: Visitor): void;
|
|
20
|
+
export declare function isQueryProvablyEmpty(query: ParsedFindQuery): boolean;
|
|
21
|
+
export declare function visitFilter(pc: ParsedExpressionCondition, visitor: Visitor): void;
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=QueryVisitor.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryVisitor.d.cts","names":[],"sources":["../../../src/queries/find/QueryVisitor.ts"],"mappings":";;;;UAUU;EACR,UAAU,GAAG,yBAAyB;EACtC,UAAU,GAAG,eAAe,eAAe;EAC3C,UAAU,GAAG,kBAAkB,kBAAkB,yBAAyB;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QueryVisitor.d.cts","names":[],"sources":["../../../src/queries/find/QueryVisitor.ts"],"mappings":";;;;UAUU;EACR,UAAU,GAAG,yBAAyB;EACtC,UAAU,GAAG,eAAe,eAAe;EAC3C,UAAU,GAAG,kBAAkB,kBAAkB,yBAAyB;;;;;;;;;;wBAW5D,gBAAgB,OAAO,iBAAiB,SAAS;;wBAmBjD,qBAAqB,OAAO;wBAe5B,YAAY,IAAI,2BAA2B,SAAS"}
|
|
@@ -15,10 +15,10 @@ interface Visitor {
|
|
|
15
15
|
*
|
|
16
16
|
* If the visitor returns null, the condition or expression will be removed from the tree.
|
|
17
17
|
*/
|
|
18
|
-
declare function visitConditions(query: ParsedFindQuery, visitor: Visitor): void;
|
|
18
|
+
export declare function visitConditions(query: ParsedFindQuery, visitor: Visitor): void;
|
|
19
19
|
/** Returns whether a parsed query contains a condition tree that cannot match any database row. */
|
|
20
|
-
declare function isQueryProvablyEmpty(query: ParsedFindQuery): boolean;
|
|
21
|
-
declare function visitFilter(pc: ParsedExpressionCondition, visitor: Visitor): void;
|
|
20
|
+
export declare function isQueryProvablyEmpty(query: ParsedFindQuery): boolean;
|
|
21
|
+
export declare function visitFilter(pc: ParsedExpressionCondition, visitor: Visitor): void;
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=QueryVisitor.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryVisitor.d.mts","names":[],"sources":["../../../src/queries/find/QueryVisitor.ts"],"mappings":";;;;UAUU;EACR,UAAU,GAAG,yBAAyB;EACtC,UAAU,GAAG,eAAe,eAAe;EAC3C,UAAU,GAAG,kBAAkB,kBAAkB,yBAAyB;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QueryVisitor.d.mts","names":[],"sources":["../../../src/queries/find/QueryVisitor.ts"],"mappings":";;;;UAUU;EACR,UAAU,GAAG,yBAAyB;EACtC,UAAU,GAAG,eAAe,eAAe;EAC3C,UAAU,GAAG,kBAAkB,kBAAkB,yBAAyB;;;;;;;;;;wBAW5D,gBAAgB,OAAO,iBAAiB,SAAS;;wBAmBjD,qBAAqB,OAAO;wBAe5B,YAAY,IAAI,2BAA2B,SAAS"}
|
|
@@ -10,15 +10,15 @@ type QuerySettings = {
|
|
|
10
10
|
* In theory this should be implemented within each Driver, but the logic will be largely
|
|
11
11
|
* the same for different dbs.
|
|
12
12
|
*/
|
|
13
|
-
declare function buildRawQuery(parsed: ParsedFindQuery, settings: QuerySettings): {
|
|
13
|
+
export declare function buildRawQuery(parsed: ParsedFindQuery, settings: QuerySettings): {
|
|
14
14
|
sql: string;
|
|
15
15
|
bindings: readonly any[];
|
|
16
16
|
};
|
|
17
17
|
/** Creates the `WITH alias (...)` SQL for the given `cte`. */
|
|
18
|
-
declare function buildCteSql(cte: ParsedCteClause): {
|
|
18
|
+
export declare function buildCteSql(cte: ParsedCteClause): {
|
|
19
19
|
sql: string;
|
|
20
20
|
bindings: readonly any[];
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=buildFindQuery.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFindQuery.d.cts","names":[],"sources":["../../../src/queries/find/buildFindQuery.ts"],"mappings":";;KAKK;EAAkB;EAAgB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"buildFindQuery.d.cts","names":[],"sources":["../../../src/queries/find/buildFindQuery.ts"],"mappings":";;KAKK;EAAkB;EAAgB;;;;;;;;wBAQvB,cACd,QAAQ,iBACR,UAAU;EACP;EAAa;;;wBA+HF,YAAY,KAAK;EAAoB;EAAa"}
|
|
@@ -10,15 +10,15 @@ type QuerySettings = {
|
|
|
10
10
|
* In theory this should be implemented within each Driver, but the logic will be largely
|
|
11
11
|
* the same for different dbs.
|
|
12
12
|
*/
|
|
13
|
-
declare function buildRawQuery(parsed: ParsedFindQuery, settings: QuerySettings): {
|
|
13
|
+
export declare function buildRawQuery(parsed: ParsedFindQuery, settings: QuerySettings): {
|
|
14
14
|
sql: string;
|
|
15
15
|
bindings: readonly any[];
|
|
16
16
|
};
|
|
17
17
|
/** Creates the `WITH alias (...)` SQL for the given `cte`. */
|
|
18
|
-
declare function buildCteSql(cte: ParsedCteClause): {
|
|
18
|
+
export declare function buildCteSql(cte: ParsedCteClause): {
|
|
19
19
|
sql: string;
|
|
20
20
|
bindings: readonly any[];
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
|
-
export {
|
|
23
|
+
export {};
|
|
24
24
|
//# sourceMappingURL=buildFindQuery.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFindQuery.d.mts","names":[],"sources":["../../../src/queries/find/buildFindQuery.ts"],"mappings":";;KAKK;EAAkB;EAAgB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"buildFindQuery.d.mts","names":[],"sources":["../../../src/queries/find/buildFindQuery.ts"],"mappings":";;KAKK;EAAkB;EAAgB;;;;;;;;wBAQvB,cACd,QAAQ,iBACR,UAAU;EACP;EAAa;;;wBA+HF,YAAY,KAAK;EAAoB;EAAa"}
|