@decaf-ts/core 0.24.0 → 0.25.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/lib/cjs/index.cjs +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/types/auth/decorators.d.cts +2 -2
- package/lib/types/auth/decorators.d.mts +2 -2
- package/lib/types/auth/index.d.cts +2 -2
- package/lib/types/auth/index.d.mts +2 -2
- package/lib/types/fs/FilesystemAdapter.d.cts +5 -5
- package/lib/types/fs/FilesystemAdapter.d.mts +5 -5
- package/lib/types/fs/FsDispatch.d.cts +4 -4
- package/lib/types/fs/FsDispatch.d.mts +4 -4
- package/lib/types/fs/index.d.cts +4 -4
- package/lib/types/fs/index.d.mts +4 -4
- package/lib/types/fs/indexStore.d.cts +2 -2
- package/lib/types/fs/indexStore.d.mts +2 -2
- package/lib/types/fs/types.d.cts +2 -2
- package/lib/types/fs/types.d.mts +2 -2
- package/lib/types/identity/decorators.d.cts +3 -3
- package/lib/types/identity/decorators.d.mts +3 -3
- package/lib/types/identity/index.d.cts +1 -1
- package/lib/types/identity/index.d.mts +1 -1
- package/lib/types/index.d.cts +13 -13
- package/lib/types/index.d.mts +13 -13
- package/lib/types/interfaces/ContextuallyLogged.d.cts +2 -2
- package/lib/types/interfaces/ContextuallyLogged.d.mts +2 -2
- package/lib/types/interfaces/Observable.d.cts +1 -1
- package/lib/types/interfaces/Observable.d.mts +1 -1
- package/lib/types/interfaces/Paginatable.d.cts +1 -1
- package/lib/types/interfaces/Paginatable.d.mts +1 -1
- package/lib/types/interfaces/Queriable.d.cts +2 -2
- package/lib/types/interfaces/Queriable.d.mts +2 -2
- package/lib/types/interfaces/RawExecutor.d.cts +1 -1
- package/lib/types/interfaces/RawExecutor.d.mts +1 -1
- package/lib/types/interfaces/index.d.cts +7 -7
- package/lib/types/interfaces/index.d.mts +7 -7
- package/lib/types/migrations/Migration.d.cts +4 -4
- package/lib/types/migrations/Migration.d.mts +4 -4
- package/lib/types/migrations/MigrationService.d.cts +7 -7
- package/lib/types/migrations/MigrationService.d.mts +7 -7
- package/lib/types/migrations/MigrationTaskBuilder.d.cts +3 -3
- package/lib/types/migrations/MigrationTaskBuilder.d.mts +3 -3
- package/lib/types/migrations/MigrationTasks.d.cts +2 -2
- package/lib/types/migrations/MigrationTasks.d.mts +2 -2
- package/lib/types/migrations/SemverMigrationVersioning.d.cts +1 -1
- package/lib/types/migrations/SemverMigrationVersioning.d.mts +1 -1
- package/lib/types/migrations/StandardMigrationVersioning.d.cts +1 -1
- package/lib/types/migrations/StandardMigrationVersioning.d.mts +1 -1
- package/lib/types/migrations/constants.d.cts +1 -1
- package/lib/types/migrations/constants.d.mts +1 -1
- package/lib/types/migrations/decorators.d.cts +1 -1
- package/lib/types/migrations/decorators.d.mts +1 -1
- package/lib/types/migrations/index.d.cts +9 -9
- package/lib/types/migrations/index.d.mts +9 -9
- package/lib/types/migrations/types.d.cts +5 -5
- package/lib/types/migrations/types.d.mts +5 -5
- package/lib/types/model/SequenceModel.d.cts +1 -1
- package/lib/types/model/SequenceModel.d.mts +1 -1
- package/lib/types/model/construction.d.cts +4 -4
- package/lib/types/model/construction.d.mts +4 -4
- package/lib/types/model/decorators.d.cts +4 -4
- package/lib/types/model/decorators.d.mts +4 -4
- package/lib/types/model/index.d.cts +6 -6
- package/lib/types/model/index.d.mts +6 -6
- package/lib/types/model/indexing.d.cts +1 -1
- package/lib/types/model/indexing.d.mts +1 -1
- package/lib/types/model/types.d.cts +2 -2
- package/lib/types/model/types.d.mts +2 -2
- package/lib/types/overrides/Metadata.d.cts +6 -6
- package/lib/types/overrides/Metadata.d.mts +6 -6
- package/lib/types/overrides/Model.d.cts +3 -3
- package/lib/types/overrides/Model.d.mts +3 -3
- package/lib/types/overrides/index.d.cts +5 -5
- package/lib/types/overrides/index.d.mts +5 -5
- package/lib/types/overrides/injectables.d.cts +2 -2
- package/lib/types/overrides/injectables.d.mts +2 -2
- package/lib/types/persistence/Adapter.d.cts +15 -15
- package/lib/types/persistence/Adapter.d.mts +15 -15
- package/lib/types/persistence/Context.d.cts +1 -1
- package/lib/types/persistence/Context.d.mts +1 -1
- package/lib/types/persistence/ContextLock.d.cts +1 -1
- package/lib/types/persistence/ContextLock.d.mts +1 -1
- package/lib/types/persistence/Dispatch.d.cts +4 -4
- package/lib/types/persistence/Dispatch.d.mts +4 -4
- package/lib/types/persistence/ObserverHandler.d.cts +4 -4
- package/lib/types/persistence/ObserverHandler.d.mts +4 -4
- package/lib/types/persistence/Sequence.d.cts +7 -7
- package/lib/types/persistence/Sequence.d.mts +7 -7
- package/lib/types/persistence/constants.d.cts +2 -2
- package/lib/types/persistence/constants.d.mts +2 -2
- package/lib/types/persistence/decorators.d.cts +3 -3
- package/lib/types/persistence/decorators.d.mts +3 -3
- package/lib/types/persistence/event-filters.d.cts +2 -2
- package/lib/types/persistence/event-filters.d.mts +2 -2
- package/lib/types/persistence/index.d.cts +13 -13
- package/lib/types/persistence/index.d.mts +13 -13
- package/lib/types/persistence/transactions.d.cts +2 -2
- package/lib/types/persistence/transactions.d.mts +2 -2
- package/lib/types/persistence/types.d.cts +8 -8
- package/lib/types/persistence/types.d.mts +8 -8
- package/lib/types/query/Condition.d.cts +2 -2
- package/lib/types/query/Condition.d.mts +2 -2
- package/lib/types/query/MethodQueryBuilder.d.cts +1 -1
- package/lib/types/query/MethodQueryBuilder.d.mts +1 -1
- package/lib/types/query/Paginator.d.cts +3 -3
- package/lib/types/query/Paginator.d.mts +3 -3
- package/lib/types/query/Statement.d.cts +11 -11
- package/lib/types/query/Statement.d.mts +11 -11
- package/lib/types/query/decorators.d.cts +3 -3
- package/lib/types/query/decorators.d.mts +3 -3
- package/lib/types/query/index.d.cts +11 -11
- package/lib/types/query/index.d.mts +11 -11
- package/lib/types/query/options.d.cts +4 -4
- package/lib/types/query/options.d.mts +4 -4
- package/lib/types/query/selectors.d.cts +1 -1
- package/lib/types/query/selectors.d.mts +1 -1
- package/lib/types/query/types.d.cts +3 -3
- package/lib/types/query/types.d.mts +3 -3
- package/lib/types/query/utils.d.cts +1 -1
- package/lib/types/query/utils.d.mts +1 -1
- package/lib/types/ram/RamAdapter.d.cts +7 -7
- package/lib/types/ram/RamAdapter.d.mts +7 -7
- package/lib/types/ram/RamPaginator.d.cts +4 -4
- package/lib/types/ram/RamPaginator.d.mts +4 -4
- package/lib/types/ram/RamStatement.d.cts +5 -5
- package/lib/types/ram/RamStatement.d.mts +5 -5
- package/lib/types/ram/handlers.d.cts +3 -3
- package/lib/types/ram/handlers.d.mts +3 -3
- package/lib/types/ram/index.d.cts +6 -6
- package/lib/types/ram/index.d.mts +6 -6
- package/lib/types/ram/types.d.cts +3 -3
- package/lib/types/ram/types.d.mts +3 -3
- package/lib/types/repository/Repository.d.cts +13 -13
- package/lib/types/repository/Repository.d.mts +13 -13
- package/lib/types/repository/constants.d.cts +1 -1
- package/lib/types/repository/constants.d.mts +1 -1
- package/lib/types/repository/index.d.cts +7 -7
- package/lib/types/repository/index.d.mts +7 -7
- package/lib/types/repository/types.d.cts +1 -1
- package/lib/types/repository/types.d.mts +1 -1
- package/lib/types/services/ModelService.d.cts +8 -8
- package/lib/types/services/ModelService.d.mts +8 -8
- package/lib/types/services/PersistenceService.d.cts +4 -4
- package/lib/types/services/PersistenceService.d.mts +4 -4
- package/lib/types/services/index.d.cts +3 -3
- package/lib/types/services/index.d.mts +3 -3
- package/lib/types/services/services.d.cts +5 -5
- package/lib/types/services/services.d.mts +5 -5
- package/lib/types/tasks/CleanUpTask.d.cts +5 -5
- package/lib/types/tasks/CleanUpTask.d.mts +5 -5
- package/lib/types/tasks/TaskContext.d.cts +7 -7
- package/lib/types/tasks/TaskContext.d.mts +7 -7
- package/lib/types/tasks/TaskEngine.d.cts +18 -18
- package/lib/types/tasks/TaskEngine.d.mts +18 -18
- package/lib/types/tasks/TaskErrors.d.cts +2 -2
- package/lib/types/tasks/TaskErrors.d.mts +2 -2
- package/lib/types/tasks/TaskEventBus.d.cts +7 -7
- package/lib/types/tasks/TaskEventBus.d.mts +7 -7
- package/lib/types/tasks/TaskEventService.d.cts +3 -3
- package/lib/types/tasks/TaskEventService.d.mts +3 -3
- package/lib/types/tasks/TaskHandler.d.cts +3 -3
- package/lib/types/tasks/TaskHandler.d.mts +3 -3
- package/lib/types/tasks/TaskHandlerRegistry.d.cts +1 -1
- package/lib/types/tasks/TaskHandlerRegistry.d.mts +1 -1
- package/lib/types/tasks/TaskService.d.cts +15 -15
- package/lib/types/tasks/TaskService.d.mts +15 -15
- package/lib/types/tasks/TaskStateChangeError.d.cts +2 -2
- package/lib/types/tasks/TaskStateChangeError.d.mts +2 -2
- package/lib/types/tasks/TaskTracker.d.cts +8 -8
- package/lib/types/tasks/TaskTracker.d.mts +8 -8
- package/lib/types/tasks/builder.d.cts +4 -4
- package/lib/types/tasks/builder.d.mts +4 -4
- package/lib/types/tasks/constants.d.cts +1 -1
- package/lib/types/tasks/constants.d.mts +1 -1
- package/lib/types/tasks/index.d.cts +17 -17
- package/lib/types/tasks/index.d.mts +17 -17
- package/lib/types/tasks/logging.d.cts +1 -1
- package/lib/types/tasks/logging.d.mts +1 -1
- package/lib/types/tasks/models/TaskBackoffModel.d.cts +1 -1
- package/lib/types/tasks/models/TaskBackoffModel.d.mts +1 -1
- package/lib/types/tasks/models/TaskEventModel.d.cts +1 -1
- package/lib/types/tasks/models/TaskEventModel.d.mts +1 -1
- package/lib/types/tasks/models/TaskModel.d.cts +6 -6
- package/lib/types/tasks/models/TaskModel.d.mts +6 -6
- package/lib/types/tasks/models/TaskStepResultModel.d.cts +2 -2
- package/lib/types/tasks/models/TaskStepResultModel.d.mts +2 -2
- package/lib/types/tasks/models/index.d.cts +8 -8
- package/lib/types/tasks/models/index.d.mts +8 -8
- package/lib/types/tasks/types.d.cts +10 -10
- package/lib/types/tasks/types.d.mts +10 -10
- package/lib/types/tasks/utils.d.cts +2 -2
- package/lib/types/tasks/utils.d.mts +2 -2
- package/lib/types/utils/ContextualLoggedClass.d.cts +4 -4
- package/lib/types/utils/ContextualLoggedClass.d.mts +4 -4
- package/lib/types/utils/decorators.d.cts +1 -1
- package/lib/types/utils/decorators.d.mts +1 -1
- package/lib/types/utils/index.d.cts +6 -6
- package/lib/types/utils/index.d.mts +6 -6
- package/lib/types/workers/TaskEngine.d.cts +6 -6
- package/lib/types/workers/TaskEngine.d.mts +6 -6
- package/lib/types/workers/WorkThreadEnvironment.d.cts +1 -1
- package/lib/types/workers/WorkThreadEnvironment.d.mts +1 -1
- package/lib/types/workers/index.d.cts +4 -4
- package/lib/types/workers/index.d.mts +4 -4
- package/lib/types/workers/messages.d.cts +1 -1
- package/lib/types/workers/messages.d.mts +1 -1
- package/lib/types/workers/types.d.cts +3 -3
- package/lib/types/workers/types.d.mts +3 -3
- package/package.json +1 -1
- package/lib/types/auth/constants.d.ts +0 -5
- package/lib/types/auth/decorators.d.ts +0 -5
- package/lib/types/auth/index.d.ts +0 -2
- package/lib/types/fs/FilesystemAdapter.d.ts +0 -70
- package/lib/types/fs/FsDispatch.d.ts +0 -7
- package/lib/types/fs/helpers.d.ts +0 -17
- package/lib/types/fs/index.d.ts +0 -4
- package/lib/types/fs/indexStore.d.ts +0 -28
- package/lib/types/fs/locks/FilesystemLock.d.ts +0 -13
- package/lib/types/fs/locks/FilesystemMultiLock.d.ts +0 -8
- package/lib/types/fs/types.d.ts +0 -40
- package/lib/types/identity/decorators.d.ts +0 -72
- package/lib/types/identity/index.d.ts +0 -6
- package/lib/types/index.d.ts +0 -34
- package/lib/types/interfaces/ContextuallyLogged.d.ts +0 -8
- package/lib/types/interfaces/ErrorParser.d.ts +0 -16
- package/lib/types/interfaces/Executor.d.ts +0 -16
- package/lib/types/interfaces/Observable.d.ts +0 -33
- package/lib/types/interfaces/Observer.d.ts +0 -15
- package/lib/types/interfaces/Paginatable.d.ts +0 -20
- package/lib/types/interfaces/Queriable.d.ts +0 -47
- package/lib/types/interfaces/RawExecutor.d.ts +0 -28
- package/lib/types/interfaces/SequenceOptions.d.ts +0 -79
- package/lib/types/interfaces/index.d.ts +0 -12
- package/lib/types/migrations/Migration.d.ts +0 -19
- package/lib/types/migrations/MigrationService.d.ts +0 -63
- package/lib/types/migrations/MigrationTaskBuilder.d.ts +0 -10
- package/lib/types/migrations/MigrationTasks.d.ts +0 -9
- package/lib/types/migrations/MigrationVersioning.d.ts +0 -7
- package/lib/types/migrations/SemverMigrationVersioning.d.ts +0 -10
- package/lib/types/migrations/StandardMigrationVersioning.d.ts +0 -12
- package/lib/types/migrations/constants.d.ts +0 -2
- package/lib/types/migrations/decorators.d.ts +0 -12
- package/lib/types/migrations/index.d.ts +0 -15
- package/lib/types/migrations/types.d.ts +0 -46
- package/lib/types/model/BaseModel.d.ts +0 -37
- package/lib/types/model/SequenceModel.d.ts +0 -32
- package/lib/types/model/construction.d.ts +0 -455
- package/lib/types/model/decorators.d.ts +0 -237
- package/lib/types/model/index.d.ts +0 -11
- package/lib/types/model/indexing.d.ts +0 -20
- package/lib/types/model/types.d.ts +0 -60
- package/lib/types/overrides/Metadata.d.ts +0 -22
- package/lib/types/overrides/Model.d.ts +0 -94
- package/lib/types/overrides/ModelBuilder.d.ts +0 -31
- package/lib/types/overrides/index.d.ts +0 -11
- package/lib/types/overrides/injectables.d.ts +0 -10
- package/lib/types/overrides/overrides.d.ts +0 -1
- package/lib/types/persistence/Adapter.d.ts +0 -469
- package/lib/types/persistence/Context.d.ts +0 -16
- package/lib/types/persistence/ContextLock.d.ts +0 -18
- package/lib/types/persistence/Dispatch.d.ts +0 -128
- package/lib/types/persistence/ObserverHandler.d.ts +0 -111
- package/lib/types/persistence/Sequence.d.ts +0 -126
- package/lib/types/persistence/constants.d.ts +0 -74
- package/lib/types/persistence/decorators.d.ts +0 -28
- package/lib/types/persistence/errors.d.ts +0 -33
- package/lib/types/persistence/event-filters.d.ts +0 -20
- package/lib/types/persistence/generators.d.ts +0 -14
- package/lib/types/persistence/index.d.ts +0 -18
- package/lib/types/persistence/transactions.d.ts +0 -4
- package/lib/types/persistence/types.d.ts +0 -86
- package/lib/types/query/Condition.d.ts +0 -131
- package/lib/types/query/MethodQueryBuilder.d.ts +0 -185
- package/lib/types/query/Paginator.d.ts +0 -105
- package/lib/types/query/Statement.d.ts +0 -136
- package/lib/types/query/constants.d.ts +0 -69
- package/lib/types/query/decorators.d.ts +0 -8
- package/lib/types/query/errors.d.ts +0 -21
- package/lib/types/query/index.d.ts +0 -16
- package/lib/types/query/options.d.ts +0 -393
- package/lib/types/query/selectors.d.ts +0 -39
- package/lib/types/query/types.d.ts +0 -158
- package/lib/types/query/utils.d.ts +0 -40
- package/lib/types/ram/RamAdapter.d.ts +0 -341
- package/lib/types/ram/RamPaginator.d.ts +0 -54
- package/lib/types/ram/RamStatement.d.ts +0 -92
- package/lib/types/ram/constants.d.ts +0 -8
- package/lib/types/ram/handlers.d.ts +0 -24
- package/lib/types/ram/index.d.ts +0 -12
- package/lib/types/ram/types.d.ts +0 -50
- package/lib/types/repository/Repository.d.ts +0 -501
- package/lib/types/repository/constants.d.ts +0 -36
- package/lib/types/repository/decorators.d.ts +0 -30
- package/lib/types/repository/errors.d.ts +0 -19
- package/lib/types/repository/index.d.ts +0 -12
- package/lib/types/repository/injectables.d.ts +0 -95
- package/lib/types/repository/types.d.ts +0 -28
- package/lib/types/repository/utils.d.ts +0 -36
- package/lib/types/services/ModelService.d.ts +0 -45
- package/lib/types/services/PersistenceService.d.ts +0 -17
- package/lib/types/services/index.d.ts +0 -8
- package/lib/types/services/services.d.ts +0 -96
- package/lib/types/tasks/CleanUpTask.d.ts +0 -15
- package/lib/types/tasks/TaskContext.d.ts +0 -30
- package/lib/types/tasks/TaskEngine.d.ts +0 -97
- package/lib/types/tasks/TaskErrors.d.ts +0 -65
- package/lib/types/tasks/TaskEventBus.d.ts +0 -17
- package/lib/types/tasks/TaskEventService.d.ts +0 -7
- package/lib/types/tasks/TaskHandler.d.ts +0 -12
- package/lib/types/tasks/TaskHandlerRegistry.d.ts +0 -8
- package/lib/types/tasks/TaskService.d.ts +0 -65
- package/lib/types/tasks/TaskStateChangeError.d.ts +0 -11
- package/lib/types/tasks/TaskTracker.d.ts +0 -47
- package/lib/types/tasks/builder.d.ts +0 -72
- package/lib/types/tasks/constants.d.ts +0 -31
- package/lib/types/tasks/decorators.d.ts +0 -4
- package/lib/types/tasks/index.d.ts +0 -23
- package/lib/types/tasks/logging.d.ts +0 -31
- package/lib/types/tasks/models/TaskBackoffModel.d.ts +0 -9
- package/lib/types/tasks/models/TaskErrorModel.d.ts +0 -8
- package/lib/types/tasks/models/TaskEventModel.d.ts +0 -11
- package/lib/types/tasks/models/TaskIOSerializer.d.ts +0 -33
- package/lib/types/tasks/models/TaskLogEntryModel.d.ts +0 -10
- package/lib/types/tasks/models/TaskModel.d.ts +0 -43
- package/lib/types/tasks/models/TaskStepResultModel.d.ts +0 -9
- package/lib/types/tasks/models/TaskStepSpecModel.d.ts +0 -9
- package/lib/types/tasks/models/index.d.ts +0 -8
- package/lib/types/tasks/types.d.ts +0 -71
- package/lib/types/tasks/utils.d.ts +0 -5
- package/lib/types/utils/ContextualLoggedClass.d.ts +0 -37
- package/lib/types/utils/decorators.d.ts +0 -27
- package/lib/types/utils/errors.d.ts +0 -56
- package/lib/types/utils/index.d.ts +0 -11
- package/lib/types/utils/throttling.d.ts +0 -9
- package/lib/types/utils/types.d.ts +0 -23
- package/lib/types/utils/utils.d.ts +0 -22
- package/lib/types/workers/TaskEngine.d.ts +0 -40
- package/lib/types/workers/WorkThreadEnvironment.d.ts +0 -35
- package/lib/types/workers/index.d.ts +0 -5
- package/lib/types/workers/messages.d.ts +0 -69
- package/lib/types/workers/types.d.ts +0 -41
- package/lib/types/workers/workerThread.d.ts +0 -1
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* @module core/migrations
|
|
5
5
|
*/
|
|
6
6
|
import "../overrides";
|
|
7
|
-
export * from "./constants.
|
|
8
|
-
export * from "./decorators.
|
|
9
|
-
export * from "./Migration.
|
|
10
|
-
export * from "./MigrationService.
|
|
11
|
-
export * from "./MigrationTaskBuilder.
|
|
12
|
-
export * from "./MigrationTasks.
|
|
13
|
-
export * from "./StandardMigrationVersioning.
|
|
14
|
-
export * from "./MigrationVersioning.
|
|
15
|
-
export * from "./types.
|
|
7
|
+
export * from "./constants.d.mts";
|
|
8
|
+
export * from "./decorators.d.mts";
|
|
9
|
+
export * from "./Migration.d.mts";
|
|
10
|
+
export * from "./MigrationService.d.mts";
|
|
11
|
+
export * from "./MigrationTaskBuilder.d.mts";
|
|
12
|
+
export * from "./MigrationTasks.d.mts";
|
|
13
|
+
export * from "./StandardMigrationVersioning.d.mts";
|
|
14
|
+
export * from "./MigrationVersioning.d.mts";
|
|
15
|
+
export * from "./types.d.mts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Adapter } from "../persistence/Adapter.
|
|
2
|
-
import { AdapterFlags, ContextOf } from "../persistence/types.
|
|
3
|
-
import { ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
4
|
-
import { TaskService } from "../tasks/TaskService.
|
|
5
|
-
import type { MigrationVersioning } from "./MigrationVersioning.
|
|
1
|
+
import { Adapter } from "../persistence/Adapter.d.cts";
|
|
2
|
+
import { AdapterFlags, ContextOf } from "../persistence/types.d.cts";
|
|
3
|
+
import { ContextualArgs } from "../utils/ContextualLoggedClass.d.cts";
|
|
4
|
+
import { TaskService } from "../tasks/TaskService.d.cts";
|
|
5
|
+
import type { MigrationVersioning } from "./MigrationVersioning.d.cts";
|
|
6
6
|
export interface Migration<A extends Adapter<any, any, any, any>, R = void> {
|
|
7
7
|
flavour?: string;
|
|
8
8
|
precedence: Migration<any, any> | Migration<any, any>[] | string | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Adapter } from "../persistence/Adapter.
|
|
2
|
-
import { AdapterFlags, ContextOf } from "../persistence/types.
|
|
3
|
-
import { ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
4
|
-
import { TaskService } from "../tasks/TaskService.
|
|
5
|
-
import type { MigrationVersioning } from "./MigrationVersioning.
|
|
1
|
+
import { Adapter } from "../persistence/Adapter.d.mts";
|
|
2
|
+
import { AdapterFlags, ContextOf } from "../persistence/types.d.mts";
|
|
3
|
+
import { ContextualArgs } from "../utils/ContextualLoggedClass.d.mts";
|
|
4
|
+
import { TaskService } from "../tasks/TaskService.d.mts";
|
|
5
|
+
import type { MigrationVersioning } from "./MigrationVersioning.d.mts";
|
|
6
6
|
export interface Migration<A extends Adapter<any, any, any, any>, R = void> {
|
|
7
7
|
flavour?: string;
|
|
8
8
|
precedence: Migration<any, any> | Migration<any, any>[] | string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { BaseModel } from "./BaseModel.
|
|
2
|
+
import { BaseModel } from "./BaseModel.d.cts";
|
|
3
3
|
/**
|
|
4
4
|
* @description RAM sequence model for auto-incrementing values
|
|
5
5
|
* @summary A model class that represents a sequence in the RAM adapter. It stores the current value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { BaseModel } from "./BaseModel.
|
|
2
|
+
import { BaseModel } from "./BaseModel.d.mts";
|
|
3
3
|
/**
|
|
4
4
|
* @description RAM sequence model for auto-incrementing values
|
|
5
5
|
* @summary A model class that represents a sequence in the RAM adapter. It stores the current value
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { Repo } from "../repository/Repository.
|
|
3
|
-
import { RelationsMetadata } from "./types.
|
|
2
|
+
import { Repo } from "../repository/Repository.d.cts";
|
|
3
|
+
import { RelationsMetadata } from "./types.d.cts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
import { AdapterFlags, ContextOf } from "../persistence/types.
|
|
6
|
-
import { Context } from "../persistence/Context.
|
|
5
|
+
import { AdapterFlags, ContextOf } from "../persistence/types.d.cts";
|
|
6
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
7
7
|
/**
|
|
8
8
|
* @description Creates or updates a model instance
|
|
9
9
|
* @summary Determines whether to create a new model or update an existing one based on the presence of a primary key
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { Repo } from "../repository/Repository.
|
|
3
|
-
import { RelationsMetadata } from "./types.
|
|
2
|
+
import { Repo } from "../repository/Repository.d.mts";
|
|
3
|
+
import { RelationsMetadata } from "./types.d.mts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
import { AdapterFlags, ContextOf } from "../persistence/types.
|
|
6
|
-
import { Context } from "../persistence/Context.
|
|
5
|
+
import { AdapterFlags, ContextOf } from "../persistence/types.d.mts";
|
|
6
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
7
7
|
/**
|
|
8
8
|
* @description Creates or updates a model instance
|
|
9
9
|
* @summary Determines whether to create a new model or update an existing one based on the presence of a primary key
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { CascadeMetadata } from "../repository/types.
|
|
3
|
+
import { CascadeMetadata } from "../repository/types.d.cts";
|
|
4
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.
|
|
5
|
+
import type { Repo } from "../repository/Repository.d.cts";
|
|
6
|
+
import { JoinColumnOptions, JoinTableMultipleColumnsOptions, JoinTableOptions, RelationsMetadata } from "./types.d.cts";
|
|
7
|
+
import { ContextOf } from "../persistence/types.d.cts";
|
|
8
8
|
/**
|
|
9
9
|
* @description Specifies the database table name for a model
|
|
10
10
|
* @summary Decorator that sets the table name for a model class in the database
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { CascadeMetadata } from "../repository/types.
|
|
3
|
+
import { CascadeMetadata } from "../repository/types.d.mts";
|
|
4
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.
|
|
5
|
+
import type { Repo } from "../repository/Repository.d.mts";
|
|
6
|
+
import { JoinColumnOptions, JoinTableMultipleColumnsOptions, JoinTableOptions, RelationsMetadata } from "./types.d.mts";
|
|
7
|
+
import { ContextOf } from "../persistence/types.d.mts";
|
|
8
8
|
/**
|
|
9
9
|
* @description Specifies the database table name for a model
|
|
10
10
|
* @summary Decorator that sets the table name for a model class in the database
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the model functionality, including the BaseModel, construction utilities, decorators, and more.
|
|
4
4
|
* @module core/model
|
|
5
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.
|
|
6
|
+
export * from "./BaseModel.d.cts";
|
|
7
|
+
export * from "./construction.d.cts";
|
|
8
|
+
export * from "./decorators.d.cts";
|
|
9
|
+
export * from "./indexing.d.cts";
|
|
10
|
+
export * from "./SequenceModel.d.cts";
|
|
11
|
+
export * from "./types.d.cts";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the model functionality, including the BaseModel, construction utilities, decorators, and more.
|
|
4
4
|
* @module core/model
|
|
5
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.
|
|
6
|
+
export * from "./BaseModel.d.mts";
|
|
7
|
+
export * from "./construction.d.mts";
|
|
8
|
+
export * from "./decorators.d.mts";
|
|
9
|
+
export * from "./indexing.d.mts";
|
|
10
|
+
export * from "./SequenceModel.d.mts";
|
|
11
|
+
export * from "./types.d.mts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderDirection } from "../repository/constants.
|
|
1
|
+
import { OrderDirection } from "../repository/constants.d.cts";
|
|
2
2
|
import { propMetadata } from "@decaf-ts/decoration";
|
|
3
3
|
/**
|
|
4
4
|
* @description Creates an index on a model property for improved query performance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderDirection } from "../repository/constants.
|
|
1
|
+
import { OrderDirection } from "../repository/constants.d.mts";
|
|
2
2
|
import { propMetadata } from "@decaf-ts/decoration";
|
|
3
3
|
/**
|
|
4
4
|
* @description Creates an index on a model property for improved query performance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { CascadeMetadata } from "../repository/index.
|
|
3
|
-
import { PersistenceKeys } from "../persistence/constants.
|
|
2
|
+
import { CascadeMetadata } from "../repository/index.d.cts";
|
|
3
|
+
import { PersistenceKeys } from "../persistence/constants.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* Describes join column options.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import { CascadeMetadata } from "../repository/index.
|
|
3
|
-
import { PersistenceKeys } from "../persistence/constants.
|
|
2
|
+
import { CascadeMetadata } from "../repository/index.d.mts";
|
|
3
|
+
import { PersistenceKeys } from "../persistence/constants.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* Describes join column options.
|
|
6
6
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "@decaf-ts/decoration";
|
|
2
2
|
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
4
|
-
import type { Adapter } from "../persistence/index.
|
|
4
|
+
import type { Adapter } from "../persistence/index.d.cts";
|
|
5
5
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import type { ExtendedRelationsMetadata } from "../model/index.
|
|
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.
|
|
6
|
+
import type { ExtendedRelationsMetadata } from "../model/index.d.cts";
|
|
7
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
8
|
+
import type { AdapterFlags } from "../persistence/types.d.cts";
|
|
9
|
+
import { TaskHandler } from "../tasks/TaskHandler.d.cts";
|
|
10
|
+
import { Migration } from "../migrations/types.d.cts";
|
|
11
11
|
declare module "@decaf-ts/decoration" {
|
|
12
12
|
namespace Metadata {
|
|
13
13
|
function tasks(): Record<string, Constructor<TaskHandler<any, any>>> | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "@decaf-ts/decoration";
|
|
2
2
|
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
4
|
-
import type { Adapter } from "../persistence/index.
|
|
4
|
+
import type { Adapter } from "../persistence/index.d.mts";
|
|
5
5
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import type { ExtendedRelationsMetadata } from "../model/index.
|
|
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.
|
|
6
|
+
import type { ExtendedRelationsMetadata } from "../model/index.d.mts";
|
|
7
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
8
|
+
import type { AdapterFlags } from "../persistence/types.d.mts";
|
|
9
|
+
import { TaskHandler } from "../tasks/TaskHandler.d.mts";
|
|
10
|
+
import { Migration } from "../migrations/types.d.mts";
|
|
11
11
|
declare module "@decaf-ts/decoration" {
|
|
12
12
|
namespace Metadata {
|
|
13
13
|
function tasks(): Record<string, Constructor<TaskHandler<any, any>>> | undefined;
|
|
@@ -2,9 +2,9 @@ import { Constructor } from "@decaf-ts/decoration";
|
|
|
2
2
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
3
3
|
import "@decaf-ts/decorator-validation";
|
|
4
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.
|
|
5
|
+
import { SequenceOptions } from "../interfaces/SequenceOptions.d.cts";
|
|
6
|
+
import type { ExtendedRelationsMetadata } from "../model/types.d.cts";
|
|
7
|
+
import { IndexMetadata } from "../repository/types.d.cts";
|
|
8
8
|
declare module "@decaf-ts/decorator-validation" {
|
|
9
9
|
namespace Model {
|
|
10
10
|
/**
|
|
@@ -2,9 +2,9 @@ import { Constructor } from "@decaf-ts/decoration";
|
|
|
2
2
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
3
3
|
import "@decaf-ts/decorator-validation";
|
|
4
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.
|
|
5
|
+
import { SequenceOptions } from "../interfaces/SequenceOptions.d.mts";
|
|
6
|
+
import type { ExtendedRelationsMetadata } from "../model/types.d.mts";
|
|
7
|
+
import { IndexMetadata } from "../repository/types.d.mts";
|
|
8
8
|
declare module "@decaf-ts/decorator-validation" {
|
|
9
9
|
namespace Model {
|
|
10
10
|
/**
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @module core/overrides
|
|
5
5
|
*/
|
|
6
6
|
import "./overrides";
|
|
7
|
-
export * from "./Metadata.
|
|
8
|
-
export * from "./injectables.
|
|
9
|
-
export * from "./Model.
|
|
10
|
-
export * from "./overrides.
|
|
11
|
-
export * from "./ModelBuilder.
|
|
7
|
+
export * from "./Metadata.d.cts";
|
|
8
|
+
export * from "./injectables.d.cts";
|
|
9
|
+
export * from "./Model.d.cts";
|
|
10
|
+
export * from "./overrides.d.cts";
|
|
11
|
+
export * from "./ModelBuilder.d.cts";
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @module core/overrides
|
|
5
5
|
*/
|
|
6
6
|
import "./overrides";
|
|
7
|
-
export * from "./Metadata.
|
|
8
|
-
export * from "./injectables.
|
|
9
|
-
export * from "./Model.
|
|
10
|
-
export * from "./overrides.
|
|
11
|
-
export * from "./ModelBuilder.
|
|
7
|
+
export * from "./Metadata.d.mts";
|
|
8
|
+
export * from "./injectables.d.mts";
|
|
9
|
+
export * from "./Model.d.mts";
|
|
10
|
+
export * from "./overrides.d.mts";
|
|
11
|
+
export * from "./ModelBuilder.d.mts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@decaf-ts/injectable-decorators";
|
|
2
|
-
import { Repository } from "../repository/Repository.
|
|
3
|
-
import type { Service } from "../services/services.
|
|
2
|
+
import { Repository } from "../repository/Repository.d.cts";
|
|
3
|
+
import type { Service } from "../services/services.d.cts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
5
|
declare module "@decaf-ts/injectable-decorators" {
|
|
6
6
|
namespace Injectables {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@decaf-ts/injectable-decorators";
|
|
2
|
-
import { Repository } from "../repository/Repository.
|
|
3
|
-
import type { Service } from "../services/services.
|
|
2
|
+
import { Repository } from "../repository/Repository.d.mts";
|
|
3
|
+
import type { Service } from "../services/services.d.mts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
5
|
declare module "@decaf-ts/injectable-decorators" {
|
|
6
6
|
namespace Injectables {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { BaseError, BulkCrudOperationKeys, OperationKeys, PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { type Observer } from "../interfaces/Observer.
|
|
2
|
+
import { type Observer } from "../interfaces/Observer.d.cts";
|
|
3
3
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
4
|
-
import { SequenceOptions } from "../interfaces/SequenceOptions.
|
|
5
|
-
import { RawPagedExecutor } from "../interfaces/RawExecutor.
|
|
6
|
-
import type { Repository } from "../repository/Repository.
|
|
7
|
-
import type { Sequence } from "./Sequence.
|
|
8
|
-
import { ErrorParser } from "../interfaces/index.
|
|
9
|
-
import { Statement } from "../query/Statement.
|
|
4
|
+
import { SequenceOptions } from "../interfaces/SequenceOptions.d.cts";
|
|
5
|
+
import { RawPagedExecutor } from "../interfaces/RawExecutor.d.cts";
|
|
6
|
+
import type { Repository } from "../repository/Repository.d.cts";
|
|
7
|
+
import type { Sequence } from "./Sequence.d.cts";
|
|
8
|
+
import { ErrorParser } from "../interfaces/index.d.cts";
|
|
9
|
+
import { Statement } from "../query/Statement.d.cts";
|
|
10
10
|
import { Impersonatable, Logger } from "@decaf-ts/logging";
|
|
11
11
|
import { Lock } from "@decaf-ts/transactional-decorators";
|
|
12
|
-
import type { Dispatch } from "./Dispatch.
|
|
13
|
-
import { AdapterDispatch, type AdapterFlags, AllOperationKeys, type EventIds, FlagsOf, type ObserverFilter, PersistenceObservable, PersistenceObserver, PreparedModel, RawResult } from "./types.
|
|
14
|
-
import { ObserverHandler } from "./ObserverHandler.
|
|
15
|
-
import { Context } from "./Context.
|
|
12
|
+
import type { Dispatch } from "./Dispatch.d.cts";
|
|
13
|
+
import { AdapterDispatch, type AdapterFlags, AllOperationKeys, type EventIds, FlagsOf, type ObserverFilter, PersistenceObservable, PersistenceObserver, PreparedModel, RawResult } from "./types.d.cts";
|
|
14
|
+
import { ObserverHandler } from "./ObserverHandler.d.cts";
|
|
15
|
+
import { Context } from "./Context.d.cts";
|
|
16
16
|
import { type Constructor } from "@decaf-ts/decoration";
|
|
17
|
-
import { AbsContextual, ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
18
|
-
import { Paginator } from "../query/Paginator.
|
|
19
|
-
import { PreparedStatement } from "../query/types.
|
|
20
|
-
import { AdapterTransaction } from "./ContextLock.
|
|
17
|
+
import { AbsContextual, ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
18
|
+
import { Paginator } from "../query/Paginator.d.cts";
|
|
19
|
+
import { PreparedStatement } from "../query/types.d.cts";
|
|
20
|
+
import { AdapterTransaction } from "./ContextLock.d.cts";
|
|
21
21
|
export declare function resolveBulkSequenceResult<T>(result: T[] | PromiseSettledResult<T>[], continueOnError: boolean, log: Logger, operation: string): T[];
|
|
22
22
|
export type AdapterSubClass<A> = A extends Adapter<any, any, any, any> ? A : never;
|
|
23
23
|
/**
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { BaseError, BulkCrudOperationKeys, OperationKeys, PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { type Observer } from "../interfaces/Observer.
|
|
2
|
+
import { type Observer } from "../interfaces/Observer.d.mts";
|
|
3
3
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
4
|
-
import { SequenceOptions } from "../interfaces/SequenceOptions.
|
|
5
|
-
import { RawPagedExecutor } from "../interfaces/RawExecutor.
|
|
6
|
-
import type { Repository } from "../repository/Repository.
|
|
7
|
-
import type { Sequence } from "./Sequence.
|
|
8
|
-
import { ErrorParser } from "../interfaces/index.
|
|
9
|
-
import { Statement } from "../query/Statement.
|
|
4
|
+
import { SequenceOptions } from "../interfaces/SequenceOptions.d.mts";
|
|
5
|
+
import { RawPagedExecutor } from "../interfaces/RawExecutor.d.mts";
|
|
6
|
+
import type { Repository } from "../repository/Repository.d.mts";
|
|
7
|
+
import type { Sequence } from "./Sequence.d.mts";
|
|
8
|
+
import { ErrorParser } from "../interfaces/index.d.mts";
|
|
9
|
+
import { Statement } from "../query/Statement.d.mts";
|
|
10
10
|
import { Impersonatable, Logger } from "@decaf-ts/logging";
|
|
11
11
|
import { Lock } from "@decaf-ts/transactional-decorators";
|
|
12
|
-
import type { Dispatch } from "./Dispatch.
|
|
13
|
-
import { AdapterDispatch, type AdapterFlags, AllOperationKeys, type EventIds, FlagsOf, type ObserverFilter, PersistenceObservable, PersistenceObserver, PreparedModel, RawResult } from "./types.
|
|
14
|
-
import { ObserverHandler } from "./ObserverHandler.
|
|
15
|
-
import { Context } from "./Context.
|
|
12
|
+
import type { Dispatch } from "./Dispatch.d.mts";
|
|
13
|
+
import { AdapterDispatch, type AdapterFlags, AllOperationKeys, type EventIds, FlagsOf, type ObserverFilter, PersistenceObservable, PersistenceObserver, PreparedModel, RawResult } from "./types.d.mts";
|
|
14
|
+
import { ObserverHandler } from "./ObserverHandler.d.mts";
|
|
15
|
+
import { Context } from "./Context.d.mts";
|
|
16
16
|
import { type Constructor } from "@decaf-ts/decoration";
|
|
17
|
-
import { AbsContextual, ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
18
|
-
import { Paginator } from "../query/Paginator.
|
|
19
|
-
import { PreparedStatement } from "../query/types.
|
|
20
|
-
import { AdapterTransaction } from "./ContextLock.
|
|
17
|
+
import { AbsContextual, ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
18
|
+
import { Paginator } from "../query/Paginator.d.mts";
|
|
19
|
+
import { PreparedStatement } from "../query/types.d.mts";
|
|
20
|
+
import { AdapterTransaction } from "./ContextLock.d.mts";
|
|
21
21
|
export declare function resolveBulkSequenceResult<T>(result: T[] | PromiseSettledResult<T>[], continueOnError: boolean, log: Logger, operation: string): T[];
|
|
22
22
|
export type AdapterSubClass<A> = A extends Adapter<any, any, any, any> ? A : never;
|
|
23
23
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context as Ctx, type ContextFactory, type FlagsOfContext, OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
2
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
3
3
|
import type { Model } from "@decaf-ts/decorator-validation";
|
|
4
|
-
import { AdapterFlags, ContextFlags } from "./types.
|
|
4
|
+
import { AdapterFlags, ContextFlags } from "./types.d.cts";
|
|
5
5
|
export declare class Context<F extends ContextFlags<any> = AdapterFlags<any>> extends Ctx<F> {
|
|
6
6
|
constructor(ctx?: Context<any>);
|
|
7
7
|
static factory: ContextFactory<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context as Ctx, type ContextFactory, type FlagsOfContext, OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
2
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
3
3
|
import type { Model } from "@decaf-ts/decorator-validation";
|
|
4
|
-
import { AdapterFlags, ContextFlags } from "./types.
|
|
4
|
+
import { AdapterFlags, ContextFlags } from "./types.d.mts";
|
|
5
5
|
export declare class Context<F extends ContextFlags<any> = AdapterFlags<any>> extends Ctx<F> {
|
|
6
6
|
constructor(ctx?: Context<any>);
|
|
7
7
|
static factory: ContextFactory<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Lock } from "@decaf-ts/transactional-decorators";
|
|
2
|
-
import { type Adapter } from "./Adapter.
|
|
2
|
+
import { type Adapter } from "./Adapter.d.cts";
|
|
3
3
|
export declare class AdapterTransaction<A extends Adapter<any, any, any, any>> {
|
|
4
4
|
protected adapter: A;
|
|
5
5
|
constructor(adapter: A, ...args: any[]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Lock } from "@decaf-ts/transactional-decorators";
|
|
2
|
-
import { type Adapter } from "./Adapter.
|
|
2
|
+
import { type Adapter } from "./Adapter.d.mts";
|
|
3
3
|
export declare class AdapterTransaction<A extends Adapter<any, any, any, any>> {
|
|
4
4
|
protected adapter: A;
|
|
5
5
|
constructor(adapter: A, ...args: any[]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { Observer } from "../interfaces/index.
|
|
4
|
-
import { Adapter } from "./Adapter.
|
|
5
|
-
import { AdapterDispatch, ContextOf, EventIds } from "./types.
|
|
3
|
+
import { Observer } from "../interfaces/index.d.cts";
|
|
4
|
+
import { Adapter } from "./Adapter.d.cts";
|
|
5
|
+
import { AdapterDispatch, ContextOf, EventIds } from "./types.d.cts";
|
|
6
6
|
import { Constructor } from "@decaf-ts/decoration";
|
|
7
|
-
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
7
|
+
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
8
8
|
/**
|
|
9
9
|
* @description Dispatches database operation events to observers
|
|
10
10
|
* @summary The Dispatch class implements the Observable interface and is responsible for intercepting
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { Observer } from "../interfaces/index.
|
|
4
|
-
import { Adapter } from "./Adapter.
|
|
5
|
-
import { AdapterDispatch, ContextOf, EventIds } from "./types.
|
|
3
|
+
import { Observer } from "../interfaces/index.d.mts";
|
|
4
|
+
import { Adapter } from "./Adapter.d.mts";
|
|
5
|
+
import { AdapterDispatch, ContextOf, EventIds } from "./types.d.mts";
|
|
6
6
|
import { Constructor } from "@decaf-ts/decoration";
|
|
7
|
-
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
7
|
+
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
8
8
|
/**
|
|
9
9
|
* @description Dispatches database operation events to observers
|
|
10
10
|
* @summary The Dispatch class implements the Observable interface and is responsible for intercepting
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Observer } from "../interfaces/index.
|
|
2
|
-
import { EventIds, ObserverFilter, PersistenceObservable } from "./types.
|
|
1
|
+
import { Observer } from "../interfaces/index.d.cts";
|
|
2
|
+
import { EventIds, ObserverFilter, PersistenceObservable } from "./types.d.cts";
|
|
3
3
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
4
4
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
5
5
|
import { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import { ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
7
|
-
import { Context } from "./Context.
|
|
6
|
+
import { ContextualArgs } from "../utils/ContextualLoggedClass.d.cts";
|
|
7
|
+
import { Context } from "./Context.d.cts";
|
|
8
8
|
/**
|
|
9
9
|
* @description Manages a collection of observers for database events
|
|
10
10
|
* @summary The ObserverHandler class implements the Observable interface and provides a centralized
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Observer } from "../interfaces/index.
|
|
2
|
-
import { EventIds, ObserverFilter, PersistenceObservable } from "./types.
|
|
1
|
+
import { Observer } from "../interfaces/index.d.mts";
|
|
2
|
+
import { EventIds, ObserverFilter, PersistenceObservable } from "./types.d.mts";
|
|
3
3
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
4
4
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
5
5
|
import { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import { ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
7
|
-
import { Context } from "./Context.
|
|
6
|
+
import { ContextualArgs } from "../utils/ContextualLoggedClass.d.mts";
|
|
7
|
+
import { Context } from "./Context.d.mts";
|
|
8
8
|
/**
|
|
9
9
|
* @description Manages a collection of observers for database events
|
|
10
10
|
* @summary The ObserverHandler class implements the Observable interface and provides a centralized
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { SequenceOptions, SequenceOptionsType } from "../interfaces/SequenceOptions.
|
|
2
|
+
import { SequenceOptions, SequenceOptionsType } from "../interfaces/SequenceOptions.d.cts";
|
|
3
3
|
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
-
import { ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
5
|
-
import { Adapter } from "./Adapter.
|
|
6
|
-
import { Repo } from "../repository/Repository.
|
|
7
|
-
import { SequenceModel } from "../model/SequenceModel.
|
|
8
|
-
import { Context } from "./Context.
|
|
4
|
+
import { ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
5
|
+
import { Adapter } from "./Adapter.d.cts";
|
|
6
|
+
import { Repo } from "../repository/Repository.d.cts";
|
|
7
|
+
import { SequenceModel } from "../model/SequenceModel.d.cts";
|
|
8
|
+
import { Context } from "./Context.d.cts";
|
|
9
9
|
import { MultiLock } from "@decaf-ts/transactional-decorators";
|
|
10
|
-
import type { ContextOf, FlagsOf } from "./types.
|
|
10
|
+
import type { ContextOf, FlagsOf } from "./types.d.cts";
|
|
11
11
|
/**
|
|
12
12
|
* @description Abstract base class for sequence generation
|
|
13
13
|
* @summary Provides a framework for generating sequential values (like primary keys) in the persistence layer.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { SequenceOptions, SequenceOptionsType } from "../interfaces/SequenceOptions.
|
|
2
|
+
import { SequenceOptions, SequenceOptionsType } from "../interfaces/SequenceOptions.d.mts";
|
|
3
3
|
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
-
import { ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
5
|
-
import { Adapter } from "./Adapter.
|
|
6
|
-
import { Repo } from "../repository/Repository.
|
|
7
|
-
import { SequenceModel } from "../model/SequenceModel.
|
|
8
|
-
import { Context } from "./Context.
|
|
4
|
+
import { ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
5
|
+
import { Adapter } from "./Adapter.d.mts";
|
|
6
|
+
import { Repo } from "../repository/Repository.d.mts";
|
|
7
|
+
import { SequenceModel } from "../model/SequenceModel.d.mts";
|
|
8
|
+
import { Context } from "./Context.d.mts";
|
|
9
9
|
import { MultiLock } from "@decaf-ts/transactional-decorators";
|
|
10
|
-
import type { ContextOf, FlagsOf } from "./types.
|
|
10
|
+
import type { ContextOf, FlagsOf } from "./types.d.mts";
|
|
11
11
|
/**
|
|
12
12
|
* @description Abstract base class for sequence generation
|
|
13
13
|
* @summary Provides a framework for generating sequential values (like primary keys) in the persistence layer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { AdapterFlags, ContextFlags } from "./types.
|
|
3
|
-
import { PreparedStatementKeys } from "../query/constants.
|
|
2
|
+
import { AdapterFlags, ContextFlags } from "./types.d.cts";
|
|
3
|
+
import { PreparedStatementKeys } from "../query/constants.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @description Persistence-related constant keys
|
|
6
6
|
* @summary Enum containing string constants used throughout the persistence layer for metadata, relations, and other persistence-related operations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { AdapterFlags, ContextFlags } from "./types.
|
|
3
|
-
import { PreparedStatementKeys } from "../query/constants.
|
|
2
|
+
import { AdapterFlags, ContextFlags } from "./types.d.mts";
|
|
3
|
+
import { PreparedStatementKeys } from "../query/constants.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @description Persistence-related constant keys
|
|
6
6
|
* @summary Enum containing string constants used throughout the persistence layer for metadata, relations, and other persistence-related operations
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { ContextOf } from "./types.
|
|
3
|
-
import { Repo } from "../repository/Repository.
|
|
4
|
-
import { ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
2
|
+
import { ContextOf } from "./types.d.cts";
|
|
3
|
+
import { Repo } from "../repository/Repository.d.cts";
|
|
4
|
+
import { ContextualArgs } from "../utils/ContextualLoggedClass.d.cts";
|
|
5
5
|
/**
|
|
6
6
|
* @description Handler function that sets a timestamp property to the current timestamp.
|
|
7
7
|
* @summary Updates a model property with the current timestamp from the repository context.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { ContextOf } from "./types.
|
|
3
|
-
import { Repo } from "../repository/Repository.
|
|
4
|
-
import { ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
2
|
+
import { ContextOf } from "./types.d.mts";
|
|
3
|
+
import { Repo } from "../repository/Repository.d.mts";
|
|
4
|
+
import { ContextualArgs } from "../utils/ContextualLoggedClass.d.mts";
|
|
5
5
|
/**
|
|
6
6
|
* @description Handler function that sets a timestamp property to the current timestamp.
|
|
7
7
|
* @summary Updates a model property with the current timestamp from the repository context.
|