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/serde/serde.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { Temporal } from "./temporal.cjs";
|
|
|
2
2
|
import { TypeInfo } from "./TypeInfo.cjs";
|
|
3
3
|
//#region src/serde/serde.d.ts
|
|
4
4
|
/** Scalar conversion only: no field names, entity hydration, or FK fixups. */
|
|
5
|
-
interface ScalarCodec {
|
|
5
|
+
export interface ScalarCodec {
|
|
6
6
|
dbType: string;
|
|
7
7
|
isArray: boolean;
|
|
8
8
|
/** Compatibility evidence for scalar conversion, absent for unknown codecs. */
|
|
@@ -30,7 +30,7 @@ interface ScalarCodec {
|
|
|
30
30
|
mapToRow(value: any): any;
|
|
31
31
|
}
|
|
32
32
|
/** Converts the ORM clock to the timestamp's domain representation. */
|
|
33
|
-
interface TimestampCodec<T> extends ScalarCodec {
|
|
33
|
+
export interface TimestampCodec<T> extends ScalarCodec {
|
|
34
34
|
mapFromNow(now: Date): T;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -39,11 +39,11 @@ interface TimestampCodec<T> extends ScalarCodec {
|
|
|
39
39
|
* Joist's internal `FieldSerde` API is admittedly a little crufty, and so this
|
|
40
40
|
* API is intended to be a simpler, more user-friendly way to define custom types.
|
|
41
41
|
*/
|
|
42
|
-
interface CustomSerde<DomainType, DbType> {
|
|
42
|
+
export interface CustomSerde<DomainType, DbType> {
|
|
43
43
|
toDb(value: DomainType): DbType;
|
|
44
44
|
fromDb(value: DbType): DomainType;
|
|
45
45
|
}
|
|
46
|
-
declare class CustomSerdeAdapter implements ScalarCodec {
|
|
46
|
+
export declare class CustomSerdeAdapter implements ScalarCodec {
|
|
47
47
|
dbType: string;
|
|
48
48
|
private mapper;
|
|
49
49
|
isArray: boolean;
|
|
@@ -65,7 +65,7 @@ declare class CustomSerdeAdapter implements ScalarCodec {
|
|
|
65
65
|
* `string[]`s can be mapped 1:1. See `CustomSerdeAdapter` a good base class
|
|
66
66
|
* that will handle converting individual elements.
|
|
67
67
|
*/
|
|
68
|
-
declare class PrimitiveSerde implements ScalarCodec {
|
|
68
|
+
export declare class PrimitiveSerde implements ScalarCodec {
|
|
69
69
|
dbType: string;
|
|
70
70
|
isArray: boolean;
|
|
71
71
|
constructor(dbType: string, isArray?: boolean);
|
|
@@ -79,7 +79,7 @@ declare class PrimitiveSerde implements ScalarCodec {
|
|
|
79
79
|
mapFromDb(value: unknown): unknown;
|
|
80
80
|
mapFromJsonAgg(value: any): any;
|
|
81
81
|
}
|
|
82
|
-
declare class DateSerde extends PrimitiveSerde implements TimestampCodec<Date> {
|
|
82
|
+
export declare class DateSerde extends PrimitiveSerde implements TimestampCodec<Date> {
|
|
83
83
|
/** Date bindings use ISO strings; mapToDb does not support physical Date arrays. */
|
|
84
84
|
get outputType(): TypeInfo | undefined;
|
|
85
85
|
/** Accept the caller's date as-is. */
|
|
@@ -96,24 +96,24 @@ declare class DateSerde extends PrimitiveSerde implements TimestampCodec<Date> {
|
|
|
96
96
|
mapToDb(value: Date): string;
|
|
97
97
|
}
|
|
98
98
|
/** Converts `DATE`s `Temporal.PlainDate`s. */
|
|
99
|
-
declare class PlainDateSerde extends CustomSerdeAdapter {
|
|
99
|
+
export declare class PlainDateSerde extends CustomSerdeAdapter {
|
|
100
100
|
constructor(dbType: string, isArray?: boolean);
|
|
101
101
|
}
|
|
102
102
|
/** Converts `TIME`s to `Temporal.PlainTime`s. */
|
|
103
|
-
declare class PlainTimeSerde extends CustomSerdeAdapter {
|
|
103
|
+
export declare class PlainTimeSerde extends CustomSerdeAdapter {
|
|
104
104
|
constructor(dbType: string, isArray?: boolean);
|
|
105
105
|
}
|
|
106
106
|
/** Converts `TIMESTAMP`s to `Temporal.PlainDateTime`s. */
|
|
107
|
-
declare class PlainDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.PlainDateTime> {
|
|
107
|
+
export declare class PlainDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.PlainDateTime> {
|
|
108
108
|
constructor(dbType: string, isArray?: boolean);
|
|
109
109
|
mapFromNow(now: Date): Temporal.PlainDateTime;
|
|
110
110
|
}
|
|
111
111
|
/** Converts `TIMESTAMP WITH TIME ZONE`s to `Temporal.ZonedDateTime`s. */
|
|
112
|
-
declare class ZonedDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.ZonedDateTime> {
|
|
112
|
+
export declare class ZonedDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.ZonedDateTime> {
|
|
113
113
|
constructor(dbType: string, isArray?: boolean);
|
|
114
114
|
mapFromNow(now: Date): Temporal.ZonedDateTime;
|
|
115
115
|
}
|
|
116
|
-
declare class BigIntSerde implements ScalarCodec {
|
|
116
|
+
export declare class BigIntSerde implements ScalarCodec {
|
|
117
117
|
isArray: boolean;
|
|
118
118
|
dbType: string;
|
|
119
119
|
constructor(isArray?: boolean);
|
|
@@ -136,7 +136,7 @@ declare class BigIntSerde implements ScalarCodec {
|
|
|
136
136
|
* Also note that knex/pg accept `number`s as input, so we only need
|
|
137
137
|
* to handle from-database -> to JS translation.
|
|
138
138
|
*/
|
|
139
|
-
declare class DecimalToNumberSerde implements ScalarCodec {
|
|
139
|
+
export declare class DecimalToNumberSerde implements ScalarCodec {
|
|
140
140
|
isArray: boolean;
|
|
141
141
|
dbType: string;
|
|
142
142
|
constructor(isArray?: boolean);
|
|
@@ -151,7 +151,7 @@ declare class DecimalToNumberSerde implements ScalarCodec {
|
|
|
151
151
|
mapFromJsonAgg(value: any): any;
|
|
152
152
|
}
|
|
153
153
|
/** Maps physical integer keys to logical string IDs "because GraphQL". */
|
|
154
|
-
declare class KeySerde implements ScalarCodec {
|
|
154
|
+
export declare class KeySerde implements ScalarCodec {
|
|
155
155
|
dbType: "bigint" | "int" | "uuid" | "text";
|
|
156
156
|
isArray: boolean;
|
|
157
157
|
private meta;
|
|
@@ -166,7 +166,7 @@ declare class KeySerde implements ScalarCodec {
|
|
|
166
166
|
mapFromDb(value: unknown): string | undefined;
|
|
167
167
|
mapFromJsonAgg(value: any): any;
|
|
168
168
|
}
|
|
169
|
-
declare class EnumFieldSerde implements ScalarCodec {
|
|
169
|
+
export declare class EnumFieldSerde implements ScalarCodec {
|
|
170
170
|
dbType: "int" | "uuid";
|
|
171
171
|
private enumObject;
|
|
172
172
|
isArray: boolean;
|
|
@@ -181,7 +181,7 @@ declare class EnumFieldSerde implements ScalarCodec {
|
|
|
181
181
|
mapFromDb(value: unknown): unknown;
|
|
182
182
|
mapFromJsonAgg(value: any): any;
|
|
183
183
|
}
|
|
184
|
-
declare class EnumArrayFieldSerde implements ScalarCodec {
|
|
184
|
+
export declare class EnumArrayFieldSerde implements ScalarCodec {
|
|
185
185
|
dbType: "int[]" | "uuid[]";
|
|
186
186
|
private enumObject;
|
|
187
187
|
isArray: boolean;
|
|
@@ -197,7 +197,7 @@ declare class EnumArrayFieldSerde implements ScalarCodec {
|
|
|
197
197
|
mapFromJsonAgg(value: any): any;
|
|
198
198
|
}
|
|
199
199
|
/** Similar to SimpleSerde, but applies the superstruct `assert` function when reading values from the db. */
|
|
200
|
-
declare class SuperstructSerde implements ScalarCodec {
|
|
200
|
+
export declare class SuperstructSerde implements ScalarCodec {
|
|
201
201
|
private superstruct;
|
|
202
202
|
dbType: string;
|
|
203
203
|
isArray: boolean;
|
|
@@ -213,7 +213,7 @@ declare class SuperstructSerde implements ScalarCodec {
|
|
|
213
213
|
mapFromDb(value: unknown): unknown;
|
|
214
214
|
mapFromJsonAgg(value: any): any;
|
|
215
215
|
}
|
|
216
|
-
declare class JsonSerde implements ScalarCodec {
|
|
216
|
+
export declare class JsonSerde implements ScalarCodec {
|
|
217
217
|
dbType: string;
|
|
218
218
|
isArray: boolean;
|
|
219
219
|
constructor();
|
|
@@ -228,7 +228,7 @@ declare class JsonSerde implements ScalarCodec {
|
|
|
228
228
|
mapFromJsonAgg(value: any): any;
|
|
229
229
|
}
|
|
230
230
|
/** Similar to SimpleSerde, but applies the zod's `parse` function when reading values from the db. */
|
|
231
|
-
declare class ZodSerde implements ScalarCodec {
|
|
231
|
+
export declare class ZodSerde implements ScalarCodec {
|
|
232
232
|
private zodSchema;
|
|
233
233
|
dbType: string;
|
|
234
234
|
isArray: boolean;
|
|
@@ -244,5 +244,4 @@ declare class ZodSerde implements ScalarCodec {
|
|
|
244
244
|
mapFromJsonAgg(value: any): any;
|
|
245
245
|
}
|
|
246
246
|
//#endregion
|
|
247
|
-
export { BigIntSerde, CustomSerde, CustomSerdeAdapter, DateSerde, DecimalToNumberSerde, EnumArrayFieldSerde, EnumFieldSerde, JsonSerde, KeySerde, PlainDateSerde, PlainDateTimeSerde, PlainTimeSerde, PrimitiveSerde, ScalarCodec, SuperstructSerde, TimestampCodec, ZodSerde, ZonedDateTimeSerde };
|
|
248
247
|
//# sourceMappingURL=serde.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serde.d.cts","names":[],"sources":["../../src/serde/serde.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"serde.d.cts","names":[],"sources":["../../src/serde/serde.ts"],"mappings":";;;;iBAiBiB;EACf;EACA;;WAES,aAAa;;EAEtB,QAAQ;;;;;;;;EAQR,cAAc;;EAEd,UAAU;;;;;;;EAOV,eAAe;;EAEf,SAAS;;;iBAIM,eAAe,WAAW;EACzC,WAAW,KAAK,OAAO;;;;;;;;iBASR,YAAY,YAAY;EACvC,KAAK,OAAO,aAAa;EACzB,OAAO,OAAO,SAAS;;qBAGZ,8BAA8B;EAIhC;UACC;EAJV;EAEA,YACS,gBACC,QAAQ,uBAChB;;MAME,cAAc;;EAuBlB,aAAa;EAQb,SAAS;EAIT,QAAQ;;EASR,UAAU;EASV,eAAe;;;;;;;;;qBAkBJ,0BAA0B;EAE5B;EACA;EAFT,YACS,gBACA;;MAIL,cAAc;;EAclB,aAAa;EAIb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;qBAKJ,kBAAkB,0BAA0B,eAAe;;MAElE,cAAc;;EAOlB,WAAW,KAAK,OAAO;EAIvB,eAAe;;;;;;;;EAYf,SAAS;EAIT,QAAQ,OAAO;;;qBAOJ,uBAAuB;EAClC,YAAY,gBAAgB;;;qBAMjB,uBAAuB;EAClC,YAAY,gBAAgB;;;qBAMjB,2BAA2B,8BAA8B,eAAe,SAAS;EAC5F,YAAY,gBAAgB;EAI5B,WAAW,KAAK,OAAO,SAAS;;;qBAOrB,2BAA2B,8BAA8B,eAAe,SAAS;EAC5F,YAAY,gBAAgB;EAI5B,WAAW,KAAK,OAAO,SAAS;;qBAMrB,uBAAuB;EAGf;EAFnB;EAEA,YAAmB;;MAKf,cAAc;;EAOlB,aAAa;EAKb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EASV,eAAe;;;;;;;;;;;qBAcJ,gCAAgC;EAGxB;EAFnB;EAEA,YAAmB;;MAKf,cAAc;;EAOlB,aAAa;EAKb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EASV,eAAe;;;qBAMJ,oBAAoB;EAUtB;EATT;UAEQ;EAKR,YACE,iBACO;;MASL,cAAc;;EAOlB,aAAa;EASb,SAAS;EAKT,QAAQ;;EAQR,UAAU;EAIV,eAAe;;qBAKJ,0BAA0B;EAI5B;UACC;EAJV;EAEA,YACS,wBACC;;MAIN,cAAc;;EAOlB,aAAa;EAIb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;qBAKJ,+BAA+B;EAIjC;UACC;EAJV;EAEA,YACS,4BACC;;MAIN;;EAKJ,aAAa;EAIb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;;qBAMJ,4BAA4B;UAQnB;EAPpB;EACA;UAIQ;EAER,YAAoB;;MAGhB,cAAc;;EAOlB,aAAa;EAOb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAMV,eAAe;;qBAKJ,qBAAqB;EAChC;EACA;EAEA;;MAGI,cAAc;;EAOlB,aAAa;EAOb,SAAS;EAKT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;;qBAMJ,oBAAoB;UAIX;EAHpB;EACA;EAEA,YAAoB;;MAGhB,cAAc;;EAOlB,aAAa;EAOb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAKV,eAAe"}
|
package/build/serde/serde.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { Temporal } from "./temporal.mjs";
|
|
|
2
2
|
import { TypeInfo } from "./TypeInfo.mjs";
|
|
3
3
|
//#region src/serde/serde.d.ts
|
|
4
4
|
/** Scalar conversion only: no field names, entity hydration, or FK fixups. */
|
|
5
|
-
interface ScalarCodec {
|
|
5
|
+
export interface ScalarCodec {
|
|
6
6
|
dbType: string;
|
|
7
7
|
isArray: boolean;
|
|
8
8
|
/** Compatibility evidence for scalar conversion, absent for unknown codecs. */
|
|
@@ -30,7 +30,7 @@ interface ScalarCodec {
|
|
|
30
30
|
mapToRow(value: any): any;
|
|
31
31
|
}
|
|
32
32
|
/** Converts the ORM clock to the timestamp's domain representation. */
|
|
33
|
-
interface TimestampCodec<T> extends ScalarCodec {
|
|
33
|
+
export interface TimestampCodec<T> extends ScalarCodec {
|
|
34
34
|
mapFromNow(now: Date): T;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -39,11 +39,11 @@ interface TimestampCodec<T> extends ScalarCodec {
|
|
|
39
39
|
* Joist's internal `FieldSerde` API is admittedly a little crufty, and so this
|
|
40
40
|
* API is intended to be a simpler, more user-friendly way to define custom types.
|
|
41
41
|
*/
|
|
42
|
-
interface CustomSerde<DomainType, DbType> {
|
|
42
|
+
export interface CustomSerde<DomainType, DbType> {
|
|
43
43
|
toDb(value: DomainType): DbType;
|
|
44
44
|
fromDb(value: DbType): DomainType;
|
|
45
45
|
}
|
|
46
|
-
declare class CustomSerdeAdapter implements ScalarCodec {
|
|
46
|
+
export declare class CustomSerdeAdapter implements ScalarCodec {
|
|
47
47
|
dbType: string;
|
|
48
48
|
private mapper;
|
|
49
49
|
isArray: boolean;
|
|
@@ -65,7 +65,7 @@ declare class CustomSerdeAdapter implements ScalarCodec {
|
|
|
65
65
|
* `string[]`s can be mapped 1:1. See `CustomSerdeAdapter` a good base class
|
|
66
66
|
* that will handle converting individual elements.
|
|
67
67
|
*/
|
|
68
|
-
declare class PrimitiveSerde implements ScalarCodec {
|
|
68
|
+
export declare class PrimitiveSerde implements ScalarCodec {
|
|
69
69
|
dbType: string;
|
|
70
70
|
isArray: boolean;
|
|
71
71
|
constructor(dbType: string, isArray?: boolean);
|
|
@@ -79,7 +79,7 @@ declare class PrimitiveSerde implements ScalarCodec {
|
|
|
79
79
|
mapFromDb(value: unknown): unknown;
|
|
80
80
|
mapFromJsonAgg(value: any): any;
|
|
81
81
|
}
|
|
82
|
-
declare class DateSerde extends PrimitiveSerde implements TimestampCodec<Date> {
|
|
82
|
+
export declare class DateSerde extends PrimitiveSerde implements TimestampCodec<Date> {
|
|
83
83
|
/** Date bindings use ISO strings; mapToDb does not support physical Date arrays. */
|
|
84
84
|
get outputType(): TypeInfo | undefined;
|
|
85
85
|
/** Accept the caller's date as-is. */
|
|
@@ -96,24 +96,24 @@ declare class DateSerde extends PrimitiveSerde implements TimestampCodec<Date> {
|
|
|
96
96
|
mapToDb(value: Date): string;
|
|
97
97
|
}
|
|
98
98
|
/** Converts `DATE`s `Temporal.PlainDate`s. */
|
|
99
|
-
declare class PlainDateSerde extends CustomSerdeAdapter {
|
|
99
|
+
export declare class PlainDateSerde extends CustomSerdeAdapter {
|
|
100
100
|
constructor(dbType: string, isArray?: boolean);
|
|
101
101
|
}
|
|
102
102
|
/** Converts `TIME`s to `Temporal.PlainTime`s. */
|
|
103
|
-
declare class PlainTimeSerde extends CustomSerdeAdapter {
|
|
103
|
+
export declare class PlainTimeSerde extends CustomSerdeAdapter {
|
|
104
104
|
constructor(dbType: string, isArray?: boolean);
|
|
105
105
|
}
|
|
106
106
|
/** Converts `TIMESTAMP`s to `Temporal.PlainDateTime`s. */
|
|
107
|
-
declare class PlainDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.PlainDateTime> {
|
|
107
|
+
export declare class PlainDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.PlainDateTime> {
|
|
108
108
|
constructor(dbType: string, isArray?: boolean);
|
|
109
109
|
mapFromNow(now: Date): Temporal.PlainDateTime;
|
|
110
110
|
}
|
|
111
111
|
/** Converts `TIMESTAMP WITH TIME ZONE`s to `Temporal.ZonedDateTime`s. */
|
|
112
|
-
declare class ZonedDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.ZonedDateTime> {
|
|
112
|
+
export declare class ZonedDateTimeSerde extends CustomSerdeAdapter implements TimestampCodec<Temporal.ZonedDateTime> {
|
|
113
113
|
constructor(dbType: string, isArray?: boolean);
|
|
114
114
|
mapFromNow(now: Date): Temporal.ZonedDateTime;
|
|
115
115
|
}
|
|
116
|
-
declare class BigIntSerde implements ScalarCodec {
|
|
116
|
+
export declare class BigIntSerde implements ScalarCodec {
|
|
117
117
|
isArray: boolean;
|
|
118
118
|
dbType: string;
|
|
119
119
|
constructor(isArray?: boolean);
|
|
@@ -136,7 +136,7 @@ declare class BigIntSerde implements ScalarCodec {
|
|
|
136
136
|
* Also note that knex/pg accept `number`s as input, so we only need
|
|
137
137
|
* to handle from-database -> to JS translation.
|
|
138
138
|
*/
|
|
139
|
-
declare class DecimalToNumberSerde implements ScalarCodec {
|
|
139
|
+
export declare class DecimalToNumberSerde implements ScalarCodec {
|
|
140
140
|
isArray: boolean;
|
|
141
141
|
dbType: string;
|
|
142
142
|
constructor(isArray?: boolean);
|
|
@@ -151,7 +151,7 @@ declare class DecimalToNumberSerde implements ScalarCodec {
|
|
|
151
151
|
mapFromJsonAgg(value: any): any;
|
|
152
152
|
}
|
|
153
153
|
/** Maps physical integer keys to logical string IDs "because GraphQL". */
|
|
154
|
-
declare class KeySerde implements ScalarCodec {
|
|
154
|
+
export declare class KeySerde implements ScalarCodec {
|
|
155
155
|
dbType: "bigint" | "int" | "uuid" | "text";
|
|
156
156
|
isArray: boolean;
|
|
157
157
|
private meta;
|
|
@@ -166,7 +166,7 @@ declare class KeySerde implements ScalarCodec {
|
|
|
166
166
|
mapFromDb(value: unknown): string | undefined;
|
|
167
167
|
mapFromJsonAgg(value: any): any;
|
|
168
168
|
}
|
|
169
|
-
declare class EnumFieldSerde implements ScalarCodec {
|
|
169
|
+
export declare class EnumFieldSerde implements ScalarCodec {
|
|
170
170
|
dbType: "int" | "uuid";
|
|
171
171
|
private enumObject;
|
|
172
172
|
isArray: boolean;
|
|
@@ -181,7 +181,7 @@ declare class EnumFieldSerde implements ScalarCodec {
|
|
|
181
181
|
mapFromDb(value: unknown): unknown;
|
|
182
182
|
mapFromJsonAgg(value: any): any;
|
|
183
183
|
}
|
|
184
|
-
declare class EnumArrayFieldSerde implements ScalarCodec {
|
|
184
|
+
export declare class EnumArrayFieldSerde implements ScalarCodec {
|
|
185
185
|
dbType: "int[]" | "uuid[]";
|
|
186
186
|
private enumObject;
|
|
187
187
|
isArray: boolean;
|
|
@@ -197,7 +197,7 @@ declare class EnumArrayFieldSerde implements ScalarCodec {
|
|
|
197
197
|
mapFromJsonAgg(value: any): any;
|
|
198
198
|
}
|
|
199
199
|
/** Similar to SimpleSerde, but applies the superstruct `assert` function when reading values from the db. */
|
|
200
|
-
declare class SuperstructSerde implements ScalarCodec {
|
|
200
|
+
export declare class SuperstructSerde implements ScalarCodec {
|
|
201
201
|
private superstruct;
|
|
202
202
|
dbType: string;
|
|
203
203
|
isArray: boolean;
|
|
@@ -213,7 +213,7 @@ declare class SuperstructSerde implements ScalarCodec {
|
|
|
213
213
|
mapFromDb(value: unknown): unknown;
|
|
214
214
|
mapFromJsonAgg(value: any): any;
|
|
215
215
|
}
|
|
216
|
-
declare class JsonSerde implements ScalarCodec {
|
|
216
|
+
export declare class JsonSerde implements ScalarCodec {
|
|
217
217
|
dbType: string;
|
|
218
218
|
isArray: boolean;
|
|
219
219
|
constructor();
|
|
@@ -228,7 +228,7 @@ declare class JsonSerde implements ScalarCodec {
|
|
|
228
228
|
mapFromJsonAgg(value: any): any;
|
|
229
229
|
}
|
|
230
230
|
/** Similar to SimpleSerde, but applies the zod's `parse` function when reading values from the db. */
|
|
231
|
-
declare class ZodSerde implements ScalarCodec {
|
|
231
|
+
export declare class ZodSerde implements ScalarCodec {
|
|
232
232
|
private zodSchema;
|
|
233
233
|
dbType: string;
|
|
234
234
|
isArray: boolean;
|
|
@@ -244,5 +244,4 @@ declare class ZodSerde implements ScalarCodec {
|
|
|
244
244
|
mapFromJsonAgg(value: any): any;
|
|
245
245
|
}
|
|
246
246
|
//#endregion
|
|
247
|
-
export { BigIntSerde, CustomSerde, CustomSerdeAdapter, DateSerde, DecimalToNumberSerde, EnumArrayFieldSerde, EnumFieldSerde, JsonSerde, KeySerde, PlainDateSerde, PlainDateTimeSerde, PlainTimeSerde, PrimitiveSerde, ScalarCodec, SuperstructSerde, TimestampCodec, ZodSerde, ZonedDateTimeSerde };
|
|
248
247
|
//# sourceMappingURL=serde.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serde.d.mts","names":[],"sources":["../../src/serde/serde.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"serde.d.mts","names":[],"sources":["../../src/serde/serde.ts"],"mappings":";;;;iBAiBiB;EACf;EACA;;WAES,aAAa;;EAEtB,QAAQ;;;;;;;;EAQR,cAAc;;EAEd,UAAU;;;;;;;EAOV,eAAe;;EAEf,SAAS;;;iBAIM,eAAe,WAAW;EACzC,WAAW,KAAK,OAAO;;;;;;;;iBASR,YAAY,YAAY;EACvC,KAAK,OAAO,aAAa;EACzB,OAAO,OAAO,SAAS;;qBAGZ,8BAA8B;EAIhC;UACC;EAJV;EAEA,YACS,gBACC,QAAQ,uBAChB;;MAME,cAAc;;EAuBlB,aAAa;EAQb,SAAS;EAIT,QAAQ;;EASR,UAAU;EASV,eAAe;;;;;;;;;qBAkBJ,0BAA0B;EAE5B;EACA;EAFT,YACS,gBACA;;MAIL,cAAc;;EAclB,aAAa;EAIb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;qBAKJ,kBAAkB,0BAA0B,eAAe;;MAElE,cAAc;;EAOlB,WAAW,KAAK,OAAO;EAIvB,eAAe;;;;;;;;EAYf,SAAS;EAIT,QAAQ,OAAO;;;qBAOJ,uBAAuB;EAClC,YAAY,gBAAgB;;;qBAMjB,uBAAuB;EAClC,YAAY,gBAAgB;;;qBAMjB,2BAA2B,8BAA8B,eAAe,SAAS;EAC5F,YAAY,gBAAgB;EAI5B,WAAW,KAAK,OAAO,SAAS;;;qBAOrB,2BAA2B,8BAA8B,eAAe,SAAS;EAC5F,YAAY,gBAAgB;EAI5B,WAAW,KAAK,OAAO,SAAS;;qBAMrB,uBAAuB;EAGf;EAFnB;EAEA,YAAmB;;MAKf,cAAc;;EAOlB,aAAa;EAKb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EASV,eAAe;;;;;;;;;;;qBAcJ,gCAAgC;EAGxB;EAFnB;EAEA,YAAmB;;MAKf,cAAc;;EAOlB,aAAa;EAKb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EASV,eAAe;;;qBAMJ,oBAAoB;EAUtB;EATT;UAEQ;EAKR,YACE,iBACO;;MASL,cAAc;;EAOlB,aAAa;EASb,SAAS;EAKT,QAAQ;;EAQR,UAAU;EAIV,eAAe;;qBAKJ,0BAA0B;EAI5B;UACC;EAJV;EAEA,YACS,wBACC;;MAIN,cAAc;;EAOlB,aAAa;EAIb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;qBAKJ,+BAA+B;EAIjC;UACC;EAJV;EAEA,YACS,4BACC;;MAIN;;EAKJ,aAAa;EAIb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;;qBAMJ,4BAA4B;UAQnB;EAPpB;EACA;UAIQ;EAER,YAAoB;;MAGhB,cAAc;;EAOlB,aAAa;EAOb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAMV,eAAe;;qBAKJ,qBAAqB;EAChC;EACA;EAEA;;MAGI,cAAc;;EAOlB,aAAa;EAOb,SAAS;EAKT,QAAQ;;EAKR,UAAU;EAIV,eAAe;;;qBAMJ,oBAAoB;UAIX;EAHpB;EACA;EAEA,YAAoB;;MAGhB,cAAc;;EAOlB,aAAa;EAOb,SAAS;EAIT,QAAQ;;EAKR,UAAU;EAKV,eAAe"}
|
|
@@ -13,7 +13,7 @@ type TemporalModule = typeof import("temporal-spec");
|
|
|
13
13
|
* this just exposes an `import { Temporal } from joist-orm` that lets the codegen & tests
|
|
14
14
|
* reuse the same abstraction.
|
|
15
15
|
*/
|
|
16
|
-
declare const Temporal: typeof globalThis.Temporal;
|
|
16
|
+
export declare const Temporal: typeof globalThis.Temporal;
|
|
17
17
|
/**
|
|
18
18
|
* A type-only `Temporal` namespace that merges with the `const Temporal` above.
|
|
19
19
|
*
|
|
@@ -21,7 +21,7 @@ declare const Temporal: typeof globalThis.Temporal;
|
|
|
21
21
|
* type needs a namespace to resolve against. Node 26 has that as a global, but older Node
|
|
22
22
|
* versions don't, so `temporal-spec/global` supplies the same global namespace as a fallback.
|
|
23
23
|
*/
|
|
24
|
-
declare namespace Temporal {
|
|
24
|
+
export declare namespace Temporal {
|
|
25
25
|
type Instant = globalThis.Temporal.Instant;
|
|
26
26
|
type ZonedDateTime = globalThis.Temporal.ZonedDateTime;
|
|
27
27
|
type PlainDate = globalThis.Temporal.PlainDate;
|
|
@@ -37,8 +37,8 @@ declare namespace Temporal {
|
|
|
37
37
|
* We want to avoid directly importing/requiring `temporal-polyfill` because
|
|
38
38
|
* it will introduce the dependency to all users of Joist.
|
|
39
39
|
*/
|
|
40
|
-
declare function maybeRequireTemporal(): TemporalModule | undefined;
|
|
41
|
-
declare function requireTemporal(): TemporalModule;
|
|
40
|
+
export declare function maybeRequireTemporal(): TemporalModule | undefined;
|
|
41
|
+
export declare function requireTemporal(): TemporalModule;
|
|
42
42
|
//#endregion
|
|
43
|
-
export {
|
|
43
|
+
export {};
|
|
44
44
|
//# sourceMappingURL=temporal.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temporal.d.cts","names":[],"sources":["../../src/serde/temporal.ts"],"mappings":";;KAOK;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"temporal.d.cts","names":[],"sources":["../../src/serde/temporal.ts"],"mappings":";;KAOK;;;;;;;;;;;;;qBAeQ,iBAOD,WAAW;;;;;;;;yBASE;OACX,UAAU,WAAW,SAAS;OAC9B,gBAAgB,WAAW,SAAS;OACpC,YAAY,WAAW,SAAS;OAChC,YAAY,WAAW,SAAS;OAChC,gBAAgB,WAAW,SAAS;OACpC,iBAAiB,WAAW,SAAS;OACrC,gBAAgB,WAAW,SAAS;OACpC,WAAW,WAAW,SAAS;;;;;;;;wBAS7B,wBAAwB;wBA6BxB,mBAAmB"}
|
|
@@ -13,7 +13,7 @@ type TemporalModule = typeof import("temporal-spec");
|
|
|
13
13
|
* this just exposes an `import { Temporal } from joist-orm` that lets the codegen & tests
|
|
14
14
|
* reuse the same abstraction.
|
|
15
15
|
*/
|
|
16
|
-
declare const Temporal: typeof globalThis.Temporal;
|
|
16
|
+
export declare const Temporal: typeof globalThis.Temporal;
|
|
17
17
|
/**
|
|
18
18
|
* A type-only `Temporal` namespace that merges with the `const Temporal` above.
|
|
19
19
|
*
|
|
@@ -21,7 +21,7 @@ declare const Temporal: typeof globalThis.Temporal;
|
|
|
21
21
|
* type needs a namespace to resolve against. Node 26 has that as a global, but older Node
|
|
22
22
|
* versions don't, so `temporal-spec/global` supplies the same global namespace as a fallback.
|
|
23
23
|
*/
|
|
24
|
-
declare namespace Temporal {
|
|
24
|
+
export declare namespace Temporal {
|
|
25
25
|
type Instant = globalThis.Temporal.Instant;
|
|
26
26
|
type ZonedDateTime = globalThis.Temporal.ZonedDateTime;
|
|
27
27
|
type PlainDate = globalThis.Temporal.PlainDate;
|
|
@@ -37,8 +37,8 @@ declare namespace Temporal {
|
|
|
37
37
|
* We want to avoid directly importing/requiring `temporal-polyfill` because
|
|
38
38
|
* it will introduce the dependency to all users of Joist.
|
|
39
39
|
*/
|
|
40
|
-
declare function maybeRequireTemporal(): TemporalModule | undefined;
|
|
41
|
-
declare function requireTemporal(): TemporalModule;
|
|
40
|
+
export declare function maybeRequireTemporal(): TemporalModule | undefined;
|
|
41
|
+
export declare function requireTemporal(): TemporalModule;
|
|
42
42
|
//#endregion
|
|
43
|
-
export {
|
|
43
|
+
export {};
|
|
44
44
|
//# sourceMappingURL=temporal.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temporal.d.mts","names":[],"sources":["../../src/serde/temporal.ts"],"mappings":";;KAOK;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"temporal.d.mts","names":[],"sources":["../../src/serde/temporal.ts"],"mappings":";;KAOK;;;;;;;;;;;;;qBAeQ,iBAOD,WAAW;;;;;;;;yBASE;OACX,UAAU,WAAW,SAAS;OAC9B,gBAAgB,WAAW,SAAS;OACpC,YAAY,WAAW,SAAS;OAChC,YAAY,WAAW,SAAS;OAChC,gBAAgB,WAAW,SAAS;OACpC,iBAAiB,WAAW,SAAS;OACrC,gBAAgB,WAAW,SAAS;OACpC,WAAW,WAAW,SAAS;;;;;;;;wBAS7B,wBAAwB;wBA6BxB,mBAAmB"}
|
|
@@ -7,14 +7,14 @@ import { CustomSerde } from "./serde.cjs";
|
|
|
7
7
|
* `fromDb` accepts either pg's text form (classic/knex text queries, json_agg preloads) or an
|
|
8
8
|
* already-constructed `PlainDate` (lazy binary queries decode wire bytes -> Temporal directly).
|
|
9
9
|
*/
|
|
10
|
-
declare const plainDateMapper: CustomSerde<Temporal.PlainDate, string>;
|
|
10
|
+
export declare const plainDateMapper: CustomSerde<Temporal.PlainDate, string>;
|
|
11
11
|
/** Converts Postgres `TIME` to/from Temporal.PlainTime; `fromDb` also passes binary-decoded instances through. */
|
|
12
|
-
declare const plainTimeMapper: CustomSerde<Temporal.PlainTime, string>;
|
|
12
|
+
export declare const plainTimeMapper: CustomSerde<Temporal.PlainTime, string>;
|
|
13
13
|
/**
|
|
14
14
|
* Converts Postgres `TIMESTAMP` / `TIMESTAMP WITHOUT TIME ZONE` to/from Temporal.PlainDateTime;
|
|
15
15
|
* `fromDb` also passes binary-decoded instances through.
|
|
16
16
|
*/
|
|
17
|
-
declare const plainDateTimeMapper: CustomSerde<Temporal.PlainDateTime, string>;
|
|
17
|
+
export declare const plainDateTimeMapper: CustomSerde<Temporal.PlainDateTime, string>;
|
|
18
18
|
/**
|
|
19
19
|
* Converts Postgres `TIMESTAMPTZ`, `TIMESTAMPTZ WITH TIME ZONE` to/from Temporal.ZonedDateTime.
|
|
20
20
|
*
|
|
@@ -30,7 +30,6 @@ declare const plainDateTimeMapper: CustomSerde<Temporal.PlainDateTime, string>;
|
|
|
30
30
|
* Finally, PG stores dates as UTC and converts them to its local time zone for output, so we could get any offset
|
|
31
31
|
* theoretically. If, somehow, we don't get an offset, then we assume UTC.
|
|
32
32
|
*/
|
|
33
|
-
declare const zonedDateTimeMapper: CustomSerde<Temporal.ZonedDateTime, string>;
|
|
33
|
+
export declare const zonedDateTimeMapper: CustomSerde<Temporal.ZonedDateTime, string>;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { plainDateMapper, plainDateTimeMapper, plainTimeMapper, zonedDateTimeMapper };
|
|
36
35
|
//# sourceMappingURL=temporalMappers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temporalMappers.d.cts","names":[],"sources":["../../src/serde/temporalMappers.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"temporalMappers.d.cts","names":[],"sources":["../../src/serde/temporalMappers.ts"],"mappings":";;;;;;;;;qBAgBa,iBAAiB,YAAY,SAAS;;qBAQtC,iBAAiB,YAAY,SAAS;;;;;qBAWtC,qBAAqB,YAAY,SAAS;;;;;;;;;;;;;;;;qBAwB1C,qBAAqB,YAAY,SAAS"}
|
|
@@ -7,14 +7,14 @@ import { CustomSerde } from "./serde.mjs";
|
|
|
7
7
|
* `fromDb` accepts either pg's text form (classic/knex text queries, json_agg preloads) or an
|
|
8
8
|
* already-constructed `PlainDate` (lazy binary queries decode wire bytes -> Temporal directly).
|
|
9
9
|
*/
|
|
10
|
-
declare const plainDateMapper: CustomSerde<Temporal.PlainDate, string>;
|
|
10
|
+
export declare const plainDateMapper: CustomSerde<Temporal.PlainDate, string>;
|
|
11
11
|
/** Converts Postgres `TIME` to/from Temporal.PlainTime; `fromDb` also passes binary-decoded instances through. */
|
|
12
|
-
declare const plainTimeMapper: CustomSerde<Temporal.PlainTime, string>;
|
|
12
|
+
export declare const plainTimeMapper: CustomSerde<Temporal.PlainTime, string>;
|
|
13
13
|
/**
|
|
14
14
|
* Converts Postgres `TIMESTAMP` / `TIMESTAMP WITHOUT TIME ZONE` to/from Temporal.PlainDateTime;
|
|
15
15
|
* `fromDb` also passes binary-decoded instances through.
|
|
16
16
|
*/
|
|
17
|
-
declare const plainDateTimeMapper: CustomSerde<Temporal.PlainDateTime, string>;
|
|
17
|
+
export declare const plainDateTimeMapper: CustomSerde<Temporal.PlainDateTime, string>;
|
|
18
18
|
/**
|
|
19
19
|
* Converts Postgres `TIMESTAMPTZ`, `TIMESTAMPTZ WITH TIME ZONE` to/from Temporal.ZonedDateTime.
|
|
20
20
|
*
|
|
@@ -30,7 +30,6 @@ declare const plainDateTimeMapper: CustomSerde<Temporal.PlainDateTime, string>;
|
|
|
30
30
|
* Finally, PG stores dates as UTC and converts them to its local time zone for output, so we could get any offset
|
|
31
31
|
* theoretically. If, somehow, we don't get an offset, then we assume UTC.
|
|
32
32
|
*/
|
|
33
|
-
declare const zonedDateTimeMapper: CustomSerde<Temporal.ZonedDateTime, string>;
|
|
33
|
+
export declare const zonedDateTimeMapper: CustomSerde<Temporal.ZonedDateTime, string>;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { plainDateMapper, plainDateTimeMapper, plainTimeMapper, zonedDateTimeMapper };
|
|
36
35
|
//# sourceMappingURL=temporalMappers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temporalMappers.d.mts","names":[],"sources":["../../src/serde/temporalMappers.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"temporalMappers.d.mts","names":[],"sources":["../../src/serde/temporalMappers.ts"],"mappings":";;;;;;;;;qBAgBa,iBAAiB,YAAY,SAAS;;qBAQtC,iBAAiB,YAAY,SAAS;;;;;qBAWtC,qBAAqB,YAAY,SAAS;;;;;;;;;;;;;;;;qBAwB1C,qBAAqB,YAAY,SAAS"}
|
package/build/transitions.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ import { Entity } from "./Entity.cjs";
|
|
|
8
8
|
*
|
|
9
9
|
* Omitting `from` or `to` matches any state. Guards never run on creation.
|
|
10
10
|
*/
|
|
11
|
-
interface GuardTransitionMatch<V> {
|
|
11
|
+
export interface GuardTransitionMatch<V> {
|
|
12
12
|
from?: V | readonly V[];
|
|
13
13
|
to?: V | readonly V[];
|
|
14
14
|
}
|
|
@@ -17,7 +17,7 @@ interface GuardTransitionMatch<V> {
|
|
|
17
17
|
*
|
|
18
18
|
* Creating an entity with a matching `to` state also matches, unless `from` is set or `onCreate` is `false`.
|
|
19
19
|
*/
|
|
20
|
-
interface OnTransitionMatch<V> extends GuardTransitionMatch<V> {
|
|
20
|
+
export interface OnTransitionMatch<V> extends GuardTransitionMatch<V> {
|
|
21
21
|
/**
|
|
22
22
|
* Whether `addTransitionReaction` fires when an entity is created with a matching `to` state, defaults to `true`.
|
|
23
23
|
*
|
|
@@ -29,44 +29,44 @@ interface OnTransitionMatch<V> extends GuardTransitionMatch<V> {
|
|
|
29
29
|
phase?: "flush" | "commit";
|
|
30
30
|
}
|
|
31
31
|
/** Maps each state to the states it may transition to, i.e. `{ Draft: ["Open"], Open: ["Closed"] }`. */
|
|
32
|
-
type TransitionTable<V extends PropertyKey> = Partial<Record<V, readonly V[]>>;
|
|
32
|
+
export type TransitionTable<V extends PropertyKey> = Partial<Record<V, readonly V[]>>;
|
|
33
33
|
/**
|
|
34
34
|
* The transition a guard or reaction is handling, i.e. `{ from: "DRAFT", to: "OPEN" }`.
|
|
35
35
|
*
|
|
36
36
|
* Guards and callbacks run during reaction passes, after the assignment, so the entity may already be in a
|
|
37
37
|
* later state. This tells them which transition they're handling. `from` is `undefined` for creation.
|
|
38
38
|
*/
|
|
39
|
-
interface Transition<V> {
|
|
39
|
+
export interface Transition<V> {
|
|
40
40
|
from: V | undefined;
|
|
41
41
|
to: V;
|
|
42
42
|
}
|
|
43
43
|
/** The "from" state of a just-created entity, because `undefined` can be a real field value. */
|
|
44
|
-
declare const created: unique symbol;
|
|
44
|
+
export declare const created: unique symbol;
|
|
45
45
|
/** A single recorded transition of a field, with `from` as `created` for creation. */
|
|
46
|
-
interface TransitionStep {
|
|
46
|
+
export interface TransitionStep {
|
|
47
47
|
from: unknown;
|
|
48
48
|
to: unknown;
|
|
49
49
|
}
|
|
50
50
|
/** An `addTransitionRule` as registered in config, with its `match` still using accessors. */
|
|
51
|
-
interface TransitionGuardConfig<T extends Entity = Entity> {
|
|
51
|
+
export interface TransitionGuardConfig<T extends Entity = Entity> {
|
|
52
52
|
match: GuardTransitionMatch<string>;
|
|
53
53
|
run(entity: T, step: TransitionStep): MaybePromise<ValidationRuleResult>;
|
|
54
54
|
}
|
|
55
55
|
/** An `addTransitionReaction` as registered in config, with its `match` still using accessors. */
|
|
56
|
-
interface TransitionCallbackConfig<T extends Entity = Entity, C = unknown> {
|
|
56
|
+
export interface TransitionCallbackConfig<T extends Entity = Entity, C = unknown> {
|
|
57
57
|
name: string;
|
|
58
58
|
match: OnTransitionMatch<string>;
|
|
59
59
|
run(entity: T, ctx: C, step: TransitionStep): MaybePromise<unknown>;
|
|
60
60
|
}
|
|
61
61
|
/** One field's `setTransitions`, `addTransitionRule`, and `addTransitionReaction` config on a single entity type. */
|
|
62
|
-
interface FieldTransitionsConfig<T extends Entity = Entity, C = unknown> {
|
|
62
|
+
export interface FieldTransitionsConfig<T extends Entity = Entity, C = unknown> {
|
|
63
63
|
/** The `transitions` table, if any; subtypes add their own tables on their own configs. */
|
|
64
64
|
table?: TransitionTable<string>;
|
|
65
65
|
guards: TransitionGuardConfig<T>[];
|
|
66
66
|
callbacks: TransitionCallbackConfig<T, C>[];
|
|
67
67
|
}
|
|
68
68
|
/** A `match` with accessors converted to codes, so it can be compared to recorded steps. */
|
|
69
|
-
interface TransitionMatcher {
|
|
69
|
+
export interface TransitionMatcher {
|
|
70
70
|
/** The allowed previous states, or `undefined` for any state. */
|
|
71
71
|
from: readonly unknown[] | undefined;
|
|
72
72
|
/** The allowed new states, or `undefined` for any state. */
|
|
@@ -75,36 +75,35 @@ interface TransitionMatcher {
|
|
|
75
75
|
onCreate: boolean;
|
|
76
76
|
}
|
|
77
77
|
/** A guard with its `match` converted to codes. */
|
|
78
|
-
interface TransitionGuard {
|
|
78
|
+
export interface TransitionGuard {
|
|
79
79
|
matcher: TransitionMatcher;
|
|
80
80
|
run(entity: Entity, step: TransitionStep): MaybePromise<ValidationRuleResult>;
|
|
81
81
|
}
|
|
82
82
|
/** A callback with its `match` converted to codes, dispatched only after its transition's guards pass. */
|
|
83
|
-
interface TransitionCallback {
|
|
83
|
+
export interface TransitionCallback {
|
|
84
84
|
name: string;
|
|
85
85
|
phase: "flush" | "commit";
|
|
86
86
|
matcher: TransitionMatcher;
|
|
87
87
|
run(entity: Entity, ctx: unknown, step: TransitionStep): MaybePromise<unknown>;
|
|
88
88
|
}
|
|
89
89
|
/** One field's transition config from an entity type and its base types, with accessors converted to codes. */
|
|
90
|
-
interface FieldTransitions {
|
|
90
|
+
export interface FieldTransitions {
|
|
91
91
|
/** Each table maps a `from` code to its allowed `to` codes; every table must allow a change. */
|
|
92
92
|
tables: ReadonlyMap<unknown, readonly unknown[]>[];
|
|
93
93
|
guards: TransitionGuard[];
|
|
94
94
|
callbacks: TransitionCallback[];
|
|
95
95
|
}
|
|
96
96
|
/** Converts an internal step to the `Transition` that guards and reactions receive. */
|
|
97
|
-
declare function toTransition(step: TransitionStep): Transition<any>;
|
|
97
|
+
export declare function toTransition(step: TransitionStep): Transition<any>;
|
|
98
98
|
/**
|
|
99
99
|
* Merges the transition config of `meta` and its base types by field, converting accessors to codes.
|
|
100
100
|
*
|
|
101
101
|
* This runs after boot, because the config is written before the enum metadata exists.
|
|
102
102
|
*/
|
|
103
|
-
declare function buildFieldTransitions(meta: EntityMetadata): Map<string, FieldTransitions>;
|
|
103
|
+
export declare function buildFieldTransitions(meta: EntityMetadata): Map<string, FieldTransitions>;
|
|
104
104
|
/** Returns whether `step` matches `matcher`'s `from`, `to`, and `onCreate` settings. */
|
|
105
|
-
declare function matchesTransition(matcher: TransitionMatcher, step: TransitionStep): boolean;
|
|
105
|
+
export declare function matchesTransition(matcher: TransitionMatcher, step: TransitionStep): boolean;
|
|
106
106
|
/** Uses the enum's display name in error messages when there is one, i.e. `Approved` instead of `APPROVED`. */
|
|
107
|
-
declare function describeValue(meta: EntityMetadata, fieldName: string, value: unknown): string;
|
|
107
|
+
export declare function describeValue(meta: EntityMetadata, fieldName: string, value: unknown): string;
|
|
108
108
|
//#endregion
|
|
109
|
-
export { FieldTransitions, FieldTransitionsConfig, GuardTransitionMatch, OnTransitionMatch, Transition, TransitionCallback, TransitionCallbackConfig, TransitionGuard, TransitionGuardConfig, TransitionMatcher, TransitionStep, TransitionTable, buildFieldTransitions, created, describeValue, matchesTransition, toTransition };
|
|
110
109
|
//# sourceMappingURL=transitions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transitions.d.cts","names":[],"sources":["../src/transitions.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"transitions.d.cts","names":[],"sources":["../src/transitions.ts"],"mappings":";;;;;;;;;;iBAUiB,qBAAqB;EACpC,OAAO,aAAa;EACpB,KAAK,aAAa;;;;;;;iBAQH,kBAAkB,WAAW,qBAAqB;;;;;;;EAOjE;;EAEA;;;YAIU,gBAAgB,UAAU,eAAe,QAAQ,OAAO,YAAY;;;;;;;iBAQ/D,WAAW;EAC1B,MAAM;EACN,IAAI;;;qBAIO;;iBAGI;EACf;EACA;;;iBAIe,sBAAsB,UAAU,SAAS;EACxD,OAAO;EACP,IAAI,QAAQ,GAAG,MAAM,iBAAiB,aAAa;;;iBAIpC,yBAAyB,UAAU,SAAS,QAAQ;EACnE;EACA,OAAO;EACP,IAAI,QAAQ,GAAG,KAAK,GAAG,MAAM,iBAAiB;;;iBAI/B,uBAAuB,UAAU,SAAS,QAAQ;;EAEjE,QAAQ;EACR,QAAQ,sBAAsB;EAC9B,WAAW,yBAAyB,GAAG;;;iBAIxB;;EAEf;;EAEA;;EAEA;;;iBAIe;EACf,SAAS;EACT,IAAI,QAAQ,QAAQ,MAAM,iBAAiB,aAAa;;;iBAIzC;EACf;EACA;EACA,SAAS;EACT,IAAI,QAAQ,QAAQ,cAAc,MAAM,iBAAiB;;;iBAI1C;;EAEf,QAAQ;EACR,QAAQ;EACR,WAAW;;;wBAIG,aAAa,MAAM,iBAAiB;;;;;;wBASpC,sBAAsB,MAAM,iBAAiB,YAAY;;wBAoBzD,kBAAkB,SAAS,mBAAmB,MAAM;;wBAUpD,cAAc,MAAM,gBAAgB,mBAAmB"}
|