joist-core 2.4.0 → 2.5.0-next.2
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 +102 -22
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts +99 -54
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts +99 -54
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +102 -24
- package/build/EntityManager.js.map +1 -1
- package/build/EntityMetadata.cjs +0 -1
- package/build/EntityMetadata.cjs.map +1 -1
- package/build/EntityMetadata.d.cts +47 -36
- package/build/EntityMetadata.d.cts.map +1 -1
- package/build/EntityMetadata.d.mts +47 -36
- package/build/EntityMetadata.d.mts.map +1 -1
- package/build/EntityMetadata.js +0 -1
- package/build/EntityMetadata.js.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 +25 -5
- 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 +25 -5
- 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.cjs +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/oneToManyBatchLoader.js +1 -1
- package/build/batchloaders/oneToOneBatchLoader.cjs +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/oneToOneBatchLoader.js +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.cjs +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/recursiveChildrenBatchLoader.js +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.cjs +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/batchloaders/recursiveParentsBatchLoader.js +1 -1
- package/build/changes.cjs +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 +1 -1
- package/build/changes.js.map +1 -1
- package/build/config.cjs +165 -26
- package/build/config.cjs.map +1 -1
- package/build/config.d.cts +111 -19
- package/build/config.d.cts.map +1 -1
- package/build/config.d.mts +111 -19
- package/build/config.d.mts.map +1 -1
- package/build/config.js +165 -26
- package/build/config.js.map +1 -1
- package/build/configure.cjs +32 -2
- package/build/configure.cjs.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/configure.js +32 -2
- package/build/configure.js.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.cjs +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/findDataLoader.js +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.cjs +6 -2
- package/build/dataloaders/findOrCreateDataLoader.cjs.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/findOrCreateDataLoader.js +7 -3
- package/build/dataloaders/findOrCreateDataLoader.js.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.cjs +10 -12
- package/build/dataloaders/findPaginatedDataLoader.cjs.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/findPaginatedDataLoader.js +10 -12
- package/build/dataloaders/findPaginatedDataLoader.js.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 +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 +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.cjs +4 -3
- package/build/drivers/EntityWriter.cjs.map +1 -1
- package/build/drivers/EntityWriter.d.cts +19 -7
- package/build/drivers/EntityWriter.d.cts.map +1 -1
- package/build/drivers/EntityWriter.d.mts +19 -7
- package/build/drivers/EntityWriter.d.mts.map +1 -1
- package/build/drivers/EntityWriter.js +5 -4
- package/build/drivers/EntityWriter.js.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.cjs +12 -9
- package/build/fields.cjs.map +1 -1
- package/build/fields.d.cts +10 -11
- package/build/fields.d.cts.map +1 -1
- package/build/fields.d.mts +10 -11
- package/build/fields.d.mts.map +1 -1
- package/build/fields.js +12 -9
- package/build/fields.js.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/ReadDrift.cjs +90 -0
- package/build/flush/ReadDrift.cjs.map +1 -0
- package/build/flush/ReadDrift.d.cts +25 -0
- package/build/flush/ReadDrift.d.cts.map +1 -0
- package/build/flush/ReadDrift.d.mts +25 -0
- package/build/flush/ReadDrift.d.mts.map +1 -0
- package/build/flush/ReadDrift.js +87 -0
- package/build/flush/ReadDrift.js.map +1 -0
- 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.cjs +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/getProperties.js +1 -1
- package/build/index.cjs +20 -7
- package/build/index.cjs.map +1 -1
- package/build/index.d.cts +23 -19
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +23 -19
- package/build/index.d.mts.map +1 -1
- package/build/index.js +17 -10
- package/build/index.js.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 +2 -2
- package/build/loading/IsLoadedCache.cjs.map +1 -1
- package/build/loading/IsLoadedCache.d.cts +3 -4
- package/build/loading/IsLoadedCache.d.cts.map +1 -1
- package/build/loading/IsLoadedCache.d.mts +3 -4
- package/build/loading/IsLoadedCache.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.js +2 -2
- 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.cjs +1 -1
- package/build/logging/FactoryLogger.cjs.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/FactoryLogger.js +2 -2
- package/build/logging/FactoryLogger.js.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/metrics/EntityMetrics.cjs +81 -0
- package/build/metrics/EntityMetrics.cjs.map +1 -0
- package/build/metrics/EntityMetrics.d.cts +55 -0
- package/build/metrics/EntityMetrics.d.cts.map +1 -0
- package/build/metrics/EntityMetrics.d.mts +55 -0
- package/build/metrics/EntityMetrics.d.mts.map +1 -0
- package/build/metrics/EntityMetrics.js +79 -0
- package/build/metrics/EntityMetrics.js.map +1 -0
- package/build/newEntity.cjs +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 +1 -1
- package/build/newEntity.js.map +1 -1
- package/build/newTestInstance.cjs +1 -0
- package/build/newTestInstance.cjs.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/newTestInstance.js +1 -0
- package/build/newTestInstance.js.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.cjs +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/preloading/partitionHint.js +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.cjs +18 -7
- package/build/queries/find/QueryParser.cjs.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.cjs +2 -1
- package/build/queries/find/QueryParser.collectionJoins.cjs.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.collectionJoins.js +2 -1
- package/build/queries/find/QueryParser.collectionJoins.js.map +1 -1
- package/build/queries/find/QueryParser.d.cts +39 -18
- package/build/queries/find/QueryParser.d.cts.map +1 -1
- package/build/queries/find/QueryParser.d.mts +39 -18
- package/build/queries/find/QueryParser.d.mts.map +1 -1
- package/build/queries/find/QueryParser.js +18 -7
- package/build/queries/find/QueryParser.js.map +1 -1
- package/build/queries/find/QueryParser.pruning.cjs +50 -1
- package/build/queries/find/QueryParser.pruning.cjs.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.cts +15 -3
- package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.mts +15 -3
- package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
- package/build/queries/find/QueryParser.pruning.js +50 -1
- package/build/queries/find/QueryParser.pruning.js.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.cjs +38 -0
- package/build/queries/sql/Expr.cjs.map +1 -1
- package/build/queries/sql/Expr.d.cts +45 -27
- package/build/queries/sql/Expr.d.cts.map +1 -1
- package/build/queries/sql/Expr.d.mts +45 -27
- package/build/queries/sql/Expr.d.mts.map +1 -1
- package/build/queries/sql/Expr.js +38 -1
- package/build/queries/sql/Expr.js.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.cjs +9 -0
- package/build/queries/sql/Tables.cjs.map +1 -1
- package/build/queries/sql/Tables.d.cts +46 -39
- package/build/queries/sql/Tables.d.cts.map +1 -1
- package/build/queries/sql/Tables.d.mts +46 -39
- package/build/queries/sql/Tables.d.mts.map +1 -1
- package/build/queries/sql/Tables.js +10 -1
- package/build/queries/sql/Tables.js.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.cjs +68 -89
- package/build/queries/sql/execute.cjs.map +1 -1
- package/build/queries/sql/execute.d.cts +49 -32
- package/build/queries/sql/execute.d.cts.map +1 -1
- package/build/queries/sql/execute.d.mts +49 -32
- package/build/queries/sql/execute.d.mts.map +1 -1
- package/build/queries/sql/execute.js +70 -91
- package/build/queries/sql/execute.js.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 +77 -30
- package/build/queries/sql/query.cjs.map +1 -1
- package/build/queries/sql/query.d.cts +119 -76
- package/build/queries/sql/query.d.cts.map +1 -1
- package/build/queries/sql/query.d.mts +119 -76
- package/build/queries/sql/query.d.mts.map +1 -1
- package/build/queries/sql/query.js +75 -30
- package/build/queries/sql/query.js.map +1 -1
- package/build/queries/unnest.cjs +4 -5
- package/build/queries/unnest.cjs.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/unnest.js +4 -5
- package/build/queries/unnest.js.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 +171 -2
- package/build/reactivity/ReactionsManager.cjs.map +1 -1
- package/build/reactivity/ReactionsManager.d.cts +56 -4
- package/build/reactivity/ReactionsManager.d.cts.map +1 -1
- package/build/reactivity/ReactionsManager.d.mts +56 -4
- package/build/reactivity/ReactionsManager.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.js +172 -3
- package/build/reactivity/ReactionsManager.js.map +1 -1
- package/build/reactivity/reactiveHints.cjs +9 -3
- package/build/reactivity/reactiveHints.cjs.map +1 -1
- package/build/reactivity/reactiveHints.d.cts +19 -18
- package/build/reactivity/reactiveHints.d.cts.map +1 -1
- package/build/reactivity/reactiveHints.d.mts +19 -18
- package/build/reactivity/reactiveHints.d.mts.map +1 -1
- package/build/reactivity/reactiveHints.js +9 -3
- package/build/reactivity/reactiveHints.js.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 +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 +1 -1
- package/build/relations/AsyncProperty.js.map +1 -1
- package/build/relations/AsyncReactiveField.cjs +23 -5
- package/build/relations/AsyncReactiveField.cjs.map +1 -1
- package/build/relations/AsyncReactiveField.d.cts +7 -6
- package/build/relations/AsyncReactiveField.d.cts.map +1 -1
- package/build/relations/AsyncReactiveField.d.mts +7 -6
- package/build/relations/AsyncReactiveField.d.mts.map +1 -1
- package/build/relations/AsyncReactiveField.js +23 -5
- 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 +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 +1 -1
- package/build/relations/CustomCollection.js.map +1 -1
- package/build/relations/CustomReference.cjs +2 -2
- 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 +2 -2
- package/build/relations/CustomReference.js.map +1 -1
- package/build/relations/EnumCollection.cjs +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 +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 +16 -2
- package/build/relations/LazyField.cjs.map +1 -1
- package/build/relations/LazyField.d.cts +13 -8
- package/build/relations/LazyField.d.cts.map +1 -1
- package/build/relations/LazyField.d.mts +13 -8
- package/build/relations/LazyField.d.mts.map +1 -1
- package/build/relations/LazyField.js +16 -2
- package/build/relations/LazyField.js.map +1 -1
- package/build/relations/ManyToManyCollection.cjs +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 +1 -1
- package/build/relations/ManyToManyCollection.js.map +1 -1
- package/build/relations/ManyToManyLargeCollection.cjs +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/ManyToManyLargeCollection.js +1 -1
- package/build/relations/ManyToOneReference.cjs +2 -2
- 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 +2 -2
- package/build/relations/ManyToOneReference.js.map +1 -1
- package/build/relations/OneToManyCollection.cjs +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 +1 -1
- package/build/relations/OneToManyCollection.js.map +1 -1
- package/build/relations/OneToManyLargeCollection.cjs +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 +1 -1
- package/build/relations/OneToManyLargeCollection.js.map +1 -1
- package/build/relations/OneToOneReference.cjs +2 -2
- 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 +2 -2
- package/build/relations/OneToOneReference.js.map +1 -1
- package/build/relations/PolymorphicReference.cjs +2 -2
- 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 +2 -2
- 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 +27 -6
- package/build/relations/ReactiveField.cjs.map +1 -1
- package/build/relations/ReactiveField.d.cts +11 -7
- package/build/relations/ReactiveField.d.cts.map +1 -1
- package/build/relations/ReactiveField.d.mts +11 -7
- package/build/relations/ReactiveField.d.mts.map +1 -1
- package/build/relations/ReactiveField.js +27 -6
- package/build/relations/ReactiveField.js.map +1 -1
- package/build/relations/ReactiveGetter.cjs +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 +1 -1
- package/build/relations/ReactiveGetter.js.map +1 -1
- package/build/relations/ReactiveManyToMany.cjs +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 +1 -1
- package/build/relations/ReactiveManyToMany.js.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.cjs +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 +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
- package/build/relations/ReactiveReference.cjs +2 -2
- package/build/relations/ReactiveReference.cjs.map +1 -1
- package/build/relations/ReactiveReference.d.cts +6 -7
- package/build/relations/ReactiveReference.d.cts.map +1 -1
- package/build/relations/ReactiveReference.d.mts +6 -7
- package/build/relations/ReactiveReference.d.mts.map +1 -1
- package/build/relations/ReactiveReference.js +2 -2
- 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 +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 +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 +24 -5
- package/build/relations/hasAsyncMethod.cjs.map +1 -1
- package/build/relations/hasAsyncMethod.d.cts +9 -8
- package/build/relations/hasAsyncMethod.d.cts.map +1 -1
- package/build/relations/hasAsyncMethod.d.mts +9 -8
- package/build/relations/hasAsyncMethod.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.js +24 -6
- package/build/relations/hasAsyncMethod.js.map +1 -1
- package/build/relations/hasManyDerived.cjs +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/hasManyDerived.js +1 -1
- package/build/relations/hasManyThrough.cjs +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/hasManyThrough.js +1 -1
- package/build/relations/hasOneDerived.cjs +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/hasOneDerived.js +1 -1
- package/build/relations/hasOneThrough.cjs +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/hasOneThrough.js +1 -1
- package/build/relations/hasProperty.cjs +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 +1 -1
- package/build/relations/hasProperty.js.map +1 -1
- package/build/relations/hasReactiveAsyncMethod.cjs +87 -0
- package/build/relations/hasReactiveAsyncMethod.cjs.map +1 -0
- package/build/relations/hasReactiveAsyncMethod.d.cts +32 -0
- package/build/relations/hasReactiveAsyncMethod.d.cts.map +1 -0
- package/build/relations/hasReactiveAsyncMethod.d.mts +32 -0
- package/build/relations/hasReactiveAsyncMethod.d.mts.map +1 -0
- package/build/relations/hasReactiveAsyncMethod.js +85 -0
- package/build/relations/hasReactiveAsyncMethod.js.map +1 -0
- package/build/relations/index.cjs +2 -0
- package/build/relations/index.d.cts +2 -1
- package/build/relations/index.d.mts +2 -1
- package/build/relations/index.js +2 -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.cjs +11 -1
- package/build/resurrection.cjs.map +1 -1
- package/build/resurrection.d.cts +5 -3
- package/build/resurrection.d.cts.map +1 -1
- package/build/resurrection.d.mts +5 -3
- package/build/resurrection.d.mts.map +1 -1
- package/build/resurrection.js +11 -2
- package/build/resurrection.js.map +1 -1
- package/build/rules.cjs +1 -1
- package/build/rules.cjs.map +1 -1
- package/build/rules.d.cts +25 -20
- package/build/rules.d.cts.map +1 -1
- package/build/rules.d.mts +25 -20
- package/build/rules.d.mts.map +1 -1
- package/build/rules.js +1 -1
- package/build/rules.js.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.cjs +3 -0
- package/build/serde/columns.cjs.map +1 -1
- package/build/serde/columns.d.cts +3 -3
- package/build/serde/columns.d.cts.map +1 -1
- package/build/serde/columns.d.mts +3 -3
- package/build/serde/columns.d.mts.map +1 -1
- package/build/serde/columns.js +3 -0
- package/build/serde/columns.js.map +1 -1
- package/build/serde/fieldSerde.cjs +3 -0
- package/build/serde/fieldSerde.cjs.map +1 -1
- package/build/serde/fieldSerde.d.cts +10 -9
- package/build/serde/fieldSerde.d.cts.map +1 -1
- package/build/serde/fieldSerde.d.mts +10 -9
- package/build/serde/fieldSerde.d.mts.map +1 -1
- package/build/serde/fieldSerde.js +3 -0
- package/build/serde/fieldSerde.js.map +1 -1
- package/build/serde/serde.cjs +60 -0
- package/build/serde/serde.cjs.map +1 -1
- package/build/serde/serde.d.cts +58 -19
- package/build/serde/serde.d.cts.map +1 -1
- package/build/serde/serde.d.mts +58 -19
- package/build/serde/serde.d.mts.map +1 -1
- package/build/serde/serde.js +60 -1
- package/build/serde/serde.js.map +1 -1
- package/build/serde/temporal.cjs +7 -12
- package/build/serde/temporal.cjs.map +1 -1
- package/build/serde/temporal.d.cts +6 -6
- package/build/serde/temporal.d.cts.map +1 -1
- package/build/serde/temporal.d.mts +6 -6
- package/build/serde/temporal.d.mts.map +1 -1
- package/build/serde/temporal.js +7 -12
- package/build/serde/temporal.js.map +1 -1
- package/build/serde/temporalMappers.cjs +8 -4
- package/build/serde/temporalMappers.cjs.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/serde/temporalMappers.js +8 -4
- package/build/serde/temporalMappers.js.map +1 -1
- package/build/transitions.cjs +91 -0
- package/build/transitions.cjs.map +1 -0
- package/build/transitions.d.cts +115 -0
- package/build/transitions.d.cts.map +1 -0
- package/build/transitions.d.mts +115 -0
- package/build/transitions.d.mts.map +1 -0
- package/build/transitions.js +86 -0
- package/build/transitions.js.map +1 -0
- 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.cjs +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/upsert.js +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 +6 -6
|
@@ -7,13 +7,13 @@ import { IdOf, MaybeAbstractEntityConstructor, TaggedId } from "../../EntityMana
|
|
|
7
7
|
import { Entity } from "../../Entity.mjs";
|
|
8
8
|
//#region src/queries/find/Aliases.d.ts
|
|
9
9
|
/** Creates an alias for complex domain filtering in `em.find`. */
|
|
10
|
-
declare function alias<T extends Entity>(cstr: MaybeAbstractEntityConstructor<T>): Alias<T>;
|
|
10
|
+
export declare function alias<T extends Entity>(cstr: MaybeAbstractEntityConstructor<T>): Alias<T>;
|
|
11
11
|
/** Creates multiple aliases for complex filtering. */
|
|
12
|
-
declare function aliases<T extends readonly MaybeAbstractEntityConstructor<any>[]>(...types: T): { [P in keyof T]: T[P] extends MaybeAbstractEntityConstructor<infer E extends Entity> ? Alias<E> : never; };
|
|
13
|
-
declare const aliasMgmt: unique symbol;
|
|
12
|
+
export declare function aliases<T extends readonly MaybeAbstractEntityConstructor<any>[]>(...types: T): { [P in keyof T]: T[P] extends MaybeAbstractEntityConstructor<infer E extends Entity> ? Alias<E> : never; };
|
|
13
|
+
export declare const aliasMgmt: unique symbol;
|
|
14
14
|
declare const aliasColumn: unique symbol;
|
|
15
15
|
/** The identity and original entity metadata of an `em.find` alias. */
|
|
16
|
-
interface AliasMgmt {
|
|
16
|
+
export interface AliasMgmt {
|
|
17
17
|
tableName: string;
|
|
18
18
|
meta: EntityMetadata;
|
|
19
19
|
/**
|
|
@@ -23,7 +23,7 @@ interface AliasMgmt {
|
|
|
23
23
|
condition(build: (meta: EntityMetadata, alias: string) => RawCondition): RawCondition & PredicateBrand<"domain">;
|
|
24
24
|
}
|
|
25
25
|
/** Keeps domain aliases covariant in their entity type. */
|
|
26
|
-
interface AliasBrand<T> extends AliasMgmt {
|
|
26
|
+
export interface AliasBrand<T> extends AliasMgmt {
|
|
27
27
|
readonly __entity: T;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
@@ -45,7 +45,7 @@ interface AliasBrand<T> extends AliasMgmt {
|
|
|
45
45
|
* so they render through ExprContext rather than asking the find parser to bind a relationship path.
|
|
46
46
|
* Neither path stores a resolved SQL name on the reusable handle or predicate.
|
|
47
47
|
*/
|
|
48
|
-
type Alias<T extends Entity> = {
|
|
48
|
+
export type Alias<T extends Entity> = {
|
|
49
49
|
readonly [aliasMgmt]: AliasBrand<T>;
|
|
50
50
|
} & { [P in keyof FieldsOf<T>]: P extends "id" ? EntityAlias<T> : FieldsOf<T>[P] extends {
|
|
51
51
|
kind: "primitive" | "enum";
|
|
@@ -60,10 +60,10 @@ type Alias<T extends Entity> = {
|
|
|
60
60
|
type: infer U extends Entity;
|
|
61
61
|
} ? PolyAlias<U> : never; };
|
|
62
62
|
/** A domain column accepted on the other side of a cross-alias comparison. */
|
|
63
|
-
interface AliasColumn<V> {
|
|
63
|
+
export interface AliasColumn<V> {
|
|
64
64
|
readonly [aliasColumn]: V;
|
|
65
65
|
}
|
|
66
|
-
interface PrimitiveAlias<V, N extends null | never = never> extends AliasColumn<V | N> {
|
|
66
|
+
export interface PrimitiveAlias<V, N extends null | never = never> extends AliasColumn<V | N> {
|
|
67
67
|
eq(value: V | N | AliasColumn<V | null> | undefined): ExpressionCondition;
|
|
68
68
|
ne(value: V | N | AliasColumn<V | null> | undefined): ExpressionCondition;
|
|
69
69
|
in(values: readonly (V | null)[] | undefined): ExpressionCondition;
|
|
@@ -87,7 +87,7 @@ interface PrimitiveAlias<V, N extends null | never = never> extends AliasColumn<
|
|
|
87
87
|
/** Adds an operator and expression with knex-style placeholders, without the column name. */
|
|
88
88
|
raw(exp: string, bindings: readonly unknown[] | undefined): ExpressionCondition;
|
|
89
89
|
}
|
|
90
|
-
interface EntityAlias<T, N extends null | never = never> extends AliasColumn<IdOf<T> | N> {
|
|
90
|
+
export interface EntityAlias<T, N extends null | never = never> extends AliasColumn<IdOf<T> | N> {
|
|
91
91
|
eq(value: T | IdOf<T> | AliasColumn<IdOf<T> | null> | null | undefined): ExpressionCondition;
|
|
92
92
|
ne(value: T | IdOf<T> | AliasColumn<IdOf<T> | null> | null | undefined): ExpressionCondition;
|
|
93
93
|
in(values: readonly (T | IdOf<T> | null)[] | null | undefined): ExpressionCondition;
|
|
@@ -98,25 +98,25 @@ interface EntityAlias<T, N extends null | never = never> extends AliasColumn<IdO
|
|
|
98
98
|
lte(value: IdOf<T> | AliasColumn<IdOf<T> | null> | null | undefined): ExpressionCondition;
|
|
99
99
|
raw(exp: string, bindings: readonly unknown[] | undefined): ExpressionCondition;
|
|
100
100
|
}
|
|
101
|
-
interface PolyAlias<T extends Entity> {
|
|
101
|
+
export interface PolyAlias<T extends Entity> {
|
|
102
102
|
eq(value: T | TaggedId | AliasColumn<IdOf<T> | null> | null | undefined): ExpressionCondition;
|
|
103
103
|
ne(value: T | TaggedId | AliasColumn<IdOf<T> | null> | null | undefined): ExpressionCondition;
|
|
104
104
|
in(values: readonly (T | TaggedId)[] | undefined): ExpressionCondition;
|
|
105
105
|
}
|
|
106
106
|
/** Returns the runtime identity bound by the find parser. */
|
|
107
|
-
declare function getAliasMgmt(alias: {
|
|
107
|
+
export declare function getAliasMgmt(alias: {
|
|
108
108
|
readonly [aliasMgmt]: AliasMgmt;
|
|
109
109
|
}): AliasMgmt;
|
|
110
110
|
/** Returns the original metadata, preserving STI subtype identity. */
|
|
111
|
-
declare function getAliasMetadata<T extends Entity>(alias: Alias<T>): EntityMetadata<T>;
|
|
111
|
+
export declare function getAliasMetadata<T extends Entity>(alias: Alias<T>): EntityMetadata<T>;
|
|
112
112
|
/** Creates domain predicates lazily from entity field metadata. */
|
|
113
|
-
declare function newAliasProxy<T extends Entity>(cstr: MaybeAbstractEntityConstructor<T>): Alias<T>;
|
|
113
|
+
export declare function newAliasProxy<T extends Entity>(cstr: MaybeAbstractEntityConstructor<T>): Alias<T>;
|
|
114
114
|
/** Recognizes only domain aliases, not physical tables. */
|
|
115
|
-
declare function isAlias(value: unknown): value is Alias<Entity>;
|
|
115
|
+
export declare function isAlias(value: unknown): value is Alias<Entity>;
|
|
116
116
|
/** Adjusts a field's SQL alias when a base alias is bound to a CTI subtype in the join tree. */
|
|
117
|
-
declare function getMaybeCtiAlias(meta: EntityMetadata, field: Field & {
|
|
117
|
+
export declare function getMaybeCtiAlias(meta: EntityMetadata, field: Field & {
|
|
118
118
|
aliasSuffix: string;
|
|
119
119
|
}, newMeta: EntityMetadata, newAlias: string): string;
|
|
120
120
|
//#endregion
|
|
121
|
-
export {
|
|
121
|
+
export {};
|
|
122
122
|
//# sourceMappingURL=Aliases.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aliases.d.mts","names":[],"sources":["../../../src/queries/find/Aliases.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Aliases.d.mts","names":[],"sources":["../../../src/queries/find/Aliases.ts"],"mappings":";;;;;;;;;wBAyBgB,MAAM,UAAU,QAAQ,MAAM,+BAA+B,KAAK,MAAM;;wBAKxE,QAAQ,mBAAmB,0CACtC,OAAO,OACN,WAAW,IAAI,EAAE,WAAW,qCAAqC,UAAU,UAAU,MAAM;qBAIpF;cACP;;iBAGW;EACf;EACA,MAAM;;;;;EAKN,UAAU,QAAQ,MAAM,gBAAgB,kBAAkB,eAAe,eAAe;;;iBAIzE,WAAW,WAAW;WAC5B,UAAU;;;;;;;;;;;;;;;;;;;;;YAsBT,MAAM,UAAU;YAAsB,YAAY,WAAW;OACtE,WAAW,SAAS,KAAK,iBACtB,YAAY,KACZ,SAAS,GAAG;EAAa;EAA4B,YAAY;EAAG,gBAAgB;IAClF,eAAe,GAAG,sCAClB,SAAS,GAAG;EAAa;EAAa,YAAY,UAAU;EAAQ,gBAAgB;IAClF,YAAY,GAAG,sCACf,SAAS,GAAG;EAAa;EAAc,YAAY,UAAU;IAC3D,UAAU;;iBAKL,YAAY;YACjB,cAAc;;iBAGT,eAAe,GAAG,wCAAwC,YAAY,IAAI;EACzF,GAAG,OAAO,IAAI,IAAI,YAAY,wBAAwB;EACtD,GAAG,OAAO,IAAI,IAAI,YAAY,wBAAwB;EACtD,GAAG,kBAAkB,0BAA0B;EAC/C,IAAI,kBAAkB,0BAA0B;EAChD,GAAG,OAAO,IAAI,YAAY,wBAAwB;EAClD,IAAI,OAAO,IAAI,YAAY,wBAAwB;EACnD,GAAG,OAAO,IAAI,YAAY,wBAAwB;EAClD,IAAI,OAAO,IAAI,YAAY,wBAAwB;EACnD,KAAK,OAAO,gBAAgB;EAC5B,MAAM,OAAO,gBAAgB;EAC7B,OAAO,OAAO,gBAAgB;EAC9B,QAAQ,IAAI,eAAe,IAAI,gBAAgB;EAE/C,SAAS,gBAAgB,IAAI,YAAY,YAAY,gBAAgB;EACrE,UAAU,gBAAgB,IAAI,YAAY,YAAY,gBAAgB;EACtE,SAAS,OAAO,IAAI,YAAY,YAAY,gBAAgB;EAC5D,UAAU,OAAO,IAAI,YAAY,YAAY,gBAAgB;;EAE7D,WAAW,+BAA+B;;EAE1C,WAAW,+BAA+B;;EAE1C,IAAI,aAAa,2CAA2C;;iBAG7C,YAAY,GAAG,wCAAwC,YAAY,KAAK,KAAK;EAC5F,GAAG,OAAO,IAAI,KAAK,KAAK,YAAY,KAAK,gCAAgC;EACzE,GAAG,OAAO,IAAI,KAAK,KAAK,YAAY,KAAK,gCAAgC;EAEzE,GAAG,kBAAkB,IAAI,KAAK,kCAAkC;EAChE,IAAI,kBAAkB,IAAI,KAAK,kCAAkC;EACjE,GAAG,OAAO,KAAK,KAAK,YAAY,KAAK,gCAAgC;EACrE,IAAI,OAAO,KAAK,KAAK,YAAY,KAAK,gCAAgC;EACtE,GAAG,OAAO,KAAK,KAAK,YAAY,KAAK,gCAAgC;EACrE,IAAI,OAAO,KAAK,KAAK,YAAY,KAAK,gCAAgC;EACtE,IAAI,aAAa,2CAA2C;;iBAG7C,UAAU,UAAU;EACnC,GAAG,OAAO,IAAI,WAAW,YAAY,KAAK,gCAAgC;EAC1E,GAAG,OAAO,IAAI,WAAW,YAAY,KAAK,gCAAgC;EAC1E,GAAG,kBAAkB,IAAI,0BAA0B;;;wBAIrC,aAAa;YAAmB,YAAY;IAAc;;wBAK1D,iBAAiB,UAAU,QAAQ,OAAO,MAAM,KAAK,eAAe;;wBAKpE,cAAc,UAAU,QAAQ,MAAM,+BAA+B,KAAK,MAAM;;wBA+BhF,QAAQ,iBAAiB,SAAS,MAAM;;wBAiMxC,iBACd,MAAM,gBACN,OAAO;EAAU;GACjB,SAAS,gBACT"}
|
|
@@ -3,20 +3,19 @@ import { PredicateBrand } from "../conditions.cjs";
|
|
|
3
3
|
import { AliasMgmt } from "./Aliases.cjs";
|
|
4
4
|
import { EntityMetadata } from "../../EntityMetadata.cjs";
|
|
5
5
|
//#region src/queries/find/DeferredAlias.d.ts
|
|
6
|
-
declare const deferredAliasSym: unique symbol;
|
|
6
|
+
export declare const deferredAliasSym: unique symbol;
|
|
7
7
|
/** Resolves a domain alias to this em.find parse's binding. */
|
|
8
|
-
type AliasResolver = (handle: AliasMgmt) => {
|
|
8
|
+
export type AliasResolver = (handle: AliasMgmt) => {
|
|
9
9
|
meta: EntityMetadata;
|
|
10
10
|
alias: string;
|
|
11
11
|
};
|
|
12
12
|
/** A domain condition whose SQL aliases are resolved afresh for each occurrence in em.find. */
|
|
13
|
-
interface DeferredAliasCondition<C = ColumnCondition | RawCondition> extends PredicateBrand<"domain"> {
|
|
13
|
+
export interface DeferredAliasCondition<C = ColumnCondition | RawCondition> extends PredicateBrand<"domain"> {
|
|
14
14
|
[deferredAliasSym]: (resolve: AliasResolver) => C;
|
|
15
15
|
}
|
|
16
16
|
/** Detects conditions that carry a per-parse alias resolver. */
|
|
17
|
-
declare function isDeferredAliasCondition<C>(cond: C): cond is C & DeferredAliasCondition<C>;
|
|
17
|
+
export declare function isDeferredAliasCondition<C>(cond: C): cond is C & DeferredAliasCondition<C>;
|
|
18
18
|
/** Tags a condition without changing its enumerable shape; resolution only mutates a fresh copy. */
|
|
19
|
-
declare function withDeferredAlias<C extends object>(cond: C, resolve: (r: AliasResolver, copy: C) => void): C & DeferredAliasCondition<C>;
|
|
19
|
+
export declare function withDeferredAlias<C extends object>(cond: C, resolve: (r: AliasResolver, copy: C) => void): C & DeferredAliasCondition<C>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { AliasResolver, DeferredAliasCondition, deferredAliasSym, isDeferredAliasCondition, withDeferredAlias };
|
|
22
21
|
//# sourceMappingURL=DeferredAlias.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeferredAlias.d.cts","names":[],"sources":["../../../src/queries/find/DeferredAlias.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DeferredAlias.d.cts","names":[],"sources":["../../../src/queries/find/DeferredAlias.ts"],"mappings":";;;;;qBAMa;;YAGD,iBAAiB,QAAQ;EACnC,MAAM;EACN;;;iBAIe,uBAAuB,IAAI,kBAAkB,sBAAsB;GACjF,oBAAoB,SAAS,kBAAkB;;;wBAIlC,yBAAyB,GAAG,MAAM,IAAI,QAAQ,IAAI,uBAAuB;;wBAKzE,kBAAkB,kBAChC,MAAM,GACN,UAAU,GAAG,eAAe,MAAM,aACjC,IAAI,uBAAuB"}
|
|
@@ -3,20 +3,19 @@ import { PredicateBrand } from "../conditions.mjs";
|
|
|
3
3
|
import { AliasMgmt } from "./Aliases.mjs";
|
|
4
4
|
import { EntityMetadata } from "../../EntityMetadata.mjs";
|
|
5
5
|
//#region src/queries/find/DeferredAlias.d.ts
|
|
6
|
-
declare const deferredAliasSym: unique symbol;
|
|
6
|
+
export declare const deferredAliasSym: unique symbol;
|
|
7
7
|
/** Resolves a domain alias to this em.find parse's binding. */
|
|
8
|
-
type AliasResolver = (handle: AliasMgmt) => {
|
|
8
|
+
export type AliasResolver = (handle: AliasMgmt) => {
|
|
9
9
|
meta: EntityMetadata;
|
|
10
10
|
alias: string;
|
|
11
11
|
};
|
|
12
12
|
/** A domain condition whose SQL aliases are resolved afresh for each occurrence in em.find. */
|
|
13
|
-
interface DeferredAliasCondition<C = ColumnCondition | RawCondition> extends PredicateBrand<"domain"> {
|
|
13
|
+
export interface DeferredAliasCondition<C = ColumnCondition | RawCondition> extends PredicateBrand<"domain"> {
|
|
14
14
|
[deferredAliasSym]: (resolve: AliasResolver) => C;
|
|
15
15
|
}
|
|
16
16
|
/** Detects conditions that carry a per-parse alias resolver. */
|
|
17
|
-
declare function isDeferredAliasCondition<C>(cond: C): cond is C & DeferredAliasCondition<C>;
|
|
17
|
+
export declare function isDeferredAliasCondition<C>(cond: C): cond is C & DeferredAliasCondition<C>;
|
|
18
18
|
/** Tags a condition without changing its enumerable shape; resolution only mutates a fresh copy. */
|
|
19
|
-
declare function withDeferredAlias<C extends object>(cond: C, resolve: (r: AliasResolver, copy: C) => void): C & DeferredAliasCondition<C>;
|
|
19
|
+
export declare function withDeferredAlias<C extends object>(cond: C, resolve: (r: AliasResolver, copy: C) => void): C & DeferredAliasCondition<C>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { AliasResolver, DeferredAliasCondition, deferredAliasSym, isDeferredAliasCondition, withDeferredAlias };
|
|
22
21
|
//# sourceMappingURL=DeferredAlias.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeferredAlias.d.mts","names":[],"sources":["../../../src/queries/find/DeferredAlias.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DeferredAlias.d.mts","names":[],"sources":["../../../src/queries/find/DeferredAlias.ts"],"mappings":";;;;;qBAMa;;YAGD,iBAAiB,QAAQ;EACnC,MAAM;EACN;;;iBAIe,uBAAuB,IAAI,kBAAkB,sBAAsB;GACjF,oBAAoB,SAAS,kBAAkB;;;wBAIlC,yBAAyB,GAAG,MAAM,IAAI,QAAQ,IAAI,uBAAuB;;wBAKzE,kBAAkB,kBAChC,MAAM,GACN,UAAU,GAAG,eAAe,MAAM,aACjC,IAAI,uBAAuB"}
|
|
@@ -6,7 +6,7 @@ import { FindFilterOptions, IdOf } from "../../EntityManager.cjs";
|
|
|
6
6
|
import { Entity } from "../../Entity.cjs";
|
|
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.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFilter.d.cts","names":[],"sources":["../../../src/queries/find/EntityFilter.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"EntityFilter.d.cts","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"}
|
|
@@ -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"}
|
|
@@ -263,7 +263,7 @@ function parseFindQuery(meta, filter, opts = {}) {
|
|
|
263
263
|
const f = require_queries_valueFilters.parseEntityFilter(field.otherMetadata(), sub);
|
|
264
264
|
if (!f && !require_queries_find_Aliases.isAlias(sub)) return;
|
|
265
265
|
const ja = getAlias(field.joinTableName);
|
|
266
|
-
|
|
266
|
+
const joinTable = {
|
|
267
267
|
join: "outer",
|
|
268
268
|
alias: ja,
|
|
269
269
|
table: field.joinTableName,
|
|
@@ -274,16 +274,27 @@ function parseFindQuery(meta, filter, opts = {}) {
|
|
|
274
274
|
rootAlias: ja,
|
|
275
275
|
kind: "m2m"
|
|
276
276
|
}
|
|
277
|
-
}
|
|
277
|
+
};
|
|
278
|
+
tables.push(joinTable);
|
|
278
279
|
if (require_queries_find_Aliases.isAlias(sub) || f?.kind === "join" || require_queries_entityQueryUtils.filterSoftDeletes(field.otherMetadata(), softDeletes)) {
|
|
279
280
|
const a = getAlias(field.otherMetadata().tableName);
|
|
280
281
|
addTable(field.otherMetadata(), a, "outer", require_queries_sql_keywords.kqDot(ja, field.columnNames[1]), require_queries_sql_keywords.kqDot(a, "id"), sub, void 0, targetCb, true);
|
|
281
282
|
const table = tables.find((t) => t.alias === a);
|
|
282
|
-
if (table && (table.join === "inner" || table.join === "outer"))
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
283
|
+
if (table && (table.join === "inner" || table.join === "outer")) {
|
|
284
|
+
table.collection = {
|
|
285
|
+
parentAlias: ja,
|
|
286
|
+
rootAlias: ja,
|
|
287
|
+
kind: "m2m"
|
|
288
|
+
};
|
|
289
|
+
const otherMeta = field.otherMetadata();
|
|
290
|
+
if (!otherMeta.inheritanceType && !require_queries_entityQueryUtils.filterSoftDeletes(otherMeta, softDeletes)) joinTable.idJoin = {
|
|
291
|
+
alias: table.alias,
|
|
292
|
+
table: table.table,
|
|
293
|
+
col1: table.col1,
|
|
294
|
+
col2: table.col2,
|
|
295
|
+
fkColumn: field.columnNames[1]
|
|
296
|
+
};
|
|
297
|
+
}
|
|
287
298
|
} else if (f) {
|
|
288
299
|
const otherMeta = field.otherMetadata();
|
|
289
300
|
const column = {
|