@decaf-ts/core 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/lib/cjs/auth/constants.js.map +1 -0
- package/lib/cjs/auth/decorators.js.map +1 -0
- package/lib/cjs/auth/index.js.map +1 -0
- package/lib/cjs/fs/FilesystemAdapter.js.map +1 -0
- package/lib/cjs/fs/FsDispatch.js.map +1 -0
- package/lib/cjs/fs/helpers.js.map +1 -0
- package/lib/cjs/fs/index.js.map +1 -0
- package/lib/cjs/fs/indexStore.js.map +1 -0
- package/lib/cjs/fs/locks/FilesystemLock.js.map +1 -0
- package/lib/cjs/fs/locks/FilesystemMultiLock.js.map +1 -0
- package/lib/{fs → cjs/fs}/types.js.map +1 -1
- package/lib/cjs/identity/decorators.js.map +1 -0
- package/lib/cjs/identity/index.js.map +1 -0
- package/lib/{index.cjs → cjs/index.cjs} +1 -1
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/interfaces/ContextuallyLogged.js.map +1 -0
- package/lib/cjs/interfaces/ErrorParser.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/Executor.js.map +1 -1
- package/lib/cjs/interfaces/Observable.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/Observer.js.map +1 -1
- package/lib/cjs/interfaces/Paginatable.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/Queriable.js.map +1 -1
- package/lib/cjs/interfaces/RawExecutor.js.map +1 -0
- package/lib/cjs/interfaces/SequenceOptions.js.map +1 -0
- package/lib/cjs/interfaces/index.js.map +1 -0
- package/lib/cjs/migrations/Migration.js.map +1 -0
- package/lib/cjs/migrations/MigrationService.js.map +1 -0
- package/lib/cjs/migrations/MigrationTaskBuilder.js.map +1 -0
- package/lib/cjs/migrations/MigrationTasks.js.map +1 -0
- package/lib/cjs/migrations/MigrationVersioning.js.map +1 -0
- package/lib/cjs/migrations/SemverMigrationVersioning.js.map +1 -0
- package/lib/cjs/migrations/StandardMigrationVersioning.js.map +1 -0
- package/lib/cjs/migrations/constants.js.map +1 -0
- package/lib/cjs/migrations/decorators.js.map +1 -0
- package/lib/cjs/migrations/index.js.map +1 -0
- package/lib/{persistence → cjs/migrations}/types.js.map +1 -1
- package/lib/cjs/model/BaseModel.js.map +1 -0
- package/lib/cjs/model/SequenceModel.js.map +1 -0
- package/lib/cjs/model/construction.js.map +1 -0
- package/lib/cjs/model/decorators.js.map +1 -0
- package/lib/cjs/model/index.js.map +1 -0
- package/lib/cjs/model/indexing.js.map +1 -0
- package/lib/{model → cjs/model}/types.js.map +1 -1
- package/lib/cjs/overrides/Metadata.js.map +1 -0
- package/lib/cjs/overrides/Model.js.map +1 -0
- package/lib/cjs/overrides/ModelBuilder.js.map +1 -0
- package/lib/cjs/overrides/index.js.map +1 -0
- package/lib/cjs/overrides/injectables.js.map +1 -0
- package/lib/cjs/overrides/overrides.js.map +1 -0
- package/lib/{persistence → cjs/persistence}/Adapter.cjs +12 -4
- package/lib/cjs/persistence/Adapter.js.map +1 -0
- package/lib/cjs/persistence/Context.js.map +1 -0
- package/lib/cjs/persistence/ContextLock.js.map +1 -0
- package/lib/cjs/persistence/Dispatch.js.map +1 -0
- package/lib/cjs/persistence/ObserverHandler.js.map +1 -0
- package/lib/cjs/persistence/Sequence.js.map +1 -0
- package/lib/cjs/persistence/constants.js.map +1 -0
- package/lib/cjs/persistence/decorators.js.map +1 -0
- package/lib/cjs/persistence/errors.js.map +1 -0
- package/lib/cjs/persistence/event-filters.js.map +1 -0
- package/lib/cjs/persistence/generators.js.map +1 -0
- package/lib/cjs/persistence/index.js.map +1 -0
- package/lib/cjs/persistence/transactions.js.map +1 -0
- package/lib/cjs/persistence/types.js.map +1 -0
- package/lib/cjs/query/Condition.js.map +1 -0
- package/lib/cjs/query/MethodQueryBuilder.js.map +1 -0
- package/lib/cjs/query/Paginator.js.map +1 -0
- package/lib/cjs/query/Statement.js.map +1 -0
- package/lib/cjs/query/constants.js.map +1 -0
- package/lib/cjs/query/decorators.js.map +1 -0
- package/lib/cjs/query/errors.js.map +1 -0
- package/lib/cjs/query/index.js.map +1 -0
- package/lib/{query → cjs/query}/options.js.map +1 -1
- package/lib/{query → cjs/query}/selectors.js.map +1 -1
- package/lib/cjs/query/types.js.map +1 -0
- package/lib/cjs/query/utils.js.map +1 -0
- package/lib/cjs/ram/RamAdapter.js.map +1 -0
- package/lib/cjs/ram/RamPaginator.js.map +1 -0
- package/lib/cjs/ram/RamStatement.js.map +1 -0
- package/lib/cjs/ram/constants.js.map +1 -0
- package/lib/cjs/ram/handlers.js.map +1 -0
- package/lib/cjs/ram/index.js.map +1 -0
- package/lib/{tasks → cjs/ram}/types.js.map +1 -1
- package/lib/{repository → cjs/repository}/Repository.cjs +10 -2
- package/lib/cjs/repository/Repository.js.map +1 -0
- package/lib/cjs/repository/constants.js.map +1 -0
- package/lib/cjs/repository/decorators.js.map +1 -0
- package/lib/cjs/repository/errors.js.map +1 -0
- package/lib/cjs/repository/index.js.map +1 -0
- package/lib/cjs/repository/injectables.js.map +1 -0
- package/lib/cjs/repository/types.js.map +1 -0
- package/lib/cjs/repository/utils.js.map +1 -0
- package/lib/cjs/services/ModelService.js.map +1 -0
- package/lib/cjs/services/PersistenceService.js.map +1 -0
- package/lib/cjs/services/index.js.map +1 -0
- package/lib/cjs/services/services.js.map +1 -0
- package/lib/cjs/tasks/CleanUpTask.js.map +1 -0
- package/lib/cjs/tasks/TaskContext.js.map +1 -0
- package/lib/cjs/tasks/TaskEngine.js.map +1 -0
- package/lib/cjs/tasks/TaskErrors.js.map +1 -0
- package/lib/cjs/tasks/TaskEventBus.js.map +1 -0
- package/lib/cjs/tasks/TaskEventService.js.map +1 -0
- package/lib/cjs/tasks/TaskHandler.js.map +1 -0
- package/lib/cjs/tasks/TaskHandlerRegistry.js.map +1 -0
- package/lib/cjs/tasks/TaskService.js.map +1 -0
- package/lib/cjs/tasks/TaskStateChangeError.js.map +1 -0
- package/lib/cjs/tasks/TaskTracker.js.map +1 -0
- package/lib/cjs/tasks/builder.js.map +1 -0
- package/lib/cjs/tasks/constants.js.map +1 -0
- package/lib/cjs/tasks/decorators.js.map +1 -0
- package/lib/cjs/tasks/index.js.map +1 -0
- package/lib/cjs/tasks/logging.js.map +1 -0
- package/lib/cjs/tasks/models/TaskBackoffModel.js.map +1 -0
- package/lib/cjs/tasks/models/TaskErrorModel.js.map +1 -0
- package/lib/cjs/tasks/models/TaskEventModel.js.map +1 -0
- package/lib/cjs/tasks/models/TaskIOSerializer.js.map +1 -0
- package/lib/cjs/tasks/models/TaskLogEntryModel.js.map +1 -0
- package/lib/cjs/tasks/models/TaskModel.js.map +1 -0
- package/lib/cjs/tasks/models/TaskStepResultModel.js.map +1 -0
- package/lib/cjs/tasks/models/TaskStepSpecModel.js.map +1 -0
- package/lib/cjs/tasks/models/index.js.map +1 -0
- package/lib/{ram → cjs/tasks}/types.js.map +1 -1
- package/lib/cjs/tasks/utils.js.map +1 -0
- package/lib/cjs/utils/ContextualLoggedClass.js.map +1 -0
- package/lib/cjs/utils/decorators.js.map +1 -0
- package/lib/cjs/utils/errors.js.map +1 -0
- package/lib/cjs/utils/index.js.map +1 -0
- package/lib/cjs/utils/throttling.js.map +1 -0
- package/lib/cjs/utils/types.js.map +1 -0
- package/lib/cjs/utils/utils.js.map +1 -0
- package/lib/cjs/workers/TaskEngine.js.map +1 -0
- package/lib/cjs/workers/WorkThreadEnvironment.js.map +1 -0
- package/lib/cjs/workers/index.js.map +1 -0
- package/lib/{workers → cjs/workers}/messages.js.map +1 -1
- package/lib/{migrations → cjs/workers}/types.js.map +1 -1
- package/lib/cjs/workers/workerThread.js.map +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/persistence/Adapter.js +12 -4
- package/lib/esm/persistence/Adapter.js.map +1 -1
- package/lib/esm/repository/Repository.js +10 -2
- package/lib/esm/repository/Repository.js.map +1 -1
- package/lib/{esm → types}/index.d.ts +1 -1
- package/lib/{esm → types}/persistence/transactions.d.ts +1 -1
- package/lib/{repository → types/repository}/Repository.d.ts +1 -1
- package/lib/{services → types/services}/ModelService.d.ts +2 -2
- package/lib/{esm → types}/tasks/TaskService.d.ts +2 -2
- package/package.json +26 -20
- package/lib/auth/constants.js.map +0 -1
- package/lib/auth/decorators.js.map +0 -1
- package/lib/auth/index.js.map +0 -1
- package/lib/esm/auth/constants.d.ts +0 -5
- package/lib/esm/auth/decorators.d.ts +0 -5
- package/lib/esm/auth/index.d.ts +0 -2
- package/lib/esm/repository/Repository.d.ts +0 -501
- package/lib/esm/services/ModelService.d.ts +0 -45
- package/lib/fs/FilesystemAdapter.d.ts +0 -70
- package/lib/fs/FilesystemAdapter.js.map +0 -1
- package/lib/fs/FsDispatch.d.ts +0 -7
- package/lib/fs/FsDispatch.js.map +0 -1
- package/lib/fs/helpers.d.ts +0 -17
- package/lib/fs/helpers.js.map +0 -1
- package/lib/fs/index.d.ts +0 -4
- package/lib/fs/index.js.map +0 -1
- package/lib/fs/indexStore.d.ts +0 -28
- package/lib/fs/indexStore.js.map +0 -1
- package/lib/fs/locks/FilesystemLock.d.ts +0 -13
- package/lib/fs/locks/FilesystemLock.js.map +0 -1
- package/lib/fs/locks/FilesystemMultiLock.d.ts +0 -8
- package/lib/fs/locks/FilesystemMultiLock.js.map +0 -1
- package/lib/fs/types.d.ts +0 -40
- package/lib/identity/decorators.d.ts +0 -72
- package/lib/identity/decorators.js.map +0 -1
- package/lib/identity/index.d.ts +0 -6
- package/lib/identity/index.js.map +0 -1
- package/lib/index.d.ts +0 -33
- package/lib/index.js.map +0 -1
- package/lib/interfaces/ContextuallyLogged.d.ts +0 -8
- package/lib/interfaces/ContextuallyLogged.js.map +0 -1
- package/lib/interfaces/ErrorParser.d.ts +0 -16
- package/lib/interfaces/ErrorParser.js.map +0 -1
- package/lib/interfaces/Executor.d.ts +0 -16
- package/lib/interfaces/Observable.d.ts +0 -33
- package/lib/interfaces/Observable.js.map +0 -1
- package/lib/interfaces/Observer.d.ts +0 -15
- package/lib/interfaces/Paginatable.d.ts +0 -20
- package/lib/interfaces/Paginatable.js.map +0 -1
- package/lib/interfaces/Queriable.d.ts +0 -47
- package/lib/interfaces/RawExecutor.d.ts +0 -28
- package/lib/interfaces/RawExecutor.js.map +0 -1
- package/lib/interfaces/SequenceOptions.d.ts +0 -79
- package/lib/interfaces/SequenceOptions.js.map +0 -1
- package/lib/interfaces/index.d.ts +0 -12
- package/lib/interfaces/index.js.map +0 -1
- package/lib/migrations/Migration.d.ts +0 -19
- package/lib/migrations/Migration.js.map +0 -1
- package/lib/migrations/MigrationService.d.ts +0 -63
- package/lib/migrations/MigrationService.js.map +0 -1
- package/lib/migrations/MigrationTaskBuilder.d.ts +0 -10
- package/lib/migrations/MigrationTaskBuilder.js.map +0 -1
- package/lib/migrations/MigrationTasks.d.ts +0 -9
- package/lib/migrations/MigrationTasks.js.map +0 -1
- package/lib/migrations/MigrationVersioning.d.ts +0 -7
- package/lib/migrations/MigrationVersioning.js.map +0 -1
- package/lib/migrations/SemverMigrationVersioning.d.ts +0 -10
- package/lib/migrations/SemverMigrationVersioning.js.map +0 -1
- package/lib/migrations/StandardMigrationVersioning.d.ts +0 -12
- package/lib/migrations/StandardMigrationVersioning.js.map +0 -1
- package/lib/migrations/constants.d.ts +0 -2
- package/lib/migrations/constants.js.map +0 -1
- package/lib/migrations/decorators.d.ts +0 -12
- package/lib/migrations/decorators.js.map +0 -1
- package/lib/migrations/index.d.ts +0 -14
- package/lib/migrations/index.js.map +0 -1
- package/lib/migrations/types.d.ts +0 -46
- package/lib/model/BaseModel.d.ts +0 -37
- package/lib/model/BaseModel.js.map +0 -1
- package/lib/model/SequenceModel.d.ts +0 -32
- package/lib/model/SequenceModel.js.map +0 -1
- package/lib/model/construction.d.ts +0 -455
- package/lib/model/construction.js.map +0 -1
- package/lib/model/decorators.d.ts +0 -237
- package/lib/model/decorators.js.map +0 -1
- package/lib/model/index.d.ts +0 -11
- package/lib/model/index.js.map +0 -1
- package/lib/model/indexing.d.ts +0 -20
- package/lib/model/indexing.js.map +0 -1
- package/lib/model/types.d.ts +0 -60
- package/lib/overrides/Metadata.d.ts +0 -22
- package/lib/overrides/Metadata.js.map +0 -1
- package/lib/overrides/Model.d.ts +0 -94
- package/lib/overrides/Model.js.map +0 -1
- package/lib/overrides/ModelBuilder.d.ts +0 -31
- package/lib/overrides/ModelBuilder.js.map +0 -1
- package/lib/overrides/index.d.ts +0 -10
- package/lib/overrides/index.js.map +0 -1
- package/lib/overrides/injectables.d.ts +0 -10
- package/lib/overrides/injectables.js.map +0 -1
- package/lib/overrides/overrides.d.ts +0 -1
- package/lib/overrides/overrides.js.map +0 -1
- package/lib/persistence/Adapter.d.ts +0 -469
- package/lib/persistence/Adapter.js.map +0 -1
- package/lib/persistence/Context.d.ts +0 -16
- package/lib/persistence/Context.js.map +0 -1
- package/lib/persistence/ContextLock.d.ts +0 -18
- package/lib/persistence/ContextLock.js.map +0 -1
- package/lib/persistence/Dispatch.d.ts +0 -128
- package/lib/persistence/Dispatch.js.map +0 -1
- package/lib/persistence/ObserverHandler.d.ts +0 -111
- package/lib/persistence/ObserverHandler.js.map +0 -1
- package/lib/persistence/Sequence.d.ts +0 -126
- package/lib/persistence/Sequence.js.map +0 -1
- package/lib/persistence/constants.d.ts +0 -74
- package/lib/persistence/constants.js.map +0 -1
- package/lib/persistence/decorators.d.ts +0 -28
- package/lib/persistence/decorators.js.map +0 -1
- package/lib/persistence/errors.d.ts +0 -33
- package/lib/persistence/errors.js.map +0 -1
- package/lib/persistence/event-filters.d.ts +0 -20
- package/lib/persistence/event-filters.js.map +0 -1
- package/lib/persistence/generators.d.ts +0 -14
- package/lib/persistence/generators.js.map +0 -1
- package/lib/persistence/index.d.ts +0 -18
- package/lib/persistence/index.js.map +0 -1
- package/lib/persistence/transactions.d.ts +0 -4
- package/lib/persistence/transactions.js.map +0 -1
- package/lib/persistence/types.d.ts +0 -86
- package/lib/query/Condition.d.ts +0 -131
- package/lib/query/Condition.js.map +0 -1
- package/lib/query/MethodQueryBuilder.d.ts +0 -185
- package/lib/query/MethodQueryBuilder.js.map +0 -1
- package/lib/query/Paginator.d.ts +0 -105
- package/lib/query/Paginator.js.map +0 -1
- package/lib/query/Statement.d.ts +0 -136
- package/lib/query/Statement.js.map +0 -1
- package/lib/query/constants.d.ts +0 -69
- package/lib/query/constants.js.map +0 -1
- package/lib/query/decorators.d.ts +0 -8
- package/lib/query/decorators.js.map +0 -1
- package/lib/query/errors.d.ts +0 -21
- package/lib/query/errors.js.map +0 -1
- package/lib/query/index.d.ts +0 -16
- package/lib/query/index.js.map +0 -1
- package/lib/query/options.d.ts +0 -393
- package/lib/query/selectors.d.ts +0 -39
- package/lib/query/types.d.ts +0 -158
- package/lib/query/types.js.map +0 -1
- package/lib/query/utils.d.ts +0 -40
- package/lib/query/utils.js.map +0 -1
- package/lib/ram/RamAdapter.d.ts +0 -341
- package/lib/ram/RamAdapter.js.map +0 -1
- package/lib/ram/RamPaginator.d.ts +0 -54
- package/lib/ram/RamPaginator.js.map +0 -1
- package/lib/ram/RamStatement.d.ts +0 -92
- package/lib/ram/RamStatement.js.map +0 -1
- package/lib/ram/constants.d.ts +0 -8
- package/lib/ram/constants.js.map +0 -1
- package/lib/ram/handlers.d.ts +0 -24
- package/lib/ram/handlers.js.map +0 -1
- package/lib/ram/index.d.ts +0 -6
- package/lib/ram/index.js.map +0 -1
- package/lib/ram/types.d.ts +0 -50
- package/lib/repository/Repository.js.map +0 -1
- package/lib/repository/constants.d.ts +0 -36
- package/lib/repository/constants.js.map +0 -1
- package/lib/repository/decorators.d.ts +0 -30
- package/lib/repository/decorators.js.map +0 -1
- package/lib/repository/errors.d.ts +0 -19
- package/lib/repository/errors.js.map +0 -1
- package/lib/repository/index.d.ts +0 -12
- package/lib/repository/index.js.map +0 -1
- package/lib/repository/injectables.d.ts +0 -95
- package/lib/repository/injectables.js.map +0 -1
- package/lib/repository/types.d.ts +0 -28
- package/lib/repository/types.js.map +0 -1
- package/lib/repository/utils.d.ts +0 -36
- package/lib/repository/utils.js.map +0 -1
- package/lib/services/ModelService.js.map +0 -1
- package/lib/services/PersistenceService.d.ts +0 -17
- package/lib/services/PersistenceService.js.map +0 -1
- package/lib/services/index.d.ts +0 -8
- package/lib/services/index.js.map +0 -1
- package/lib/services/services.d.ts +0 -96
- package/lib/services/services.js.map +0 -1
- package/lib/tasks/CleanUpTask.d.ts +0 -15
- package/lib/tasks/CleanUpTask.js.map +0 -1
- package/lib/tasks/TaskContext.d.ts +0 -30
- package/lib/tasks/TaskContext.js.map +0 -1
- package/lib/tasks/TaskEngine.d.ts +0 -97
- package/lib/tasks/TaskEngine.js.map +0 -1
- package/lib/tasks/TaskErrors.d.ts +0 -65
- package/lib/tasks/TaskErrors.js.map +0 -1
- package/lib/tasks/TaskEventBus.d.ts +0 -17
- package/lib/tasks/TaskEventBus.js.map +0 -1
- package/lib/tasks/TaskEventService.d.ts +0 -7
- package/lib/tasks/TaskEventService.js.map +0 -1
- package/lib/tasks/TaskHandler.d.ts +0 -12
- package/lib/tasks/TaskHandler.js.map +0 -1
- package/lib/tasks/TaskHandlerRegistry.d.ts +0 -8
- package/lib/tasks/TaskHandlerRegistry.js.map +0 -1
- package/lib/tasks/TaskService.d.ts +0 -65
- package/lib/tasks/TaskService.js.map +0 -1
- package/lib/tasks/TaskStateChangeError.d.ts +0 -11
- package/lib/tasks/TaskStateChangeError.js.map +0 -1
- package/lib/tasks/TaskTracker.d.ts +0 -47
- package/lib/tasks/TaskTracker.js.map +0 -1
- package/lib/tasks/builder.d.ts +0 -72
- package/lib/tasks/builder.js.map +0 -1
- package/lib/tasks/constants.d.ts +0 -31
- package/lib/tasks/constants.js.map +0 -1
- package/lib/tasks/decorators.d.ts +0 -4
- package/lib/tasks/decorators.js.map +0 -1
- package/lib/tasks/index.d.ts +0 -22
- package/lib/tasks/index.js.map +0 -1
- package/lib/tasks/logging.d.ts +0 -31
- package/lib/tasks/logging.js.map +0 -1
- package/lib/tasks/models/TaskBackoffModel.d.ts +0 -9
- package/lib/tasks/models/TaskBackoffModel.js.map +0 -1
- package/lib/tasks/models/TaskErrorModel.d.ts +0 -8
- package/lib/tasks/models/TaskErrorModel.js.map +0 -1
- package/lib/tasks/models/TaskEventModel.d.ts +0 -11
- package/lib/tasks/models/TaskEventModel.js.map +0 -1
- package/lib/tasks/models/TaskIOSerializer.d.ts +0 -33
- package/lib/tasks/models/TaskIOSerializer.js.map +0 -1
- package/lib/tasks/models/TaskLogEntryModel.d.ts +0 -10
- package/lib/tasks/models/TaskLogEntryModel.js.map +0 -1
- package/lib/tasks/models/TaskModel.d.ts +0 -43
- package/lib/tasks/models/TaskModel.js.map +0 -1
- package/lib/tasks/models/TaskStepResultModel.d.ts +0 -9
- package/lib/tasks/models/TaskStepResultModel.js.map +0 -1
- package/lib/tasks/models/TaskStepSpecModel.d.ts +0 -9
- package/lib/tasks/models/TaskStepSpecModel.js.map +0 -1
- package/lib/tasks/models/index.d.ts +0 -8
- package/lib/tasks/models/index.js.map +0 -1
- package/lib/tasks/types.d.ts +0 -71
- package/lib/tasks/utils.d.ts +0 -5
- package/lib/tasks/utils.js.map +0 -1
- package/lib/utils/ContextualLoggedClass.d.ts +0 -37
- package/lib/utils/ContextualLoggedClass.js.map +0 -1
- package/lib/utils/decorators.d.ts +0 -27
- package/lib/utils/decorators.js.map +0 -1
- package/lib/utils/errors.d.ts +0 -56
- package/lib/utils/errors.js.map +0 -1
- package/lib/utils/index.d.ts +0 -11
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/throttling.d.ts +0 -9
- package/lib/utils/throttling.js.map +0 -1
- package/lib/utils/types.d.ts +0 -23
- package/lib/utils/types.js.map +0 -1
- package/lib/utils/utils.d.ts +0 -22
- package/lib/utils/utils.js.map +0 -1
- package/lib/workers/TaskEngine.d.ts +0 -40
- package/lib/workers/TaskEngine.js.map +0 -1
- package/lib/workers/WorkThreadEnvironment.d.ts +0 -35
- package/lib/workers/WorkThreadEnvironment.js.map +0 -1
- package/lib/workers/index.d.ts +0 -4
- package/lib/workers/index.js.map +0 -1
- package/lib/workers/messages.d.ts +0 -69
- package/lib/workers/types.d.ts +0 -41
- package/lib/workers/types.js.map +0 -1
- package/lib/workers/workerThread.d.ts +0 -1
- package/lib/workers/workerThread.js.map +0 -1
- /package/lib/{auth → cjs/auth}/constants.cjs +0 -0
- /package/lib/{auth → cjs/auth}/decorators.cjs +0 -0
- /package/lib/{auth → cjs/auth}/index.cjs +0 -0
- /package/lib/{fs → cjs/fs}/FilesystemAdapter.cjs +0 -0
- /package/lib/{fs → cjs/fs}/FsDispatch.cjs +0 -0
- /package/lib/{fs → cjs/fs}/helpers.cjs +0 -0
- /package/lib/{fs → cjs/fs}/index.cjs +0 -0
- /package/lib/{fs → cjs/fs}/indexStore.cjs +0 -0
- /package/lib/{fs → cjs/fs}/locks/FilesystemLock.cjs +0 -0
- /package/lib/{fs → cjs/fs}/locks/FilesystemMultiLock.cjs +0 -0
- /package/lib/{fs → cjs/fs}/types.cjs +0 -0
- /package/lib/{identity → cjs/identity}/decorators.cjs +0 -0
- /package/lib/{identity → cjs/identity}/index.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/ContextuallyLogged.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/ErrorParser.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/Executor.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/Observable.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/Observer.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/Paginatable.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/Queriable.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/RawExecutor.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/SequenceOptions.cjs +0 -0
- /package/lib/{interfaces → cjs/interfaces}/index.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/Migration.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/MigrationService.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/MigrationTaskBuilder.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/MigrationTasks.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/MigrationVersioning.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/SemverMigrationVersioning.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/StandardMigrationVersioning.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/constants.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/decorators.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/index.cjs +0 -0
- /package/lib/{migrations → cjs/migrations}/types.cjs +0 -0
- /package/lib/{model → cjs/model}/BaseModel.cjs +0 -0
- /package/lib/{model → cjs/model}/SequenceModel.cjs +0 -0
- /package/lib/{model → cjs/model}/construction.cjs +0 -0
- /package/lib/{model → cjs/model}/decorators.cjs +0 -0
- /package/lib/{model → cjs/model}/index.cjs +0 -0
- /package/lib/{model → cjs/model}/indexing.cjs +0 -0
- /package/lib/{model → cjs/model}/types.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/Metadata.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/Model.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/ModelBuilder.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/index.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/injectables.cjs +0 -0
- /package/lib/{overrides → cjs/overrides}/overrides.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/Context.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/ContextLock.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/Dispatch.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/ObserverHandler.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/Sequence.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/constants.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/decorators.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/errors.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/event-filters.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/generators.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/index.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/transactions.cjs +0 -0
- /package/lib/{persistence → cjs/persistence}/types.cjs +0 -0
- /package/lib/{query → cjs/query}/Condition.cjs +0 -0
- /package/lib/{query → cjs/query}/MethodQueryBuilder.cjs +0 -0
- /package/lib/{query → cjs/query}/Paginator.cjs +0 -0
- /package/lib/{query → cjs/query}/Statement.cjs +0 -0
- /package/lib/{query → cjs/query}/constants.cjs +0 -0
- /package/lib/{query → cjs/query}/decorators.cjs +0 -0
- /package/lib/{query → cjs/query}/errors.cjs +0 -0
- /package/lib/{query → cjs/query}/index.cjs +0 -0
- /package/lib/{query → cjs/query}/options.cjs +0 -0
- /package/lib/{query → cjs/query}/selectors.cjs +0 -0
- /package/lib/{query → cjs/query}/types.cjs +0 -0
- /package/lib/{query → cjs/query}/utils.cjs +0 -0
- /package/lib/{ram → cjs/ram}/RamAdapter.cjs +0 -0
- /package/lib/{ram → cjs/ram}/RamPaginator.cjs +0 -0
- /package/lib/{ram → cjs/ram}/RamStatement.cjs +0 -0
- /package/lib/{ram → cjs/ram}/constants.cjs +0 -0
- /package/lib/{ram → cjs/ram}/handlers.cjs +0 -0
- /package/lib/{ram → cjs/ram}/index.cjs +0 -0
- /package/lib/{ram → cjs/ram}/types.cjs +0 -0
- /package/lib/{repository → cjs/repository}/constants.cjs +0 -0
- /package/lib/{repository → cjs/repository}/decorators.cjs +0 -0
- /package/lib/{repository → cjs/repository}/errors.cjs +0 -0
- /package/lib/{repository → cjs/repository}/index.cjs +0 -0
- /package/lib/{repository → cjs/repository}/injectables.cjs +0 -0
- /package/lib/{repository → cjs/repository}/types.cjs +0 -0
- /package/lib/{repository → cjs/repository}/utils.cjs +0 -0
- /package/lib/{services → cjs/services}/ModelService.cjs +0 -0
- /package/lib/{services → cjs/services}/PersistenceService.cjs +0 -0
- /package/lib/{services → cjs/services}/index.cjs +0 -0
- /package/lib/{services → cjs/services}/services.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/CleanUpTask.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskContext.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskEngine.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskErrors.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskEventBus.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskEventService.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskHandler.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskHandlerRegistry.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskService.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskStateChangeError.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/TaskTracker.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/builder.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/constants.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/decorators.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/index.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/logging.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskBackoffModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskErrorModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskEventModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskIOSerializer.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskLogEntryModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskStepResultModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/TaskStepSpecModel.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/models/index.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/types.cjs +0 -0
- /package/lib/{tasks → cjs/tasks}/utils.cjs +0 -0
- /package/lib/{utils → cjs/utils}/ContextualLoggedClass.cjs +0 -0
- /package/lib/{utils → cjs/utils}/decorators.cjs +0 -0
- /package/lib/{utils → cjs/utils}/errors.cjs +0 -0
- /package/lib/{utils → cjs/utils}/index.cjs +0 -0
- /package/lib/{utils → cjs/utils}/throttling.cjs +0 -0
- /package/lib/{utils → cjs/utils}/types.cjs +0 -0
- /package/lib/{utils → cjs/utils}/utils.cjs +0 -0
- /package/lib/{workers → cjs/workers}/TaskEngine.cjs +0 -0
- /package/lib/{workers → cjs/workers}/WorkThreadEnvironment.cjs +0 -0
- /package/lib/{workers → cjs/workers}/index.cjs +0 -0
- /package/lib/{workers → cjs/workers}/messages.cjs +0 -0
- /package/lib/{workers → cjs/workers}/types.cjs +0 -0
- /package/lib/{workers → cjs/workers}/workerThread.cjs +0 -0
- /package/lib/{auth → types/auth}/constants.d.ts +0 -0
- /package/lib/{auth → types/auth}/decorators.d.ts +0 -0
- /package/lib/{auth → types/auth}/index.d.ts +0 -0
- /package/lib/{esm → types}/fs/FilesystemAdapter.d.ts +0 -0
- /package/lib/{esm → types}/fs/FsDispatch.d.ts +0 -0
- /package/lib/{esm → types}/fs/helpers.d.ts +0 -0
- /package/lib/{esm → types}/fs/index.d.ts +0 -0
- /package/lib/{esm → types}/fs/indexStore.d.ts +0 -0
- /package/lib/{esm → types}/fs/locks/FilesystemLock.d.ts +0 -0
- /package/lib/{esm → types}/fs/locks/FilesystemMultiLock.d.ts +0 -0
- /package/lib/{esm → types}/fs/types.d.ts +0 -0
- /package/lib/{esm → types}/identity/decorators.d.ts +0 -0
- /package/lib/{esm → types}/identity/index.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/ContextuallyLogged.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/ErrorParser.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/Executor.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/Observable.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/Observer.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/Paginatable.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/Queriable.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/RawExecutor.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/SequenceOptions.d.ts +0 -0
- /package/lib/{esm → types}/interfaces/index.d.ts +0 -0
- /package/lib/{esm → types}/migrations/Migration.d.ts +0 -0
- /package/lib/{esm → types}/migrations/MigrationService.d.ts +0 -0
- /package/lib/{esm → types}/migrations/MigrationTaskBuilder.d.ts +0 -0
- /package/lib/{esm → types}/migrations/MigrationTasks.d.ts +0 -0
- /package/lib/{esm → types}/migrations/MigrationVersioning.d.ts +0 -0
- /package/lib/{esm → types}/migrations/SemverMigrationVersioning.d.ts +0 -0
- /package/lib/{esm → types}/migrations/StandardMigrationVersioning.d.ts +0 -0
- /package/lib/{esm → types}/migrations/constants.d.ts +0 -0
- /package/lib/{esm → types}/migrations/decorators.d.ts +0 -0
- /package/lib/{esm → types}/migrations/index.d.ts +0 -0
- /package/lib/{esm → types}/migrations/types.d.ts +0 -0
- /package/lib/{esm → types}/model/BaseModel.d.ts +0 -0
- /package/lib/{esm → types}/model/SequenceModel.d.ts +0 -0
- /package/lib/{esm → types}/model/construction.d.ts +0 -0
- /package/lib/{esm → types}/model/decorators.d.ts +0 -0
- /package/lib/{esm → types}/model/index.d.ts +0 -0
- /package/lib/{esm → types}/model/indexing.d.ts +0 -0
- /package/lib/{esm → types}/model/types.d.ts +0 -0
- /package/lib/{esm → types}/overrides/Metadata.d.ts +0 -0
- /package/lib/{esm → types}/overrides/Model.d.ts +0 -0
- /package/lib/{esm → types}/overrides/ModelBuilder.d.ts +0 -0
- /package/lib/{esm → types}/overrides/index.d.ts +0 -0
- /package/lib/{esm → types}/overrides/injectables.d.ts +0 -0
- /package/lib/{esm → types}/overrides/overrides.d.ts +0 -0
- /package/lib/{esm → types}/persistence/Adapter.d.ts +0 -0
- /package/lib/{esm → types}/persistence/Context.d.ts +0 -0
- /package/lib/{esm → types}/persistence/ContextLock.d.ts +0 -0
- /package/lib/{esm → types}/persistence/Dispatch.d.ts +0 -0
- /package/lib/{esm → types}/persistence/ObserverHandler.d.ts +0 -0
- /package/lib/{esm → types}/persistence/Sequence.d.ts +0 -0
- /package/lib/{esm → types}/persistence/constants.d.ts +0 -0
- /package/lib/{esm → types}/persistence/decorators.d.ts +0 -0
- /package/lib/{esm → types}/persistence/errors.d.ts +0 -0
- /package/lib/{esm → types}/persistence/event-filters.d.ts +0 -0
- /package/lib/{esm → types}/persistence/generators.d.ts +0 -0
- /package/lib/{esm → types}/persistence/index.d.ts +0 -0
- /package/lib/{esm → types}/persistence/types.d.ts +0 -0
- /package/lib/{esm → types}/query/Condition.d.ts +0 -0
- /package/lib/{esm → types}/query/MethodQueryBuilder.d.ts +0 -0
- /package/lib/{esm → types}/query/Paginator.d.ts +0 -0
- /package/lib/{esm → types}/query/Statement.d.ts +0 -0
- /package/lib/{esm → types}/query/constants.d.ts +0 -0
- /package/lib/{esm → types}/query/decorators.d.ts +0 -0
- /package/lib/{esm → types}/query/errors.d.ts +0 -0
- /package/lib/{esm → types}/query/index.d.ts +0 -0
- /package/lib/{esm → types}/query/options.d.ts +0 -0
- /package/lib/{esm → types}/query/selectors.d.ts +0 -0
- /package/lib/{esm → types}/query/types.d.ts +0 -0
- /package/lib/{esm → types}/query/utils.d.ts +0 -0
- /package/lib/{esm → types}/ram/RamAdapter.d.ts +0 -0
- /package/lib/{esm → types}/ram/RamPaginator.d.ts +0 -0
- /package/lib/{esm → types}/ram/RamStatement.d.ts +0 -0
- /package/lib/{esm → types}/ram/constants.d.ts +0 -0
- /package/lib/{esm → types}/ram/handlers.d.ts +0 -0
- /package/lib/{esm → types}/ram/index.d.ts +0 -0
- /package/lib/{esm → types}/ram/types.d.ts +0 -0
- /package/lib/{esm → types}/repository/constants.d.ts +0 -0
- /package/lib/{esm → types}/repository/decorators.d.ts +0 -0
- /package/lib/{esm → types}/repository/errors.d.ts +0 -0
- /package/lib/{esm → types}/repository/index.d.ts +0 -0
- /package/lib/{esm → types}/repository/injectables.d.ts +0 -0
- /package/lib/{esm → types}/repository/types.d.ts +0 -0
- /package/lib/{esm → types}/repository/utils.d.ts +0 -0
- /package/lib/{esm → types}/services/PersistenceService.d.ts +0 -0
- /package/lib/{esm → types}/services/index.d.ts +0 -0
- /package/lib/{esm → types}/services/services.d.ts +0 -0
- /package/lib/{esm → types}/tasks/CleanUpTask.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskContext.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskEngine.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskErrors.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskEventBus.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskEventService.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskHandler.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskHandlerRegistry.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskStateChangeError.d.ts +0 -0
- /package/lib/{esm → types}/tasks/TaskTracker.d.ts +0 -0
- /package/lib/{esm → types}/tasks/builder.d.ts +0 -0
- /package/lib/{esm → types}/tasks/constants.d.ts +0 -0
- /package/lib/{esm → types}/tasks/decorators.d.ts +0 -0
- /package/lib/{esm → types}/tasks/index.d.ts +0 -0
- /package/lib/{esm → types}/tasks/logging.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskBackoffModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskErrorModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskEventModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskIOSerializer.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskLogEntryModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskStepResultModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/TaskStepSpecModel.d.ts +0 -0
- /package/lib/{esm → types}/tasks/models/index.d.ts +0 -0
- /package/lib/{esm → types}/tasks/types.d.ts +0 -0
- /package/lib/{esm → types}/tasks/utils.d.ts +0 -0
- /package/lib/{esm → types}/utils/ContextualLoggedClass.d.ts +0 -0
- /package/lib/{esm → types}/utils/decorators.d.ts +0 -0
- /package/lib/{esm → types}/utils/errors.d.ts +0 -0
- /package/lib/{esm → types}/utils/index.d.ts +0 -0
- /package/lib/{esm → types}/utils/throttling.d.ts +0 -0
- /package/lib/{esm → types}/utils/types.d.ts +0 -0
- /package/lib/{esm → types}/utils/utils.d.ts +0 -0
- /package/lib/{esm → types}/workers/TaskEngine.d.ts +0 -0
- /package/lib/{esm → types}/workers/WorkThreadEnvironment.d.ts +0 -0
- /package/lib/{esm → types}/workers/index.d.ts +0 -0
- /package/lib/{esm → types}/workers/messages.d.ts +0 -0
- /package/lib/{esm → types}/workers/types.d.ts +0 -0
- /package/lib/{esm → types}/workers/workerThread.d.ts +0 -0
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { CascadeMetadata } from "../repository/types";
|
|
4
|
-
import { Model } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import type { Repo } from "../repository/Repository";
|
|
6
|
-
import { JoinColumnOptions, JoinTableMultipleColumnsOptions, JoinTableOptions, RelationsMetadata } from "./types";
|
|
7
|
-
import { ContextOf } from "../persistence/types";
|
|
8
|
-
/**
|
|
9
|
-
* @description Specifies the database table name for a model
|
|
10
|
-
* @summary Decorator that sets the table name for a model class in the database
|
|
11
|
-
* @param {string} opts - The name of the table in the database
|
|
12
|
-
* @return {Function} A decorator function that can be applied to a class
|
|
13
|
-
* @function table
|
|
14
|
-
* @category Class Decorators
|
|
15
|
-
*/
|
|
16
|
-
export declare function table<OPTS = string>(opts?: OPTS): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
17
|
-
/**
|
|
18
|
-
* @description Specifies the database column name for a model property
|
|
19
|
-
* @summary Decorator that maps a model property to a specific column name in the database
|
|
20
|
-
* @param {string} columnName - The name of the column in the database
|
|
21
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
22
|
-
* @function column
|
|
23
|
-
* @category Property Decorators
|
|
24
|
-
*/
|
|
25
|
-
export declare function column<OPTS = string>(columnName?: OPTS): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
26
|
-
/**
|
|
27
|
-
* @description Enforces uniqueness constraint during model creation and update
|
|
28
|
-
* @summary Internal function used by the unique decorator to check if a property value already exists in the database
|
|
29
|
-
* @template M - The model type extending Model
|
|
30
|
-
* @template R - The repository type extending Repo<M, F, C>
|
|
31
|
-
* @template V - The metadata type
|
|
32
|
-
* @template F - The repository flags type
|
|
33
|
-
* @template C - The context type extending Context<F>
|
|
34
|
-
* @param {R} this - The repository instance
|
|
35
|
-
* @param {Context<F>} context - The context for the operation
|
|
36
|
-
* @param {V} data - The metadata for the property
|
|
37
|
-
* @param key - The property key to check for uniqueness
|
|
38
|
-
* @param {M} model - The model instance being created or updated
|
|
39
|
-
* @return {Promise<void>} A promise that resolves when the check is complete or rejects with a ConflictError
|
|
40
|
-
* @function uniqueOnCreateUpdate
|
|
41
|
-
* @memberOf module:core
|
|
42
|
-
*/
|
|
43
|
-
export declare function uniqueOnCreateUpdate<M extends Model, R extends Repo<M>>(this: R, context: ContextOf<R>, data: object, key: keyof M, model: M): Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* @description Tags a property as unique
|
|
46
|
-
* @summary Decorator that ensures a property value is unique across all instances of a model in the database
|
|
47
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
48
|
-
* @function unique
|
|
49
|
-
* @category Property Decorators
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* class User extends BaseModel {
|
|
53
|
-
* @unique()
|
|
54
|
-
* @required()
|
|
55
|
-
* username!: string;
|
|
56
|
-
* }
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export declare function unique(): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
60
|
-
/**
|
|
61
|
-
* @description Handles user identification for ownership tracking
|
|
62
|
-
* @summary Internal function used by the createdBy and updatedBy decorators to set ownership information
|
|
63
|
-
* @template M - The model type extending Model
|
|
64
|
-
* @template R - The repository type extending Repo<M, F, C>
|
|
65
|
-
* @template V - The relations metadata type extending RelationsMetadata
|
|
66
|
-
* @template F - The repository flags type
|
|
67
|
-
* @template C - The context type extending Context<F>
|
|
68
|
-
* @param {R} this - The repository instance
|
|
69
|
-
* @param {Context<F>} context - The context for the operation
|
|
70
|
-
* @param {V} data - The metadata for the property
|
|
71
|
-
* @param key - The property key to store the user identifier
|
|
72
|
-
* @param {M} model - The model instance being created or updated
|
|
73
|
-
* @return {Promise<void>} A promise that rejects with an AuthorizationError if user identification is not supported
|
|
74
|
-
* @function createdByOnCreateUpdate
|
|
75
|
-
* @memberOf module:core
|
|
76
|
-
*/
|
|
77
|
-
export declare function createdByOnCreateUpdate<M extends Model, R extends Repo<M>>(this: R, context: ContextOf<R>, data: RelationsMetadata, key: keyof M, model: M): Promise<void>;
|
|
78
|
-
/**
|
|
79
|
-
* @description Tracks the creator of a model instance
|
|
80
|
-
* @summary Decorator that marks a property to store the identifier of the user who created the model instance
|
|
81
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
82
|
-
* @function createdBy
|
|
83
|
-
* @category Property Decorators
|
|
84
|
-
* @example
|
|
85
|
-
* ```typescript
|
|
86
|
-
* class Document extends BaseModel {
|
|
87
|
-
* @createdBy()
|
|
88
|
-
* creator!: string;
|
|
89
|
-
* }
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export declare function createdBy(): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
93
|
-
/**
|
|
94
|
-
* @description Tracks the last updater of a model instance
|
|
95
|
-
* @summary Decorator that marks a property to store the identifier of the user who last updated the model instance
|
|
96
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
97
|
-
* @function updatedBy
|
|
98
|
-
* @category Property Decorators
|
|
99
|
-
* @example
|
|
100
|
-
* ```typescript
|
|
101
|
-
* class Document extends BaseModel {
|
|
102
|
-
* @updatedBy()
|
|
103
|
-
* lastEditor!: string;
|
|
104
|
-
* }
|
|
105
|
-
* ```
|
|
106
|
-
*/
|
|
107
|
-
export declare function updatedBy(): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
108
|
-
export declare function createdAt(): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
109
|
-
export declare function updatedAt(): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
110
|
-
export declare function persistentVersion(): (target: any, propertyKey?: any) => any;
|
|
111
|
-
export declare function version(persistent?: boolean): (target: any, propertyKey?: any) => any;
|
|
112
|
-
export declare function getPkTypes(model: Constructor | (() => Constructor)): (() => any)[];
|
|
113
|
-
/**
|
|
114
|
-
* @description Defines a one-to-one relationship between models
|
|
115
|
-
* @summary Decorator that establishes a one-to-one relationship between the current model and another model
|
|
116
|
-
* @template M - The related model type extending Model
|
|
117
|
-
* @param {Constructor<M>} clazz - The constructor of the related model class
|
|
118
|
-
* @param {CascadeMetadata} [cascadeOptions=DefaultCascade] - Options for cascading operations (create, update, delete)
|
|
119
|
-
* @param {boolean} [populate=true] - If true, automatically populates the relationship when the model is retrieved
|
|
120
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
121
|
-
* @function oneToOne
|
|
122
|
-
* @category Property Decorators
|
|
123
|
-
* @example
|
|
124
|
-
* ```typescript
|
|
125
|
-
* class User extends BaseModel {
|
|
126
|
-
* @oneToOne(Profile)
|
|
127
|
-
* profile!: string | Profile;
|
|
128
|
-
* }
|
|
129
|
-
*
|
|
130
|
-
* class Profile extends BaseModel {
|
|
131
|
-
* @required()
|
|
132
|
-
* bio!: string;
|
|
133
|
-
* }
|
|
134
|
-
* ```
|
|
135
|
-
* @see oneToMany
|
|
136
|
-
* @see manyToOne
|
|
137
|
-
*/
|
|
138
|
-
export declare function oneToOne<M extends Model>(clazz: Constructor<M> | (() => Constructor<M>), cascadeOptions?: CascadeMetadata, populate?: boolean, joinColumnOpts?: JoinColumnOptions, fk?: string): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
139
|
-
/**
|
|
140
|
-
* @description Defines a one-to-many relationship between models
|
|
141
|
-
* @summary Decorator that establishes a one-to-many relationship between the current model and multiple instances of another model
|
|
142
|
-
* @template M - The related model type extending Model
|
|
143
|
-
* @param {Constructor<M>} clazz - The constructor of the related model class
|
|
144
|
-
* @param {CascadeMetadata} [cascadeOptions=DefaultCascade] - Options for cascading operations (create, update, delete)
|
|
145
|
-
* @param {boolean} [populate=true] - If true, automatically populates the relationship when the model is retrieved
|
|
146
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
147
|
-
* @function oneToMany
|
|
148
|
-
* @category Property Decorators
|
|
149
|
-
* @example
|
|
150
|
-
* ```typescript
|
|
151
|
-
* class Author extends BaseModel {
|
|
152
|
-
* @required()
|
|
153
|
-
* name!: string;
|
|
154
|
-
*
|
|
155
|
-
* @oneToMany(Book)
|
|
156
|
-
* books!: string[] | Book[];
|
|
157
|
-
* }
|
|
158
|
-
*
|
|
159
|
-
* class Book extends BaseModel {
|
|
160
|
-
* @required()
|
|
161
|
-
* title!: string;
|
|
162
|
-
* }
|
|
163
|
-
* ```
|
|
164
|
-
* @see oneToOne
|
|
165
|
-
* @see manyToOne
|
|
166
|
-
*/
|
|
167
|
-
export declare function oneToMany<M extends Model>(clazz: Constructor<M> | (() => Constructor<M>), cascadeOptions?: CascadeMetadata, populate?: boolean, joinTableOpts?: JoinTableOptions | JoinTableMultipleColumnsOptions, fk?: string): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
168
|
-
/**
|
|
169
|
-
* @description Defines a many-to-one relationship between models
|
|
170
|
-
* @summary Decorator that establishes a many-to-one relationship between multiple instances of the current model and another model
|
|
171
|
-
* @template M - The related model type extending Model
|
|
172
|
-
* @param {Constructor<M>} clazz - The constructor of the related model class
|
|
173
|
-
* @param {CascadeMetadata} [cascadeOptions=DefaultCascade] - Options for cascading operations (create, update, delete)
|
|
174
|
-
* @param {boolean} [populate=true] - If true, automatically populates the relationship when the model is retrieved
|
|
175
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
176
|
-
* @function manyToOne
|
|
177
|
-
* @category Property Decorators
|
|
178
|
-
* @example
|
|
179
|
-
* ```typescript
|
|
180
|
-
* class Book extends BaseModel {
|
|
181
|
-
* @required()
|
|
182
|
-
* title!: string;
|
|
183
|
-
*
|
|
184
|
-
* @manyToOne(Author)
|
|
185
|
-
* author!: string | Author;
|
|
186
|
-
* }
|
|
187
|
-
*
|
|
188
|
-
* class Author extends BaseModel {
|
|
189
|
-
* @required()
|
|
190
|
-
* name!: string;
|
|
191
|
-
* }
|
|
192
|
-
* ```
|
|
193
|
-
* @see oneToMany
|
|
194
|
-
* @see oneToOne
|
|
195
|
-
*/
|
|
196
|
-
export declare function manyToOne<M extends Model>(clazz: Constructor<M> | (() => Constructor<M>), cascadeOptions?: CascadeMetadata, populate?: boolean, joinTableOpts?: JoinTableOptions | JoinTableMultipleColumnsOptions, fk?: string): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
197
|
-
/**
|
|
198
|
-
* @description Defines a many-to-one relationship between models
|
|
199
|
-
* @summary Decorator that establishes a many-to-one relationship between multiple instances of the current model and another model
|
|
200
|
-
* @template M - The related model type extending Model
|
|
201
|
-
* @param {Constructor<M>} clazz - The constructor of the related model class
|
|
202
|
-
* @param {CascadeMetadata} [cascadeOptions=DefaultCascade] - Options for cascading operations (create, update, delete)
|
|
203
|
-
* @param {boolean} [populate=true] - If true, automatically populates the relationship when the model is retrieved
|
|
204
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
205
|
-
* @function manyToOne
|
|
206
|
-
* @category Property Decorators
|
|
207
|
-
* @example
|
|
208
|
-
* ```typescript
|
|
209
|
-
* class Book extends BaseModel {
|
|
210
|
-
* @required()
|
|
211
|
-
* title!: string;
|
|
212
|
-
*
|
|
213
|
-
* @manyToOne(Author)
|
|
214
|
-
* author!: string | Author;
|
|
215
|
-
* }
|
|
216
|
-
*
|
|
217
|
-
* class Author extends BaseModel {
|
|
218
|
-
* @required()
|
|
219
|
-
* name!: string;
|
|
220
|
-
* }
|
|
221
|
-
* ```
|
|
222
|
-
* @see oneToMany
|
|
223
|
-
* @see oneToOne
|
|
224
|
-
*/
|
|
225
|
-
export declare function manyToMany<M extends Model>(clazz: Constructor<M> | (() => Constructor<M>), cascadeOptions?: CascadeMetadata, populate?: boolean, joinTableOpts?: JoinTableOptions | JoinTableMultipleColumnsOptions, fk?: string): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
226
|
-
export declare function noValidateOn(...ops: OperationKeys[]): (target: any, propertyKey?: any) => void;
|
|
227
|
-
export declare function noValidateOnCreate(): (target: any, propertyKey?: any) => void;
|
|
228
|
-
export declare function noValidateOnUpdate(): (target: any, propertyKey?: any) => void;
|
|
229
|
-
export declare function noValidateOnCreateUpdate(): (target: any, propertyKey?: any) => void;
|
|
230
|
-
/**
|
|
231
|
-
* @description Specifies the model property as a relation
|
|
232
|
-
* @summary Decorator that specifies the model property as a relation in the database
|
|
233
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
234
|
-
* @function relation
|
|
235
|
-
* @category Property Decorators
|
|
236
|
-
*/
|
|
237
|
-
export declare function relation(relationKey: string, meta: RelationsMetadata): (target: any, propertyKey?: any, descriptor?: TypedPropertyDescriptor<any>) => any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/model/decorators.ts"],"names":[],"mappings":";;AA+DA,sBAmBC;AAUD,wBAcC;AAmBD,oDAeC;AAiBD,wBASC;AAmBD,0DAiBC;AAgBD,8BAiBC;AAgBD,8BAgBC;AAED,8BAEC;AAED,8BAEC;AA+GD,8CAeC;AAED,0BAGC;AAED,gCAeC;AA2BD,4BA0CC;AA8BD,8BA2CC;AA8BD,8BA2CC;AA8BD,gCA0CC;AAED,oCAeC;AAED,gDAEC;AAED,gDAEC;AAED,4DAEC;AASD,4BAmBC;AA/vBD,2DAaiC;AACjC,qDAU8B;AAC9B,8DAA2D;AAE3D,6DAAyD;AACzD,yEAA0E;AAE1E,wDAA+C;AAO/C,qDAawB;AACxB,kDAAqD;AAIrD;;;;;;;GAOG;AACH,SAAgB,KAAK,CAAgB,IAAW;IAC9C,OAAO,uBAAU,CAAC,GAAG,CAAC,2BAAe,CAAC,KAAK,CAAC;SACzC,MAAM,CAAC;QACN,SAAS,EAAE,SAAS,KAAK,CAAC,IAAU;YAClC,OAAO,SAAS,KAAK,CAAC,MAAW;gBAC/B,qBAAQ,CAAC,GAAG,CACV,2BAAe,CAAC,KAAK,EACrB,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,EACjC,MAAM,CACP,CAAC;gBACF,OAAO,IAAA,qBAAQ,EACb,2BAAe,CAAC,KAAK,EACrB,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAClC,CAAC,MAAM,CAAC,CAAC;YACZ,CAAC,CAAC;QACJ,CAAC;QACD,IAAI,EAAE,CAAC,IAAI,CAAC;KACb,CAAC;SACD,KAAK,EAAE,CAAC;AACb,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,MAAM,CAAgB,UAAiB;IACrD,OAAO,uBAA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,IAAI,CAAC,EAC7C,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE;gBACtB,GAAG,EAAE,WAAW;aACjB,CAAC,CACH,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACf,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,uBAAU,CAAC,GAAG,CAAC,2BAAe,CAAC,SAAS,CAAC;SAC7C,MAAM,CAAC;QACN,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC;KAC1B,CAAC;SACD,KAAK,EAAE,CAAC;AACb,CAAC"}
|
package/lib/model/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Exports for the model module.
|
|
3
|
-
* @summary This file exports all the necessary components for the model functionality, including the BaseModel, construction utilities, decorators, and more.
|
|
4
|
-
* @module core/model
|
|
5
|
-
*/
|
|
6
|
-
export * from "./BaseModel";
|
|
7
|
-
export * from "./construction";
|
|
8
|
-
export * from "./decorators";
|
|
9
|
-
export * from "./indexing";
|
|
10
|
-
export * from "./SequenceModel";
|
|
11
|
-
export * from "./types";
|
package/lib/model/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,kDAA4B;AAC5B,qDAA+B;AAC/B,mDAA6B;AAC7B,iDAA2B;AAC3B,sDAAgC;AAChC,8CAAwB"}
|
package/lib/model/indexing.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OrderDirection } from "../repository/constants";
|
|
2
|
-
import { propMetadata } from "@decaf-ts/decoration";
|
|
3
|
-
/**
|
|
4
|
-
* @description Creates an index on a model property for improved query performance
|
|
5
|
-
* @summary Decorator that marks a property to be indexed in the database, optionally with specific directions and compositions
|
|
6
|
-
* @param {OrderDirection[]} [directions] - Optional array of sort directions for the index
|
|
7
|
-
* @param {string[]} [compositions] - Optional array of property names to create a composite index
|
|
8
|
-
* @return {Function} A decorator function that can be applied to a class property
|
|
9
|
-
* @function index
|
|
10
|
-
* @category Property Decorators
|
|
11
|
-
*/
|
|
12
|
-
export declare function index(): ReturnType<typeof propMetadata>;
|
|
13
|
-
export declare function index(name: string): ReturnType<typeof propMetadata>;
|
|
14
|
-
export declare function index(directions: OrderDirection[]): ReturnType<typeof propMetadata>;
|
|
15
|
-
export declare function index(directions: OrderDirection[], name: string): ReturnType<typeof propMetadata>;
|
|
16
|
-
export declare function index(directions: OrderDirection[], compositions: string[]): ReturnType<typeof propMetadata>;
|
|
17
|
-
export declare function index(directions: readonly OrderDirection[], compositions: readonly string[]): ReturnType<typeof propMetadata>;
|
|
18
|
-
export declare function index(directions: readonly OrderDirection[], compositions: readonly string[], name: string): ReturnType<typeof propMetadata>;
|
|
19
|
-
export declare function index(compositions: string[]): ReturnType<typeof propMetadata>;
|
|
20
|
-
export declare function index(compositions: string[], name: string): ReturnType<typeof propMetadata>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indexing.js","sourceRoot":"","sources":["../../src/model/indexing.ts"],"names":[],"mappings":";;AAyCA,sBAmDC;AA3FD,6DAAyD;AACzD,8DAA2D;AAC3D,qDAAgE;AAChE,qDAAgD;AAqChD,SAAgB,KAAK,CACnB,UAAmE,EACnE,YAAyC,EACzC,IAAa;IAEb,SAAS,KAAK,CACZ,UAAiD,EACjD,YAAgC,EAChC,IAAa;QAEb,OAAO,SAAS,KAAK,CAAC,GAAQ,EAAE,IAAS;YACvC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;gBACnC,IAAI,GAAG,UAAU,CAAC;gBAClB,UAAU,GAAG,SAAS,CAAC;gBACvB,YAAY,GAAG,SAAS,CAAC;YAC3B,CAAC;YACD,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;gBACrC,IAAI,GAAG,YAAY,CAAC;gBACpB,YAAY,GAAG,SAAS,CAAC;YAC3B,CAAC;YACD,IAAI,CAAC,YAAY,IAAI,UAAU,EAAE,CAAC;gBAChC,IACE,UAAU,CAAC,IAAI,CACb,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,0BAAc,CAAC,GAAG,EAAE,0BAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAQ,CAAC,CACpE,EACD,CAAC;oBACD,YAAY,GAAG,UAAsB,CAAC;oBACtC,UAAU,GAAG,SAAS,CAAC;gBACzB,CAAC;YACH,CAAC;YAED,OAAO,IAAA,yBAAY,EACjB,qBAAQ,CAAC,GAAG,CACV,GAAG,2BAAe,CAAC,KAAK,GAAG,YAAY,IAAI,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACrG,IAAI,CACL,EACD;gBACE,UAAU,EAAE,UAAU;gBACtB,YAAY,EAAE,YAAY;gBAC1B,IAAI,EAAE,IAAI;aACM,CACnB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACf,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,uBAAU,CAAC,GAAG,CAAC,2BAAe,CAAC,KAAK,CAAC;SACzC,MAAM,CAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC;KACvC,CAAC;SACD,KAAK,EAAE,CAAC;AACb,CAAC"}
|
package/lib/model/types.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { CascadeMetadata } from "../repository";
|
|
3
|
-
import { PersistenceKeys } from "../persistence/constants";
|
|
4
|
-
/**
|
|
5
|
-
* Describes join column options.
|
|
6
|
-
*/
|
|
7
|
-
export type JoinColumnOptions = {
|
|
8
|
-
/**
|
|
9
|
-
* Name of the column.
|
|
10
|
-
*/
|
|
11
|
-
name?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Name of the column in the entity to which this column is referenced.
|
|
14
|
-
*/
|
|
15
|
-
referencedColumnName?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Name of the foreign key constraint.
|
|
18
|
-
*/
|
|
19
|
-
foreignKeyConstraintName?: string;
|
|
20
|
-
};
|
|
21
|
-
export type JoinTableOptions = {
|
|
22
|
-
/**
|
|
23
|
-
* Name of the table that will be created to store values of the both tables (join table).
|
|
24
|
-
* By default is auto generated.
|
|
25
|
-
*/
|
|
26
|
-
name?: string;
|
|
27
|
-
/**
|
|
28
|
-
* First column of the join table.
|
|
29
|
-
*/
|
|
30
|
-
joinColumn?: JoinColumnOptions;
|
|
31
|
-
/**
|
|
32
|
-
* Second (inverse) column of the join table.
|
|
33
|
-
*/
|
|
34
|
-
inverseJoinColumn?: JoinColumnOptions;
|
|
35
|
-
};
|
|
36
|
-
export type JoinTableMultipleColumnsOptions = {
|
|
37
|
-
/**
|
|
38
|
-
* Name of the table that will be created to store values of the both tables (join table).
|
|
39
|
-
* By default is auto generated.
|
|
40
|
-
*/
|
|
41
|
-
name?: string;
|
|
42
|
-
/**
|
|
43
|
-
* First column of the join table.
|
|
44
|
-
*/
|
|
45
|
-
joinColumns?: JoinColumnOptions[];
|
|
46
|
-
/**
|
|
47
|
-
* Second (inverse) column of the join table.
|
|
48
|
-
*/
|
|
49
|
-
inverseJoinColumns?: JoinColumnOptions[];
|
|
50
|
-
};
|
|
51
|
-
export type RelationsMetadata = {
|
|
52
|
-
class: Constructor<any> | (() => Constructor<any>);
|
|
53
|
-
cascade: CascadeMetadata;
|
|
54
|
-
populate: boolean;
|
|
55
|
-
name?: string;
|
|
56
|
-
joinTable?: JoinTableOptions;
|
|
57
|
-
};
|
|
58
|
-
export type ExtendedRelationsMetadata = RelationsMetadata & {
|
|
59
|
-
key: PersistenceKeys.ONE_TO_ONE | PersistenceKeys.ONE_TO_MANY | PersistenceKeys.MANY_TO_ONE | PersistenceKeys.MANY_TO_MANY;
|
|
60
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "@decaf-ts/decoration";
|
|
2
|
-
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
4
|
-
import type { Adapter } from "../persistence";
|
|
5
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import type { ExtendedRelationsMetadata } from "../model";
|
|
7
|
-
import { Context } from "../persistence/Context";
|
|
8
|
-
import type { AdapterFlags } from "../persistence/types";
|
|
9
|
-
import { TaskHandler } from "../tasks/TaskHandler";
|
|
10
|
-
import { Migration } from "../migrations/types";
|
|
11
|
-
declare module "@decaf-ts/decoration" {
|
|
12
|
-
namespace Metadata {
|
|
13
|
-
function tasks(): Record<string, Constructor<TaskHandler<any, any>>> | undefined;
|
|
14
|
-
function taskHandlerFor(type: string): Constructor<TaskHandler<any, any>> | undefined;
|
|
15
|
-
function validationExceptions<M extends Model>(model: Constructor<M>, op: OperationKeys): string[];
|
|
16
|
-
function migrationsFor<A extends Adapter<CONF, CONN, QUERY, CONTEXT>, CONF, CONN, QUERY, FLAGS extends AdapterFlags = AdapterFlags, CONTEXT extends Context<FLAGS> = Context<FLAGS>>(adapter?: A): Constructor<Migration<any, A>>[];
|
|
17
|
-
function migrations(): [string, Constructor<Migration<any, any>>][];
|
|
18
|
-
function relations<M extends Model>(m: Constructor<M>): string[] | undefined;
|
|
19
|
-
function relations<M extends Model>(m: Constructor<M>, prop: keyof M): ExtendedRelationsMetadata;
|
|
20
|
-
function relations<M extends Model>(m: Constructor<M>, prop?: keyof M): string[] | ExtendedRelationsMetadata | undefined;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Metadata.js","sourceRoot":"","sources":["../../src/overrides/Metadata.ts"],"names":[],"mappings":";;AAAA,gCAA8B"}
|
package/lib/overrides/Model.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
3
|
-
import "@decaf-ts/decorator-validation";
|
|
4
|
-
import { ModelErrorDefinition } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { SequenceOptions } from "../interfaces/SequenceOptions";
|
|
6
|
-
import type { ExtendedRelationsMetadata } from "../model/types";
|
|
7
|
-
import { IndexMetadata } from "../repository/types";
|
|
8
|
-
declare module "@decaf-ts/decorator-validation" {
|
|
9
|
-
namespace Model {
|
|
10
|
-
/**
|
|
11
|
-
* @description Gets all relation properties defined on a model.
|
|
12
|
-
* @summary Retrieves the names of all properties marked as relations in the model hierarchy.
|
|
13
|
-
* @template M - The model type that extends Model.
|
|
14
|
-
* @param {M | Constructor<M>} model - The model instance or constructor.
|
|
15
|
-
* @param {string[]} existingRelations - Optional parameter, the existing relations to be included.
|
|
16
|
-
* @return {string[]} An array of property names that are relations.
|
|
17
|
-
*/
|
|
18
|
-
function nestedRelations<M extends Model>(model: Constructor<M> | M, existingRelations?: string[]): string[];
|
|
19
|
-
function fromTable<M extends Model>(tableName: string): Constructor<M>;
|
|
20
|
-
/**
|
|
21
|
-
* @description Gets all relation properties defined on a model.
|
|
22
|
-
* @summary Retrieves the names of all properties marked as relations in the model hierarchy.
|
|
23
|
-
* @template M - The model type that extends Model.
|
|
24
|
-
* @param {M | Constructor<M>} model - The model instance or constructor.
|
|
25
|
-
* @return {string[]} An array of property names that are relations.
|
|
26
|
-
*/
|
|
27
|
-
function relations<M extends Model>(m: Constructor<M> | M): string[];
|
|
28
|
-
/**
|
|
29
|
-
* @description Gets all relation properties defined on a model.
|
|
30
|
-
* @summary Retrieves the names of all properties marked as relations in the model hierarchy.
|
|
31
|
-
* @template M - The model type that extends Model.
|
|
32
|
-
* @param {M | Constructor<M>} model - The model instance or constructor.
|
|
33
|
-
* @return {string[]} An array of property names that are relations.
|
|
34
|
-
*/
|
|
35
|
-
function relations<M extends Model>(m: Constructor<M> | M, prop: keyof M): ExtendedRelationsMetadata;
|
|
36
|
-
/**
|
|
37
|
-
* @description Gets all relation properties defined on a model.
|
|
38
|
-
* @summary Retrieves the names of all properties marked as relations in the model hierarchy.
|
|
39
|
-
* @template M - The model type that extends Model.
|
|
40
|
-
* @param {M | Constructor<M>} model - The model instance or constructor.
|
|
41
|
-
* @return {string[]} An array of property names that are relations.
|
|
42
|
-
*/
|
|
43
|
-
function generated<M extends Model>(m: Constructor<M> | M, prop: keyof M): boolean;
|
|
44
|
-
function createdBy<M extends Model>(m: Constructor<M> | M): keyof M;
|
|
45
|
-
function updatedBy<M extends Model>(m: Constructor<M> | M): keyof M;
|
|
46
|
-
function defaultQueryAttributes<M extends Model>(m: Constructor<M> | M, useDefault?: boolean): string[];
|
|
47
|
-
/**
|
|
48
|
-
* @description Gets all relation properties defined on a model.
|
|
49
|
-
* @summary Retrieves the names of all properties marked as relations in the model hierarchy.
|
|
50
|
-
* @template M - The model type that extends Model.
|
|
51
|
-
* @param {M | Constructor<M>} model - The model instance or constructor.
|
|
52
|
-
* @return {string[]} An array of property names that are relations.
|
|
53
|
-
*/
|
|
54
|
-
function relations<M extends Model>(m: Constructor<M> | M, prop?: keyof M): string[] | ExtendedRelationsMetadata;
|
|
55
|
-
/**
|
|
56
|
-
* @description Gets all indexes defined on a model.
|
|
57
|
-
* @summary Retrieves all index metadata from a model's property decorators.
|
|
58
|
-
* @template M - The model type that extends Model.
|
|
59
|
-
* @param {M | Constructor<M>} model - The model instance or constructor.
|
|
60
|
-
* @return {Record<string, Record<string, IndexMetadata>>} A nested record of property names to index metadata.
|
|
61
|
-
*/
|
|
62
|
-
function indexes<M extends Model>(model: M | Constructor<M>): Record<string, Record<string, IndexMetadata>>;
|
|
63
|
-
/**
|
|
64
|
-
* @description Gets sequence options for a model's primary key.
|
|
65
|
-
* @summary Retrieves the sequence configuration for a model's primary key from metadata.
|
|
66
|
-
* @template M - The model type that extends Model.
|
|
67
|
-
* @param {M} model - The model instance.
|
|
68
|
-
* @return {SequenceOptions} The sequence options for the model's primary key.
|
|
69
|
-
* @throws {InternalError} If no sequence options are defined for the model.
|
|
70
|
-
*/
|
|
71
|
-
function sequenceFor<M extends Model<boolean>>(model: Constructor<M> | M, property?: keyof M): SequenceOptions;
|
|
72
|
-
/**
|
|
73
|
-
* @description Generates a sequence name for a model
|
|
74
|
-
* @summary Creates a standardized sequence name by combining the table name with additional arguments
|
|
75
|
-
* @template M - Type that extends Model
|
|
76
|
-
* @param {M | Constructor<M>} model - The model instance or constructor to generate the sequence name for
|
|
77
|
-
* @param {...string} args - Additional string arguments to append to the sequence name
|
|
78
|
-
* @return {string} The generated sequence name
|
|
79
|
-
*/
|
|
80
|
-
function sequenceName<M extends Model>(model: M | Constructor<M>, ...args: string[]): string;
|
|
81
|
-
/**
|
|
82
|
-
* @description Gets the table name for a model
|
|
83
|
-
* @summary Retrieves the table name associated with a model by checking metadata or falling back to the constructor name
|
|
84
|
-
* @template M - Type that extends Model
|
|
85
|
-
* @param {M | Constructor<M>} model - The model instance or constructor to get the table name for
|
|
86
|
-
* @return {string} The table name for the model
|
|
87
|
-
*/
|
|
88
|
-
function tableName<M extends Model<boolean>>(model: Constructor<M> | M): string;
|
|
89
|
-
function columnName<M extends Model<boolean>>(model: Constructor<M> | M, prop: keyof M): string;
|
|
90
|
-
function nonValidatableFor<M extends Model<boolean>>(m: Constructor<M> | M, op: OperationKeys.CREATE | OperationKeys.UPDATE | string): string[];
|
|
91
|
-
function validateOn<M extends Model<boolean>>(m: Constructor<M> | M, op: OperationKeys.CREATE | OperationKeys): M extends Model<true> ? Promise<ModelErrorDefinition | undefined> : ModelErrorDefinition | undefined;
|
|
92
|
-
function generatedBySequence<M extends Model>(model: M | Constructor<M>, prop?: keyof M): boolean;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Model.js","sourceRoot":"","sources":["../../src/overrides/Model.ts"],"names":[],"mappings":";;AAEA,0CAAwC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import "@decaf-ts/decorator-validation";
|
|
2
|
-
declare module "@decaf-ts/decorator-validation" {
|
|
3
|
-
interface ModelBuilder<M> {
|
|
4
|
-
table(tableName: string): ModelBuilder<M>;
|
|
5
|
-
unique(attr: keyof M): ModelBuilder<M>;
|
|
6
|
-
createdBy(attr: keyof M): ModelBuilder<M>;
|
|
7
|
-
updatedBy(attr: keyof M): ModelBuilder<M>;
|
|
8
|
-
createdAt(attr: keyof M): ModelBuilder<M>;
|
|
9
|
-
updatedAt(attr: keyof M): ModelBuilder<M>;
|
|
10
|
-
oneToOne<N extends keyof M>(attr: N, clazz: any | (() => any), cascade?: any, populate?: boolean, joinColumnOpts?: any, fk?: string): ModelBuilder<M>;
|
|
11
|
-
oneToMany<N extends keyof M>(attr: N, clazz: any | (() => any), cascade?: any, populate?: boolean, joinTableOpts?: any, fk?: string): ModelBuilder<M>;
|
|
12
|
-
manyToOne<N extends keyof M>(attr: N, clazz: any | (() => any), cascade?: any, populate?: boolean, joinTableOpts?: any, fk?: string): ModelBuilder<M>;
|
|
13
|
-
manyToMany<N extends keyof M>(attr: N, clazz: any | (() => any), cascade?: any, populate?: boolean, joinTableOpts?: any, fk?: string): ModelBuilder<M>;
|
|
14
|
-
noValidateOn(attr: keyof M, ...ops: any[]): ModelBuilder<M>;
|
|
15
|
-
noValidateOnCreate(attr: keyof M): ModelBuilder<M>;
|
|
16
|
-
noValidateOnUpdate(attr: keyof M): ModelBuilder<M>;
|
|
17
|
-
noValidateOnCreateUpdate(attr: keyof M): ModelBuilder<M>;
|
|
18
|
-
}
|
|
19
|
-
interface AttributeBuilder<M, N extends keyof M, T> {
|
|
20
|
-
column<N2 extends keyof M>(columnName?: string): AttributeBuilder<M, N2, T>;
|
|
21
|
-
unique<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
22
|
-
createdBy<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
23
|
-
updatedBy<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
24
|
-
createdAt<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
25
|
-
updatedAt<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
26
|
-
noValidateOn<N2 extends keyof M>(...ops: any[]): AttributeBuilder<M, N2, T>;
|
|
27
|
-
noValidateOnCreate<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
28
|
-
noValidateOnUpdate<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
29
|
-
noValidateOnCreateUpdate<N2 extends keyof M>(): AttributeBuilder<M, N2, T>;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelBuilder.js","sourceRoot":"","sources":["../../src/overrides/ModelBuilder.ts"],"names":[],"mappings":";;AAAA,0CAAwC"}
|
package/lib/overrides/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Exports for the overrides module.
|
|
3
|
-
* @summary This file exports all the necessary components for the overrides functionality, including Metadata, injectables, Model, and overrides.
|
|
4
|
-
* @module core/overrides
|
|
5
|
-
*/
|
|
6
|
-
export * from "./Metadata";
|
|
7
|
-
export * from "./injectables";
|
|
8
|
-
export * from "./Model";
|
|
9
|
-
export * from "./overrides";
|
|
10
|
-
export * from "./ModelBuilder";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/overrides/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,iDAA2B;AAC3B,oDAA8B;AAC9B,8CAAwB;AACxB,kDAA4B;AAC5B,qDAA+B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "@decaf-ts/injectable-decorators";
|
|
2
|
-
import { Repository } from "../repository/Repository";
|
|
3
|
-
import type { Service } from "../services/services";
|
|
4
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
declare module "@decaf-ts/injectable-decorators" {
|
|
6
|
-
namespace Injectables {
|
|
7
|
-
function repositories<R extends Repository<any, any>>(flavour: string): Record<string, Record<string, Constructor<R>>>;
|
|
8
|
-
function services<S extends Service>(): Record<string, Constructor<S>>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectables.js","sourceRoot":"","sources":["../../src/overrides/injectables.ts"],"names":[],"mappings":";;AAAA,2CAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../src/overrides/overrides.ts"],"names":[],"mappings":";;AAAA,qDAA6D;AAC7D,yEAAuD;AACvD,2DAA+E;AAC/E,0DAAiD;AAEjD,8DAA2D;AAK3D,2EAA8D;AAG9D,wDAA8C;AAG7C,qBAAgB,CAAC,KAAK,GAAG,SAAS,KAAK;IAGtC,OAAO,qBAAQ,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAQ,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC,IAAI,CAAC,qBAAQ,CAAC,CAAC;AAEhB,qBAAgB,CAAC,OAAO,GAAG,SAAS,OAAO,CAC1C,IAAY;IAEZ,MAAM,IAAI,GAAG,qBAAQ,CAAC,KAAK,EAAE,CAAC;IAC9B,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvC,CAAC,CAAC,IAAI,CAAC,qBAAQ,CAAC,CAAC;AAEhB,qBAAgB,CAAC,oBAAoB,GAAG,SAAS,oBAAoB,CAEpD,KAAqB,EAAE,EAAiB;IACxD,MAAM,YAAY,GAChB,qBAAQ,CAAC,GAAG,CA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