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
package/build/rules.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { MaybePromise } from "./utils.cjs";
|
|
|
4
4
|
import { ReactiveHint } from "./reactivity/reactiveHints.cjs";
|
|
5
5
|
import { Entity } from "./Entity.cjs";
|
|
6
6
|
//#region src/rules.d.ts
|
|
7
|
-
declare enum ValidationCode {
|
|
7
|
+
export declare enum ValidationCode {
|
|
8
8
|
required = "required",
|
|
9
9
|
cannotBeUpdated = "not-updatable",
|
|
10
10
|
cannotBeChanged = "not-changeable",
|
|
@@ -19,31 +19,31 @@ declare enum ValidationCode {
|
|
|
19
19
|
*
|
|
20
20
|
* Returning `undefined` means the rule passed.
|
|
21
21
|
*/
|
|
22
|
-
type ValidationRuleResult = string | string[] | GenericError | GenericError[] | undefined | void;
|
|
22
|
+
export type ValidationRuleResult = string | string[] | GenericError | GenericError[] | undefined | void;
|
|
23
23
|
/** An entity validation rule. */
|
|
24
|
-
type ValidationRule<T extends Entity> = (entity: T) => MaybePromise<ValidationRuleResult>;
|
|
24
|
+
export type ValidationRule<T extends Entity> = (entity: T) => MaybePromise<ValidationRuleResult>;
|
|
25
25
|
/** Internal metadata for an async/reactive validation rule. */
|
|
26
|
-
type ValidationRuleInternal<T extends Entity> = {
|
|
26
|
+
export type ValidationRuleInternal<T extends Entity> = {
|
|
27
27
|
name: string;
|
|
28
28
|
hint: ReactiveHint<T> | undefined;
|
|
29
29
|
fn: ValidationRule<T>;
|
|
30
30
|
};
|
|
31
31
|
/** A generic error which contains a message, and optional field/codes. */
|
|
32
|
-
type GenericError = {
|
|
32
|
+
export type GenericError = {
|
|
33
33
|
message: string;
|
|
34
34
|
field?: string;
|
|
35
35
|
code?: string;
|
|
36
36
|
};
|
|
37
37
|
/** Combines the GenericError with the `entity` that caused it. */
|
|
38
|
-
type ValidationError = {
|
|
38
|
+
export type ValidationError = {
|
|
39
39
|
entity: Entity;
|
|
40
40
|
} & GenericError;
|
|
41
|
-
type ValidationRuleOptsFn<T extends Entity> = (entity: T) => MaybePromise<boolean>;
|
|
42
|
-
type ValidationRuleOpts<T extends Entity> = {
|
|
41
|
+
export type ValidationRuleOptsFn<T extends Entity> = (entity: T) => MaybePromise<boolean>;
|
|
42
|
+
export type ValidationRuleOpts<T extends Entity> = {
|
|
43
43
|
unless?: ValidationRuleOptsFn<T>;
|
|
44
44
|
if?: ValidationRuleOptsFn<T>;
|
|
45
45
|
};
|
|
46
|
-
declare class ValidationErrors extends Error {
|
|
46
|
+
export declare class ValidationErrors extends Error {
|
|
47
47
|
errors: Array<GenericError | ValidationError>;
|
|
48
48
|
readonly toJSON: () => string;
|
|
49
49
|
constructor(errors: ValidationError[]);
|
|
@@ -66,7 +66,7 @@ type ColumnBackedFields<F> = { [K in keyof F as F[K] extends {
|
|
|
66
66
|
*
|
|
67
67
|
* This is added automatically by codegen to entities based on FK not-nulls.
|
|
68
68
|
*/
|
|
69
|
-
declare function newRequiredRule<T extends Entity>(key: keyof ColumnBackedFields<FieldsOf<T>> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
69
|
+
export declare function newRequiredRule<T extends Entity>(key: keyof ColumnBackedFields<FieldsOf<T>> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
70
70
|
/**
|
|
71
71
|
* Like `newRequiredRule`, but for `lazy` columns (i.e. codegen only wires this up for `lazy` fields).
|
|
72
72
|
*
|
|
@@ -74,27 +74,27 @@ declare function newRequiredRule<T extends Entity>(key: keyof ColumnBackedFields
|
|
|
74
74
|
* (or falsely fail) a value that was required when the row was last saved. It still fires on create and
|
|
75
75
|
* when the field is explicitly loaded-then-unset.
|
|
76
76
|
*/
|
|
77
|
-
declare function newRequiredLazyFieldRule<T extends Entity>(key: keyof FieldsOf<T> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
77
|
+
export declare function newRequiredLazyFieldRule<T extends Entity>(key: keyof FieldsOf<T> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
78
78
|
/**
|
|
79
79
|
* Creates a validation rule that a field cannot be updated; it can only be set on creation.
|
|
80
80
|
*
|
|
81
81
|
* If the optional `unless` function returns true, then the update is allowed.
|
|
82
82
|
*/
|
|
83
|
-
declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): CannotBeUpdatedRule<T>;
|
|
84
|
-
declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, unless?: ValidationRuleOptsFn<T>): CannotBeUpdatedRule<T>;
|
|
83
|
+
export declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): CannotBeUpdatedRule<T>;
|
|
84
|
+
export declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, unless?: ValidationRuleOptsFn<T>): CannotBeUpdatedRule<T>;
|
|
85
85
|
/**
|
|
86
86
|
* Creates a validation rule that a field cannot be changed once set.
|
|
87
87
|
*
|
|
88
88
|
* If the optional `unless` function returns true, then the update is allowed.
|
|
89
89
|
*/
|
|
90
|
-
declare function cannotBeChanged<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
90
|
+
export declare function cannotBeChanged<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
91
91
|
type CannotBeUpdatedRule<T extends Entity> = ValidationRule<T> & {
|
|
92
92
|
field: string;
|
|
93
93
|
immutable: boolean;
|
|
94
94
|
};
|
|
95
|
-
declare function isCannotBeUpdatedRule(rule: Function): rule is CannotBeUpdatedRule<any>;
|
|
95
|
+
export declare function isCannotBeUpdatedRule(rule: Function): rule is CannotBeUpdatedRule<any>;
|
|
96
96
|
/** For STI, enforces subtype-specific relations/FKs at runtime. */
|
|
97
|
-
declare function mustBeSubType<T extends Entity, K extends keyof Changes<T> & string>(relationName: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
97
|
+
export declare function mustBeSubType<T extends Entity, K extends keyof Changes<T> & string>(relationName: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
98
98
|
/**
|
|
99
99
|
* Creates a validation rule that a field value cannot be smaller than a
|
|
100
100
|
* certain value.
|
|
@@ -109,7 +109,7 @@ declare function mustBeSubType<T extends Entity, K extends keyof Changes<T> & st
|
|
|
109
109
|
* // Age cannot be smaller than 0
|
|
110
110
|
* config.addRule(minValueRule("age", 0));
|
|
111
111
|
*/
|
|
112
|
-
declare function minValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
112
|
+
export declare function minValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
113
113
|
/**
|
|
114
114
|
* Creates a validation rule that a field value cannot be greater than a
|
|
115
115
|
* certain value.
|
|
@@ -124,7 +124,7 @@ declare function minValueRule<T extends Entity, K extends keyof T & string>(fiel
|
|
|
124
124
|
* // Age cannot be greater than 150
|
|
125
125
|
* config.addRule(maxValueRule("age", 150));
|
|
126
126
|
*/
|
|
127
|
-
declare function maxValueRule<T extends Entity, K extends keyof T & string>(field: K, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
127
|
+
export declare function maxValueRule<T extends Entity, K extends keyof T & string>(field: K, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
128
128
|
/**
|
|
129
129
|
* Creates a validation rule that a field value must be within a range of
|
|
130
130
|
* certain values
|
|
@@ -139,7 +139,7 @@ declare function maxValueRule<T extends Entity, K extends keyof T & string>(fiel
|
|
|
139
139
|
* // Age must be between 0 and 150
|
|
140
140
|
* config.addRule(rangeValueRule("age", 0, 150));
|
|
141
141
|
*/
|
|
142
|
-
declare function rangeValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
142
|
+
export declare function rangeValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
143
143
|
//#endregion
|
|
144
|
-
export {
|
|
144
|
+
export {};
|
|
145
145
|
//# sourceMappingURL=rules.d.cts.map
|
package/build/rules.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.cts","names":[],"sources":["../src/rules.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"rules.d.cts","names":[],"sources":["../src/rules.ts"],"mappings":";;;;;;oBASY;EACV;EACA;EACA;EACA;EACA;EACA;;;;;;;;;YAUU,2CAA2C,eAAe;;YAG1D,eAAe,UAAU,WAAW,QAAQ,MAAM,aAAa;;YAG/D,uBAAuB,UAAU;EAC3C;EACA,MAAM,aAAa;EACnB,IAAI,eAAe;;;YAIT;EAAiB;EAAiB;EAAgB;;;YAGlD;EAAoB,QAAQ;IAAW;YAEvC,qBAAqB,UAAU,WAAW,QAAQ,MAAM;YACxD,mBAAmB,UAAU;EACvC,SAAS,qBAAqB;EAC9B,KAAK,qBAAqB;;qBAcf,yBAAyB;EAC7B,QAAQ,MAAM,eAAe;WACpB;EAChB,YAAY,QAAQ;EACpB,YAAY;;;;;;;;;;;KAsCT,mBAAmB,QACrB,WAAW,KAAK,EAAE;EAAa;IAAgD,YAAY,EAAE;;;;;;wBAQhF,gBAAgB,UAAU,QACxC,WAAW,mBAAmB,SAAS,cACvC,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;wBAwBF,yBAAyB,UAAU,QACjD,WAAW,SAAS,aACpB,OAAM,mBAAmB,KACxB,eAAe;;;;;;wBAcF,gBAAgB,UAAU,QAAQ,gBAAgB,QAAQ,aACxE,OAAO,GACP,OAAO,mBAAmB,KACzB,oBAAoB;wBACP,gBAAgB,UAAU,QAAQ,gBAAgB,QAAQ,aACxE,OAAO,GACP,SAAS,qBAAqB,KAC7B,oBAAoB;;;;;;wBAyBP,gBAAgB,UAAU,QAAQ,gBAAgB,QAAQ,aACxE,OAAO,GACP,OAAO,mBAAmB,KACzB,eAAe;KAgBb,oBAAoB,UAAU,UAAU,eAAe;EAAO;EAAe;;wBAElE,sBAAsB,MAAM,WAAW,QAAQ;;wBAK/C,cAAc,UAAU,QAAQ,gBAAgB,QAAQ,aACtE,cAAc,GACd,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;;;;;;;;wBAyBF,aAAa,UAAU,QAAQ,gBAAgB,YAC7D,OAAO,GACP,kBACA,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;;;;;;;;wBAmCF,aAAa,UAAU,QAAQ,gBAAgB,YAC7D,OAAO,GACP,kBACA,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;;;;;;;;wBAmCF,eAAe,UAAU,QAAQ,gBAAgB,YAC/D,OAAO,GACP,kBACA,kBACA,OAAM,mBAAmB,KACxB,eAAe"}
|
package/build/rules.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { MaybePromise } from "./utils.mjs";
|
|
|
4
4
|
import { ReactiveHint } from "./reactivity/reactiveHints.mjs";
|
|
5
5
|
import { Entity } from "./Entity.mjs";
|
|
6
6
|
//#region src/rules.d.ts
|
|
7
|
-
declare enum ValidationCode {
|
|
7
|
+
export declare enum ValidationCode {
|
|
8
8
|
required = "required",
|
|
9
9
|
cannotBeUpdated = "not-updatable",
|
|
10
10
|
cannotBeChanged = "not-changeable",
|
|
@@ -19,31 +19,31 @@ declare enum ValidationCode {
|
|
|
19
19
|
*
|
|
20
20
|
* Returning `undefined` means the rule passed.
|
|
21
21
|
*/
|
|
22
|
-
type ValidationRuleResult = string | string[] | GenericError | GenericError[] | undefined | void;
|
|
22
|
+
export type ValidationRuleResult = string | string[] | GenericError | GenericError[] | undefined | void;
|
|
23
23
|
/** An entity validation rule. */
|
|
24
|
-
type ValidationRule<T extends Entity> = (entity: T) => MaybePromise<ValidationRuleResult>;
|
|
24
|
+
export type ValidationRule<T extends Entity> = (entity: T) => MaybePromise<ValidationRuleResult>;
|
|
25
25
|
/** Internal metadata for an async/reactive validation rule. */
|
|
26
|
-
type ValidationRuleInternal<T extends Entity> = {
|
|
26
|
+
export type ValidationRuleInternal<T extends Entity> = {
|
|
27
27
|
name: string;
|
|
28
28
|
hint: ReactiveHint<T> | undefined;
|
|
29
29
|
fn: ValidationRule<T>;
|
|
30
30
|
};
|
|
31
31
|
/** A generic error which contains a message, and optional field/codes. */
|
|
32
|
-
type GenericError = {
|
|
32
|
+
export type GenericError = {
|
|
33
33
|
message: string;
|
|
34
34
|
field?: string;
|
|
35
35
|
code?: string;
|
|
36
36
|
};
|
|
37
37
|
/** Combines the GenericError with the `entity` that caused it. */
|
|
38
|
-
type ValidationError = {
|
|
38
|
+
export type ValidationError = {
|
|
39
39
|
entity: Entity;
|
|
40
40
|
} & GenericError;
|
|
41
|
-
type ValidationRuleOptsFn<T extends Entity> = (entity: T) => MaybePromise<boolean>;
|
|
42
|
-
type ValidationRuleOpts<T extends Entity> = {
|
|
41
|
+
export type ValidationRuleOptsFn<T extends Entity> = (entity: T) => MaybePromise<boolean>;
|
|
42
|
+
export type ValidationRuleOpts<T extends Entity> = {
|
|
43
43
|
unless?: ValidationRuleOptsFn<T>;
|
|
44
44
|
if?: ValidationRuleOptsFn<T>;
|
|
45
45
|
};
|
|
46
|
-
declare class ValidationErrors extends Error {
|
|
46
|
+
export declare class ValidationErrors extends Error {
|
|
47
47
|
errors: Array<GenericError | ValidationError>;
|
|
48
48
|
readonly toJSON: () => string;
|
|
49
49
|
constructor(errors: ValidationError[]);
|
|
@@ -66,7 +66,7 @@ type ColumnBackedFields<F> = { [K in keyof F as F[K] extends {
|
|
|
66
66
|
*
|
|
67
67
|
* This is added automatically by codegen to entities based on FK not-nulls.
|
|
68
68
|
*/
|
|
69
|
-
declare function newRequiredRule<T extends Entity>(key: keyof ColumnBackedFields<FieldsOf<T>> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
69
|
+
export declare function newRequiredRule<T extends Entity>(key: keyof ColumnBackedFields<FieldsOf<T>> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
70
70
|
/**
|
|
71
71
|
* Like `newRequiredRule`, but for `lazy` columns (i.e. codegen only wires this up for `lazy` fields).
|
|
72
72
|
*
|
|
@@ -74,27 +74,27 @@ declare function newRequiredRule<T extends Entity>(key: keyof ColumnBackedFields
|
|
|
74
74
|
* (or falsely fail) a value that was required when the row was last saved. It still fires on create and
|
|
75
75
|
* when the field is explicitly loaded-then-unset.
|
|
76
76
|
*/
|
|
77
|
-
declare function newRequiredLazyFieldRule<T extends Entity>(key: keyof FieldsOf<T> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
77
|
+
export declare function newRequiredLazyFieldRule<T extends Entity>(key: keyof FieldsOf<T> & string, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
78
78
|
/**
|
|
79
79
|
* Creates a validation rule that a field cannot be updated; it can only be set on creation.
|
|
80
80
|
*
|
|
81
81
|
* If the optional `unless` function returns true, then the update is allowed.
|
|
82
82
|
*/
|
|
83
|
-
declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): CannotBeUpdatedRule<T>;
|
|
84
|
-
declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, unless?: ValidationRuleOptsFn<T>): CannotBeUpdatedRule<T>;
|
|
83
|
+
export declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): CannotBeUpdatedRule<T>;
|
|
84
|
+
export declare function cannotBeUpdated<T extends Entity, K extends keyof Changes<T> & string>(field: K, unless?: ValidationRuleOptsFn<T>): CannotBeUpdatedRule<T>;
|
|
85
85
|
/**
|
|
86
86
|
* Creates a validation rule that a field cannot be changed once set.
|
|
87
87
|
*
|
|
88
88
|
* If the optional `unless` function returns true, then the update is allowed.
|
|
89
89
|
*/
|
|
90
|
-
declare function cannotBeChanged<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
90
|
+
export declare function cannotBeChanged<T extends Entity, K extends keyof Changes<T> & string>(field: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
91
91
|
type CannotBeUpdatedRule<T extends Entity> = ValidationRule<T> & {
|
|
92
92
|
field: string;
|
|
93
93
|
immutable: boolean;
|
|
94
94
|
};
|
|
95
|
-
declare function isCannotBeUpdatedRule(rule: Function): rule is CannotBeUpdatedRule<any>;
|
|
95
|
+
export declare function isCannotBeUpdatedRule(rule: Function): rule is CannotBeUpdatedRule<any>;
|
|
96
96
|
/** For STI, enforces subtype-specific relations/FKs at runtime. */
|
|
97
|
-
declare function mustBeSubType<T extends Entity, K extends keyof Changes<T> & string>(relationName: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
97
|
+
export declare function mustBeSubType<T extends Entity, K extends keyof Changes<T> & string>(relationName: K, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
98
98
|
/**
|
|
99
99
|
* Creates a validation rule that a field value cannot be smaller than a
|
|
100
100
|
* certain value.
|
|
@@ -109,7 +109,7 @@ declare function mustBeSubType<T extends Entity, K extends keyof Changes<T> & st
|
|
|
109
109
|
* // Age cannot be smaller than 0
|
|
110
110
|
* config.addRule(minValueRule("age", 0));
|
|
111
111
|
*/
|
|
112
|
-
declare function minValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
112
|
+
export declare function minValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
113
113
|
/**
|
|
114
114
|
* Creates a validation rule that a field value cannot be greater than a
|
|
115
115
|
* certain value.
|
|
@@ -124,7 +124,7 @@ declare function minValueRule<T extends Entity, K extends keyof T & string>(fiel
|
|
|
124
124
|
* // Age cannot be greater than 150
|
|
125
125
|
* config.addRule(maxValueRule("age", 150));
|
|
126
126
|
*/
|
|
127
|
-
declare function maxValueRule<T extends Entity, K extends keyof T & string>(field: K, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
127
|
+
export declare function maxValueRule<T extends Entity, K extends keyof T & string>(field: K, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
128
128
|
/**
|
|
129
129
|
* Creates a validation rule that a field value must be within a range of
|
|
130
130
|
* certain values
|
|
@@ -139,7 +139,7 @@ declare function maxValueRule<T extends Entity, K extends keyof T & string>(fiel
|
|
|
139
139
|
* // Age must be between 0 and 150
|
|
140
140
|
* config.addRule(rangeValueRule("age", 0, 150));
|
|
141
141
|
*/
|
|
142
|
-
declare function rangeValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
142
|
+
export declare function rangeValueRule<T extends Entity, K extends keyof T & string>(field: K, minValue: number, maxValue: number, opts?: ValidationRuleOpts<T>): ValidationRule<T>;
|
|
143
143
|
//#endregion
|
|
144
|
-
export {
|
|
144
|
+
export {};
|
|
145
145
|
//# sourceMappingURL=rules.d.mts.map
|
package/build/rules.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.mts","names":[],"sources":["../src/rules.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"rules.d.mts","names":[],"sources":["../src/rules.ts"],"mappings":";;;;;;oBASY;EACV;EACA;EACA;EACA;EACA;EACA;;;;;;;;;YAUU,2CAA2C,eAAe;;YAG1D,eAAe,UAAU,WAAW,QAAQ,MAAM,aAAa;;YAG/D,uBAAuB,UAAU;EAC3C;EACA,MAAM,aAAa;EACnB,IAAI,eAAe;;;YAIT;EAAiB;EAAiB;EAAgB;;;YAGlD;EAAoB,QAAQ;IAAW;YAEvC,qBAAqB,UAAU,WAAW,QAAQ,MAAM;YACxD,mBAAmB,UAAU;EACvC,SAAS,qBAAqB;EAC9B,KAAK,qBAAqB;;qBAcf,yBAAyB;EAC7B,QAAQ,MAAM,eAAe;WACpB;EAChB,YAAY,QAAQ;EACpB,YAAY;;;;;;;;;;;KAsCT,mBAAmB,QACrB,WAAW,KAAK,EAAE;EAAa;IAAgD,YAAY,EAAE;;;;;;wBAQhF,gBAAgB,UAAU,QACxC,WAAW,mBAAmB,SAAS,cACvC,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;wBAwBF,yBAAyB,UAAU,QACjD,WAAW,SAAS,aACpB,OAAM,mBAAmB,KACxB,eAAe;;;;;;wBAcF,gBAAgB,UAAU,QAAQ,gBAAgB,QAAQ,aACxE,OAAO,GACP,OAAO,mBAAmB,KACzB,oBAAoB;wBACP,gBAAgB,UAAU,QAAQ,gBAAgB,QAAQ,aACxE,OAAO,GACP,SAAS,qBAAqB,KAC7B,oBAAoB;;;;;;wBAyBP,gBAAgB,UAAU,QAAQ,gBAAgB,QAAQ,aACxE,OAAO,GACP,OAAO,mBAAmB,KACzB,eAAe;KAgBb,oBAAoB,UAAU,UAAU,eAAe;EAAO;EAAe;;wBAElE,sBAAsB,MAAM,WAAW,QAAQ;;wBAK/C,cAAc,UAAU,QAAQ,gBAAgB,QAAQ,aACtE,cAAc,GACd,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;;;;;;;;wBAyBF,aAAa,UAAU,QAAQ,gBAAgB,YAC7D,OAAO,GACP,kBACA,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;;;;;;;;wBAmCF,aAAa,UAAU,QAAQ,gBAAgB,YAC7D,OAAO,GACP,kBACA,OAAM,mBAAmB,KACxB,eAAe;;;;;;;;;;;;;;;wBAmCF,eAAe,UAAU,QAAQ,gBAAgB,YAC/D,OAAO,GACP,kBACA,kBACA,OAAM,mBAAmB,KACxB,eAAe"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/runtimeConfig.d.ts
|
|
2
|
-
declare function getRuntimeConfig(): RuntimeConfig;
|
|
2
|
+
export declare function getRuntimeConfig(): RuntimeConfig;
|
|
3
3
|
/** Returns the runtime config if generated metadata has initialized it. */
|
|
4
|
-
declare function maybeGetRuntimeConfig(): RuntimeConfig | undefined;
|
|
4
|
+
export declare function maybeGetRuntimeConfig(): RuntimeConfig | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* Holds any `joist-config.json` values that we want to access at runtime.
|
|
7
7
|
*/
|
|
8
|
-
type RuntimeConfig = {
|
|
8
|
+
export type RuntimeConfig = {
|
|
9
9
|
/** The process-wide tagged-id separator; explicit `undefined` means no separator, while omission defaults to `:`. */
|
|
10
10
|
tagDelimiter?: string | undefined;
|
|
11
11
|
temporal: false | {
|
|
@@ -18,7 +18,6 @@ type RuntimeConfig = {
|
|
|
18
18
|
*
|
|
19
19
|
* This avoids having to load/parse/ship the `joist-config.json` file at runtime.
|
|
20
20
|
*/
|
|
21
|
-
declare function setRuntimeConfig(config: RuntimeConfig): void;
|
|
21
|
+
export declare function setRuntimeConfig(config: RuntimeConfig): void;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { RuntimeConfig, getRuntimeConfig, maybeGetRuntimeConfig, setRuntimeConfig };
|
|
24
23
|
//# sourceMappingURL=runtimeConfig.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeConfig.d.cts","names":[],"sources":["../src/runtimeConfig.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"runtimeConfig.d.cts","names":[],"sources":["../src/runtimeConfig.ts"],"mappings":";wBAIgB,oBAAoB;;wBAKpB,yBAAyB;;;;YAO7B;;EAEV;EACA;;IAIM;;;;;;;;wBASQ,iBAAiB,QAAQ"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/runtimeConfig.d.ts
|
|
2
|
-
declare function getRuntimeConfig(): RuntimeConfig;
|
|
2
|
+
export declare function getRuntimeConfig(): RuntimeConfig;
|
|
3
3
|
/** Returns the runtime config if generated metadata has initialized it. */
|
|
4
|
-
declare function maybeGetRuntimeConfig(): RuntimeConfig | undefined;
|
|
4
|
+
export declare function maybeGetRuntimeConfig(): RuntimeConfig | undefined;
|
|
5
5
|
/**
|
|
6
6
|
* Holds any `joist-config.json` values that we want to access at runtime.
|
|
7
7
|
*/
|
|
8
|
-
type RuntimeConfig = {
|
|
8
|
+
export type RuntimeConfig = {
|
|
9
9
|
/** The process-wide tagged-id separator; explicit `undefined` means no separator, while omission defaults to `:`. */
|
|
10
10
|
tagDelimiter?: string | undefined;
|
|
11
11
|
temporal: false | {
|
|
@@ -18,7 +18,6 @@ type RuntimeConfig = {
|
|
|
18
18
|
*
|
|
19
19
|
* This avoids having to load/parse/ship the `joist-config.json` file at runtime.
|
|
20
20
|
*/
|
|
21
|
-
declare function setRuntimeConfig(config: RuntimeConfig): void;
|
|
21
|
+
export declare function setRuntimeConfig(config: RuntimeConfig): void;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { RuntimeConfig, getRuntimeConfig, maybeGetRuntimeConfig, setRuntimeConfig };
|
|
24
23
|
//# sourceMappingURL=runtimeConfig.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeConfig.d.mts","names":[],"sources":["../src/runtimeConfig.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"runtimeConfig.d.mts","names":[],"sources":["../src/runtimeConfig.ts"],"mappings":";wBAIgB,oBAAoB;;wBAKpB,yBAAyB;;;;YAO7B;;EAEV;EACA;;IAIM;;;;;;;;wBASQ,iBAAiB,QAAQ"}
|
|
@@ -18,7 +18,7 @@ import { EntityMetadata } from "../EntityMetadata.cjs";
|
|
|
18
18
|
* their element domain separately so they cannot select a polymorphic IN component. Raw `sql<R>`
|
|
19
19
|
* annotations supply no runtime evidence. This descriptor does not implement conversions.
|
|
20
20
|
*/
|
|
21
|
-
interface TypeInfo {
|
|
21
|
+
export interface TypeInfo {
|
|
22
22
|
dbType: string;
|
|
23
23
|
domain: unknown;
|
|
24
24
|
idMeta?: EntityMetadata;
|
|
@@ -42,7 +42,7 @@ interface TypeInfo {
|
|
|
42
42
|
* also impose constraints that text does not. Unknown names remain unchanged, including their schema
|
|
43
43
|
* and quoting; neither coercibility nor a shared base type proves that their outputs are compatible.
|
|
44
44
|
*/
|
|
45
|
-
declare function canonicalDbType(dbType: string): string;
|
|
45
|
+
export declare function canonicalDbType(dbType: string): string;
|
|
46
46
|
/**
|
|
47
47
|
* Describes elementwise conversion only for known physical array parsers and stable domain conversion.
|
|
48
48
|
*
|
|
@@ -51,7 +51,6 @@ declare function canonicalDbType(dbType: string): string;
|
|
|
51
51
|
* Native enum/citext, date/time, and nested SQL arrays remain unknown. Numeric elements can be numbers
|
|
52
52
|
* in classic pg and strings in lazy binary reads, so a scalar string-only mapper is not sufficient.
|
|
53
53
|
*/
|
|
54
|
-
declare function arrayOutputType(outputType: TypeInfo | undefined): TypeInfo | undefined;
|
|
54
|
+
export declare function arrayOutputType(outputType: TypeInfo | undefined): TypeInfo | undefined;
|
|
55
55
|
//#endregion
|
|
56
|
-
export { TypeInfo, arrayOutputType, canonicalDbType };
|
|
57
56
|
//# sourceMappingURL=TypeInfo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeInfo.d.cts","names":[],"sources":["../../src/serde/TypeInfo.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TypeInfo.d.cts","names":[],"sources":["../../src/serde/TypeInfo.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAqBiB;EACf;EACA;EACA,SAAS;;EAET;;;;;;;;;;;;;;;;;;;wBAoBc,gBAAgB;;;;;;;;;wBA+DhB,gBAAgB,YAAY,uBAAuB"}
|
|
@@ -18,7 +18,7 @@ import { EntityMetadata } from "../EntityMetadata.mjs";
|
|
|
18
18
|
* their element domain separately so they cannot select a polymorphic IN component. Raw `sql<R>`
|
|
19
19
|
* annotations supply no runtime evidence. This descriptor does not implement conversions.
|
|
20
20
|
*/
|
|
21
|
-
interface TypeInfo {
|
|
21
|
+
export interface TypeInfo {
|
|
22
22
|
dbType: string;
|
|
23
23
|
domain: unknown;
|
|
24
24
|
idMeta?: EntityMetadata;
|
|
@@ -42,7 +42,7 @@ interface TypeInfo {
|
|
|
42
42
|
* also impose constraints that text does not. Unknown names remain unchanged, including their schema
|
|
43
43
|
* and quoting; neither coercibility nor a shared base type proves that their outputs are compatible.
|
|
44
44
|
*/
|
|
45
|
-
declare function canonicalDbType(dbType: string): string;
|
|
45
|
+
export declare function canonicalDbType(dbType: string): string;
|
|
46
46
|
/**
|
|
47
47
|
* Describes elementwise conversion only for known physical array parsers and stable domain conversion.
|
|
48
48
|
*
|
|
@@ -51,7 +51,6 @@ declare function canonicalDbType(dbType: string): string;
|
|
|
51
51
|
* Native enum/citext, date/time, and nested SQL arrays remain unknown. Numeric elements can be numbers
|
|
52
52
|
* in classic pg and strings in lazy binary reads, so a scalar string-only mapper is not sufficient.
|
|
53
53
|
*/
|
|
54
|
-
declare function arrayOutputType(outputType: TypeInfo | undefined): TypeInfo | undefined;
|
|
54
|
+
export declare function arrayOutputType(outputType: TypeInfo | undefined): TypeInfo | undefined;
|
|
55
55
|
//#endregion
|
|
56
|
-
export { TypeInfo, arrayOutputType, canonicalDbType };
|
|
57
56
|
//# sourceMappingURL=TypeInfo.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeInfo.d.mts","names":[],"sources":["../../src/serde/TypeInfo.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TypeInfo.d.mts","names":[],"sources":["../../src/serde/TypeInfo.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAqBiB;EACf;EACA;EACA,SAAS;;EAET;;;;;;;;;;;;;;;;;;;wBAoBc,gBAAgB;;;;;;;;;wBA+DhB,gBAAgB,YAAY,uBAAuB"}
|
|
@@ -3,7 +3,7 @@ import { ScalarCodec } from "./serde.cjs";
|
|
|
3
3
|
import { EntityMetadata } from "../EntityMetadata.cjs";
|
|
4
4
|
//#region src/serde/columns.d.ts
|
|
5
5
|
/** A physical column owns one scalar codec, shared with every field binding for that column. */
|
|
6
|
-
declare class Column {
|
|
6
|
+
export declare class Column {
|
|
7
7
|
readonly columnName: string;
|
|
8
8
|
readonly sqlNullable: boolean;
|
|
9
9
|
readonly hasDefault: boolean;
|
|
@@ -32,7 +32,6 @@ declare class Column {
|
|
|
32
32
|
mapFromDb(value: unknown): unknown;
|
|
33
33
|
mapFromJsonAgg(value: any): any;
|
|
34
34
|
}
|
|
35
|
-
type ColumnDescriptors = Record<string, Column>;
|
|
35
|
+
export type ColumnDescriptors = Record<string, Column>;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { Column, ColumnDescriptors };
|
|
38
37
|
//# sourceMappingURL=columns.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns.d.cts","names":[],"sources":["../../src/serde/columns.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"columns.d.cts","names":[],"sources":["../../src/serde/columns.ts"],"mappings":";;;;;qBAMa;WAKA;WACA;WACA;WACA;;WAEA;;WAEA;WACA,mBAAmB;WACnB,OAAO;WAbT;WACA;;EAET,YACW,oBACA,sBACA,qBACA;;EAEA;;EAEA,mBACA,mBAAmB,6BACnB,OAAO;MAYd;MAGA;MAGA;;MAKA,cAAc;EASlB,QAAQ;EAGR,aAAa;EAGb,UAAU;EAGV,eAAe;;YAKL,oBAAoB,eAAe"}
|
|
@@ -3,7 +3,7 @@ import { ScalarCodec } from "./serde.mjs";
|
|
|
3
3
|
import { EntityMetadata } from "../EntityMetadata.mjs";
|
|
4
4
|
//#region src/serde/columns.d.ts
|
|
5
5
|
/** A physical column owns one scalar codec, shared with every field binding for that column. */
|
|
6
|
-
declare class Column {
|
|
6
|
+
export declare class Column {
|
|
7
7
|
readonly columnName: string;
|
|
8
8
|
readonly sqlNullable: boolean;
|
|
9
9
|
readonly hasDefault: boolean;
|
|
@@ -32,7 +32,6 @@ declare class Column {
|
|
|
32
32
|
mapFromDb(value: unknown): unknown;
|
|
33
33
|
mapFromJsonAgg(value: any): any;
|
|
34
34
|
}
|
|
35
|
-
type ColumnDescriptors = Record<string, Column>;
|
|
35
|
+
export type ColumnDescriptors = Record<string, Column>;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { Column, ColumnDescriptors };
|
|
38
37
|
//# sourceMappingURL=columns.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns.d.mts","names":[],"sources":["../../src/serde/columns.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"columns.d.mts","names":[],"sources":["../../src/serde/columns.ts"],"mappings":";;;;;qBAMa;WAKA;WACA;WACA;WACA;;WAEA;;WAEA;WACA,mBAAmB;WACnB,OAAO;WAbT;WACA;;EAET,YACW,oBACA,sBACA,qBACA;;EAEA;;EAEA,mBACA,mBAAmB,6BACnB,OAAO;MAYd;MAGA;MAGA;;MAKA,cAAc;EASlB,QAAQ;EAGR,aAAa;EAGb,UAAU;EAGV,eAAe;;YAKL,oBAAoB,eAAe"}
|
|
@@ -6,19 +6,19 @@ import { RowData } from "../RowData.cjs";
|
|
|
6
6
|
import { EntityMetadata, Field, PolymorphicField, PolymorphicFieldComponent, SerdeField } from "../EntityMetadata.cjs";
|
|
7
7
|
import { Entity } from "../Entity.cjs";
|
|
8
8
|
//#region src/serde/fieldSerde.d.ts
|
|
9
|
-
declare function hasSerde(field: Field): field is SerdeField;
|
|
9
|
+
export declare function hasSerde(field: Field): field is SerdeField;
|
|
10
10
|
/** Entity hydration and flush bindings; a polymorphic relationship spans several physical columns. */
|
|
11
|
-
interface FieldSerde {
|
|
11
|
+
export interface FieldSerde {
|
|
12
12
|
columns: FieldColumn[];
|
|
13
13
|
/** Decode one domain value from accessed cells; callers own entity assignment and caching. */
|
|
14
14
|
fromRow(rowData: RowData, rowIndex: number): unknown;
|
|
15
15
|
}
|
|
16
|
-
interface TimestampSerde<T> extends FieldSerde {
|
|
16
|
+
export interface TimestampSerde<T> extends FieldSerde {
|
|
17
17
|
mapFromNow(now: Date): T;
|
|
18
18
|
dbValue(data: any): any;
|
|
19
19
|
}
|
|
20
20
|
/** Binds a physical column to entity data without adding a second codec or storage declaration. */
|
|
21
|
-
declare class FieldColumn {
|
|
21
|
+
export declare class FieldColumn {
|
|
22
22
|
readonly fieldName: string;
|
|
23
23
|
readonly column: Column;
|
|
24
24
|
constructor(fieldName: string, column: Column);
|
|
@@ -46,14 +46,14 @@ declare class FieldColumn {
|
|
|
46
46
|
rowValue(data: any): any;
|
|
47
47
|
}
|
|
48
48
|
/** Binds one entity field to its physical column. */
|
|
49
|
-
declare class SimpleFieldSerde extends FieldColumn implements FieldSerde {
|
|
49
|
+
export declare class SimpleFieldSerde extends FieldColumn implements FieldSerde {
|
|
50
50
|
readonly columns: FieldColumn[];
|
|
51
51
|
/** Decode this field's physical column without changing entity data. */
|
|
52
52
|
fromRow(rowData: RowData, rowIndex: number): unknown;
|
|
53
53
|
mapFromNow(now: Date): unknown;
|
|
54
54
|
}
|
|
55
55
|
/** A polymorphic field selects exactly one component while each physical column retains a scalar ID codec. */
|
|
56
|
-
declare class PolymorphicKeySerde implements FieldSerde {
|
|
56
|
+
export declare class PolymorphicKeySerde implements FieldSerde {
|
|
57
57
|
readonly fieldName: string;
|
|
58
58
|
readonly columns: PolymorphicFieldColumn[];
|
|
59
59
|
constructor(fieldName: string, components: PolymorphicFieldComponent[]);
|
|
@@ -61,9 +61,9 @@ declare class PolymorphicKeySerde implements FieldSerde {
|
|
|
61
61
|
fromRow(rowData: RowData, rowIndex: number): unknown;
|
|
62
62
|
}
|
|
63
63
|
/** Shares domain components between relationship traversal and entity write selection. */
|
|
64
|
-
declare function polymorphicField(fieldName: string, required: boolean, components: PolymorphicFieldComponent[]): PolymorphicField;
|
|
64
|
+
export declare function polymorphicField(fieldName: string, required: boolean, components: PolymorphicFieldComponent[]): PolymorphicField;
|
|
65
65
|
/** A domain relationship component references storage and only overrides a specialized domain target. */
|
|
66
|
-
declare class PolyComponent implements PolymorphicFieldComponent {
|
|
66
|
+
export declare class PolyComponent implements PolymorphicFieldComponent {
|
|
67
67
|
readonly column: Column;
|
|
68
68
|
readonly otherFieldName: string;
|
|
69
69
|
private readonly target?;
|
|
@@ -83,5 +83,5 @@ declare class PolymorphicFieldColumn extends FieldColumn {
|
|
|
83
83
|
rowValue(data: any): any;
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
|
-
export {
|
|
86
|
+
export {};
|
|
87
87
|
//# sourceMappingURL=fieldSerde.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldSerde.d.cts","names":[],"sources":["../../src/serde/fieldSerde.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"fieldSerde.d.cts","names":["_$src_serde_serde_ts0.ScalarCodec","_$__TypeInfo_ts0.TypeInfo"],"sources":["../../src/serde/fieldSerde.ts"],"mappings":";;;;;;;;wBAkBgB,SAAS,OAAO,QAAQ,SAAS;;iBAKhC;EACf,SAAS;;EAET,QAAQ,SAAS,SAAS;;iBAGX,eAAe,WAAW;EACzC,WAAW,KAAK,OAAO;EACvB,QAAQ;;;qBAIG;WAEA;WACA,QAAQ;EAFnB,YACW,mBACA,QAAQ;MAEf,SAFeA;MAKf;MAGA;MAGA;MAGA;MAGA,qBAAU;MAGV;MAGA;MAGA;MAGA;MAGA;MAGA;MAGA;MAGA,cAxBUC;EA2Bd,QAAQ;EAGR,aAAa;EAGb,UAAU;EAGV,eAAe;;EAKf,QAAQ,WAAW,QAAQ,QAAQ,mBAAmB,QAAQ;;EAkB9D,SAAS;;;qBAME,yBAAyB,uBAAuB;WAClD,SAAS;;EAElB,QAAQ,SAAS,SAAS;EAG1B,WAAW,KAAK;;;qBAML,+BAA+B;WAG/B;WAFF,SAAS;EAClB,YACW,mBACT,YAAY;;EAKd,QAAQ,SAAS,SAAS;;;wBAcZ,iBACd,mBACA,mBACA,YAAY,8BACX;;qBAaU,yBAAyB;WAEzB,QAAQ;WACR;mBACQ;EAHnB,YACW,QAAQ,QACR,wBACQ,gBAAe;MAE9B;MAGA,uBAAuB;;;cAMvB,+BAA+B;mBAGhB;mBACA;EAHnB,YACE,mBACiB,WAAW,2BACX,YAAY;MAI3B,uBAAa;;EAKjB,aAAa;EAqBb,QAAQ;EAGR,SAAS"}
|
|
@@ -6,19 +6,19 @@ import { RowData } from "../RowData.mjs";
|
|
|
6
6
|
import { EntityMetadata, Field, PolymorphicField, PolymorphicFieldComponent, SerdeField } from "../EntityMetadata.mjs";
|
|
7
7
|
import { Entity } from "../Entity.mjs";
|
|
8
8
|
//#region src/serde/fieldSerde.d.ts
|
|
9
|
-
declare function hasSerde(field: Field): field is SerdeField;
|
|
9
|
+
export declare function hasSerde(field: Field): field is SerdeField;
|
|
10
10
|
/** Entity hydration and flush bindings; a polymorphic relationship spans several physical columns. */
|
|
11
|
-
interface FieldSerde {
|
|
11
|
+
export interface FieldSerde {
|
|
12
12
|
columns: FieldColumn[];
|
|
13
13
|
/** Decode one domain value from accessed cells; callers own entity assignment and caching. */
|
|
14
14
|
fromRow(rowData: RowData, rowIndex: number): unknown;
|
|
15
15
|
}
|
|
16
|
-
interface TimestampSerde<T> extends FieldSerde {
|
|
16
|
+
export interface TimestampSerde<T> extends FieldSerde {
|
|
17
17
|
mapFromNow(now: Date): T;
|
|
18
18
|
dbValue(data: any): any;
|
|
19
19
|
}
|
|
20
20
|
/** Binds a physical column to entity data without adding a second codec or storage declaration. */
|
|
21
|
-
declare class FieldColumn {
|
|
21
|
+
export declare class FieldColumn {
|
|
22
22
|
readonly fieldName: string;
|
|
23
23
|
readonly column: Column;
|
|
24
24
|
constructor(fieldName: string, column: Column);
|
|
@@ -46,14 +46,14 @@ declare class FieldColumn {
|
|
|
46
46
|
rowValue(data: any): any;
|
|
47
47
|
}
|
|
48
48
|
/** Binds one entity field to its physical column. */
|
|
49
|
-
declare class SimpleFieldSerde extends FieldColumn implements FieldSerde {
|
|
49
|
+
export declare class SimpleFieldSerde extends FieldColumn implements FieldSerde {
|
|
50
50
|
readonly columns: FieldColumn[];
|
|
51
51
|
/** Decode this field's physical column without changing entity data. */
|
|
52
52
|
fromRow(rowData: RowData, rowIndex: number): unknown;
|
|
53
53
|
mapFromNow(now: Date): unknown;
|
|
54
54
|
}
|
|
55
55
|
/** A polymorphic field selects exactly one component while each physical column retains a scalar ID codec. */
|
|
56
|
-
declare class PolymorphicKeySerde implements FieldSerde {
|
|
56
|
+
export declare class PolymorphicKeySerde implements FieldSerde {
|
|
57
57
|
readonly fieldName: string;
|
|
58
58
|
readonly columns: PolymorphicFieldColumn[];
|
|
59
59
|
constructor(fieldName: string, components: PolymorphicFieldComponent[]);
|
|
@@ -61,9 +61,9 @@ declare class PolymorphicKeySerde implements FieldSerde {
|
|
|
61
61
|
fromRow(rowData: RowData, rowIndex: number): unknown;
|
|
62
62
|
}
|
|
63
63
|
/** Shares domain components between relationship traversal and entity write selection. */
|
|
64
|
-
declare function polymorphicField(fieldName: string, required: boolean, components: PolymorphicFieldComponent[]): PolymorphicField;
|
|
64
|
+
export declare function polymorphicField(fieldName: string, required: boolean, components: PolymorphicFieldComponent[]): PolymorphicField;
|
|
65
65
|
/** A domain relationship component references storage and only overrides a specialized domain target. */
|
|
66
|
-
declare class PolyComponent implements PolymorphicFieldComponent {
|
|
66
|
+
export declare class PolyComponent implements PolymorphicFieldComponent {
|
|
67
67
|
readonly column: Column;
|
|
68
68
|
readonly otherFieldName: string;
|
|
69
69
|
private readonly target?;
|
|
@@ -83,5 +83,5 @@ declare class PolymorphicFieldColumn extends FieldColumn {
|
|
|
83
83
|
rowValue(data: any): any;
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
|
-
export {
|
|
86
|
+
export {};
|
|
87
87
|
//# sourceMappingURL=fieldSerde.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldSerde.d.mts","names":[],"sources":["../../src/serde/fieldSerde.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"fieldSerde.d.mts","names":["_$src_serde_serde_ts0.ScalarCodec","_$__TypeInfo_ts0.TypeInfo"],"sources":["../../src/serde/fieldSerde.ts"],"mappings":";;;;;;;;wBAkBgB,SAAS,OAAO,QAAQ,SAAS;;iBAKhC;EACf,SAAS;;EAET,QAAQ,SAAS,SAAS;;iBAGX,eAAe,WAAW;EACzC,WAAW,KAAK,OAAO;EACvB,QAAQ;;;qBAIG;WAEA;WACA,QAAQ;EAFnB,YACW,mBACA,QAAQ;MAEf,SAFeA;MAKf;MAGA;MAGA;MAGA;MAGA,qBAAU;MAGV;MAGA;MAGA;MAGA;MAGA;MAGA;MAGA;MAGA,cAxBUC;EA2Bd,QAAQ;EAGR,aAAa;EAGb,UAAU;EAGV,eAAe;;EAKf,QAAQ,WAAW,QAAQ,QAAQ,mBAAmB,QAAQ;;EAkB9D,SAAS;;;qBAME,yBAAyB,uBAAuB;WAClD,SAAS;;EAElB,QAAQ,SAAS,SAAS;EAG1B,WAAW,KAAK;;;qBAML,+BAA+B;WAG/B;WAFF,SAAS;EAClB,YACW,mBACT,YAAY;;EAKd,QAAQ,SAAS,SAAS;;;wBAcZ,iBACd,mBACA,mBACA,YAAY,8BACX;;qBAaU,yBAAyB;WAEzB,QAAQ;WACR;mBACQ;EAHnB,YACW,QAAQ,QACR,wBACQ,gBAAe;MAE9B;MAGA,uBAAuB;;;cAMvB,+BAA+B;mBAGhB;mBACA;EAHnB,YACE,mBACiB,WAAW,2BACX,YAAY;MAI3B,uBAAa;;EAKjB,aAAa;EAqBb,QAAQ;EAGR,SAAS"}
|