@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,9 +4,9 @@
|
|
|
4
4
|
* @module core/ram
|
|
5
5
|
*/
|
|
6
6
|
import "../overrides";
|
|
7
|
-
export * from "./constants.
|
|
8
|
-
export * from "./handlers.
|
|
9
|
-
export * from "./RamPaginator.
|
|
10
|
-
export * from "./RamStatement.
|
|
11
|
-
export * from "./types.
|
|
12
|
-
export * from "./RamAdapter.
|
|
7
|
+
export * from "./constants.d.mts";
|
|
8
|
+
export * from "./handlers.d.mts";
|
|
9
|
+
export * from "./RamPaginator.d.mts";
|
|
10
|
+
export * from "./RamStatement.d.mts";
|
|
11
|
+
export * from "./types.d.mts";
|
|
12
|
+
export * from "./RamAdapter.d.mts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { Repository } from "../repository/index.
|
|
2
|
+
import { Repository } from "../repository/index.d.cts";
|
|
3
3
|
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
-
import { Adapter, AdapterFlags } from "../persistence/index.
|
|
5
|
-
import { Context } from "../persistence/Context.
|
|
4
|
+
import { Adapter, AdapterFlags } from "../persistence/index.d.cts";
|
|
5
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
6
6
|
import { MultiLock } from "@decaf-ts/transactional-decorators";
|
|
7
7
|
import { PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { Repository } from "../repository/index.
|
|
2
|
+
import { Repository } from "../repository/index.d.mts";
|
|
3
3
|
import { Constructor } from "@decaf-ts/decoration";
|
|
4
|
-
import { Adapter, AdapterFlags } from "../persistence/index.
|
|
5
|
-
import { Context } from "../persistence/Context.
|
|
4
|
+
import { Adapter, AdapterFlags } from "../persistence/index.d.mts";
|
|
5
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
6
6
|
import { MultiLock } from "@decaf-ts/transactional-decorators";
|
|
7
7
|
import { PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
8
8
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { IRepository, Repository as Rep, PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { Logger } from "@decaf-ts/logging";
|
|
3
|
-
import { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
4
|
-
import { Adapter } from "../persistence/Adapter.
|
|
5
|
-
import { ObserverHandler } from "../persistence/ObserverHandler.
|
|
6
|
-
import type { DirectionLimitOffset, QueryOptions } from "../query/types.
|
|
7
|
-
import { SelectSelector } from "../query/selectors.
|
|
8
|
-
import { CountWhereOption, WhereOption } from "../query/options.
|
|
9
|
-
import { Condition } from "../query/Condition.
|
|
10
|
-
import { Queriable } from "../interfaces/Queriable.
|
|
11
|
-
import { SequenceOptions } from "../interfaces/SequenceOptions.
|
|
12
|
-
import { OrderDirection } from "./constants.
|
|
13
|
-
import type { AllOperationKeys, ContextOf, EventIds, FlagsOf, InferredAdapterConfig, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.
|
|
14
|
-
import type { Observer } from "../interfaces/Observer.
|
|
3
|
+
import { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
4
|
+
import { Adapter } from "../persistence/Adapter.d.cts";
|
|
5
|
+
import { ObserverHandler } from "../persistence/ObserverHandler.d.cts";
|
|
6
|
+
import type { DirectionLimitOffset, QueryOptions } from "../query/types.d.cts";
|
|
7
|
+
import { SelectSelector } from "../query/selectors.d.cts";
|
|
8
|
+
import { CountWhereOption, WhereOption } from "../query/options.d.cts";
|
|
9
|
+
import { Condition } from "../query/Condition.d.cts";
|
|
10
|
+
import { Queriable } from "../interfaces/Queriable.d.cts";
|
|
11
|
+
import { SequenceOptions } from "../interfaces/SequenceOptions.d.cts";
|
|
12
|
+
import { OrderDirection } from "./constants.d.cts";
|
|
13
|
+
import type { AllOperationKeys, ContextOf, EventIds, FlagsOf, InferredAdapterConfig, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.d.cts";
|
|
14
|
+
import type { Observer } from "../interfaces/Observer.d.cts";
|
|
15
15
|
import { Constructor } from "@decaf-ts/decoration";
|
|
16
16
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
17
|
-
import { SerializedPage } from "../query/Paginator.
|
|
17
|
+
import { SerializedPage } from "../query/Paginator.d.cts";
|
|
18
18
|
/**
|
|
19
19
|
* @description Type alias for Repository class with simplified generic parameters.
|
|
20
20
|
* @summary Provides a more concise way to reference the Repository class with its generic parameters.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { IRepository, Repository as Rep, PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { Logger } from "@decaf-ts/logging";
|
|
3
|
-
import { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
4
|
-
import { Adapter } from "../persistence/Adapter.
|
|
5
|
-
import { ObserverHandler } from "../persistence/ObserverHandler.
|
|
6
|
-
import type { DirectionLimitOffset, QueryOptions } from "../query/types.
|
|
7
|
-
import { SelectSelector } from "../query/selectors.
|
|
8
|
-
import { CountWhereOption, WhereOption } from "../query/options.
|
|
9
|
-
import { Condition } from "../query/Condition.
|
|
10
|
-
import { Queriable } from "../interfaces/Queriable.
|
|
11
|
-
import { SequenceOptions } from "../interfaces/SequenceOptions.
|
|
12
|
-
import { OrderDirection } from "./constants.
|
|
13
|
-
import type { AllOperationKeys, ContextOf, EventIds, FlagsOf, InferredAdapterConfig, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.
|
|
14
|
-
import type { Observer } from "../interfaces/Observer.
|
|
3
|
+
import { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
4
|
+
import { Adapter } from "../persistence/Adapter.d.mts";
|
|
5
|
+
import { ObserverHandler } from "../persistence/ObserverHandler.d.mts";
|
|
6
|
+
import type { DirectionLimitOffset, QueryOptions } from "../query/types.d.mts";
|
|
7
|
+
import { SelectSelector } from "../query/selectors.d.mts";
|
|
8
|
+
import { CountWhereOption, WhereOption } from "../query/options.d.mts";
|
|
9
|
+
import { Condition } from "../query/Condition.d.mts";
|
|
10
|
+
import { Queriable } from "../interfaces/Queriable.d.mts";
|
|
11
|
+
import { SequenceOptions } from "../interfaces/SequenceOptions.d.mts";
|
|
12
|
+
import { OrderDirection } from "./constants.d.mts";
|
|
13
|
+
import type { AllOperationKeys, ContextOf, EventIds, FlagsOf, InferredAdapterConfig, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.d.mts";
|
|
14
|
+
import type { Observer } from "../interfaces/Observer.d.mts";
|
|
15
15
|
import { Constructor } from "@decaf-ts/decoration";
|
|
16
16
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
17
|
-
import { SerializedPage } from "../query/Paginator.
|
|
17
|
+
import { SerializedPage } from "../query/Paginator.d.mts";
|
|
18
18
|
/**
|
|
19
19
|
* @description Type alias for Repository class with simplified generic parameters.
|
|
20
20
|
* @summary Provides a more concise way to reference the Repository class with its generic parameters.
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the repository functionality, including constants, decorators, and more.
|
|
4
4
|
* @module core/repository
|
|
5
5
|
*/
|
|
6
|
-
export * from "./constants.
|
|
7
|
-
export * from "./decorators.
|
|
8
|
-
export * from "./errors.
|
|
9
|
-
export * from "./injectables.
|
|
10
|
-
export * from "./Repository.
|
|
11
|
-
export * from "./types.
|
|
12
|
-
export * from "./utils.
|
|
6
|
+
export * from "./constants.d.cts";
|
|
7
|
+
export * from "./decorators.d.cts";
|
|
8
|
+
export * from "./errors.d.cts";
|
|
9
|
+
export * from "./injectables.d.cts";
|
|
10
|
+
export * from "./Repository.d.cts";
|
|
11
|
+
export * from "./types.d.cts";
|
|
12
|
+
export * from "./utils.d.cts";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the repository functionality, including constants, decorators, and more.
|
|
4
4
|
* @module core/repository
|
|
5
5
|
*/
|
|
6
|
-
export * from "./constants.
|
|
7
|
-
export * from "./decorators.
|
|
8
|
-
export * from "./errors.
|
|
9
|
-
export * from "./injectables.
|
|
10
|
-
export * from "./Repository.
|
|
11
|
-
export * from "./types.
|
|
12
|
-
export * from "./utils.
|
|
6
|
+
export * from "./constants.d.mts";
|
|
7
|
+
export * from "./decorators.d.mts";
|
|
8
|
+
export * from "./errors.d.mts";
|
|
9
|
+
export * from "./injectables.d.mts";
|
|
10
|
+
export * from "./Repository.d.mts";
|
|
11
|
+
export * from "./types.d.mts";
|
|
12
|
+
export * from "./utils.d.mts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cascade, OrderDirection } from "./constants.
|
|
1
|
+
import { Cascade, OrderDirection } from "./constants.d.cts";
|
|
2
2
|
/**
|
|
3
3
|
* @description Metadata for cascade operations on related entities.
|
|
4
4
|
* @summary Defines how update and delete operations should cascade to related entities.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cascade, OrderDirection } from "./constants.
|
|
1
|
+
import { Cascade, OrderDirection } from "./constants.d.mts";
|
|
2
2
|
/**
|
|
3
3
|
* @description Metadata for cascade operations on related entities.
|
|
4
4
|
* @summary Defines how update and delete operations should cascade to related entities.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type Constructor } from "@decaf-ts/decoration";
|
|
2
2
|
import { Model, type ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { type Repo } from "../repository/Repository.
|
|
4
|
-
import { Service } from "./services.
|
|
5
|
-
import type { AllOperationKeys, ContextOf, EventIds, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.
|
|
3
|
+
import { type Repo } from "../repository/Repository.d.cts";
|
|
4
|
+
import { Service } from "./services.d.cts";
|
|
5
|
+
import type { AllOperationKeys, ContextOf, EventIds, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.d.cts";
|
|
6
6
|
import { type IRepository, type PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
7
|
-
import type { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
8
|
-
import { OrderDirection } from "../repository/constants.
|
|
9
|
-
import { type DirectionLimitOffset } from "../query/types.
|
|
10
|
-
import { type Observer } from "../interfaces/index.
|
|
11
|
-
import { SelectSelector, WhereOption } from "../query/index.
|
|
7
|
+
import type { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
8
|
+
import { OrderDirection } from "../repository/constants.d.cts";
|
|
9
|
+
import { type DirectionLimitOffset } from "../query/types.d.cts";
|
|
10
|
+
import { type Observer } from "../interfaces/index.d.cts";
|
|
11
|
+
import { SelectSelector, WhereOption } from "../query/index.d.cts";
|
|
12
12
|
export type ArrayMode = "one" | "many";
|
|
13
13
|
export declare class ModelService<M extends Model<boolean>, R extends Repo<M> = Repo<M>> extends Service implements IRepository<M, ContextOf<R>>, PersistenceObservable<ContextOf<R>>, PersistenceObserver<ContextOf<R>> {
|
|
14
14
|
private readonly clazz;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type Constructor } from "@decaf-ts/decoration";
|
|
2
2
|
import { Model, type ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { type Repo } from "../repository/Repository.
|
|
4
|
-
import { Service } from "./services.
|
|
5
|
-
import type { AllOperationKeys, ContextOf, EventIds, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.
|
|
3
|
+
import { type Repo } from "../repository/Repository.d.mts";
|
|
4
|
+
import { Service } from "./services.d.mts";
|
|
5
|
+
import type { AllOperationKeys, ContextOf, EventIds, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.d.mts";
|
|
6
6
|
import { type IRepository, type PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
7
|
-
import type { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
8
|
-
import { OrderDirection } from "../repository/constants.
|
|
9
|
-
import { type DirectionLimitOffset } from "../query/types.
|
|
10
|
-
import { type Observer } from "../interfaces/index.
|
|
11
|
-
import { SelectSelector, WhereOption } from "../query/index.
|
|
7
|
+
import type { ContextualArgs, ContextualizedArgs, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
8
|
+
import { OrderDirection } from "../repository/constants.d.mts";
|
|
9
|
+
import { type DirectionLimitOffset } from "../query/types.d.mts";
|
|
10
|
+
import { type Observer } from "../interfaces/index.d.mts";
|
|
11
|
+
import { SelectSelector, WhereOption } from "../query/index.d.mts";
|
|
12
12
|
export type ArrayMode = "one" | "many";
|
|
13
13
|
export declare class ModelService<M extends Model<boolean>, R extends Repo<M> = Repo<M>> extends Service implements IRepository<M, ContextOf<R>>, PersistenceObservable<ContextOf<R>>, PersistenceObserver<ContextOf<R>> {
|
|
14
14
|
private readonly clazz;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClientBasedService } from "./services.
|
|
2
|
-
import { Adapter } from "../persistence/Adapter.
|
|
3
|
-
import { ConfigOf, ContextOf } from "../persistence/types.
|
|
4
|
-
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.
|
|
1
|
+
import { ClientBasedService } from "./services.d.cts";
|
|
2
|
+
import { Adapter } from "../persistence/Adapter.d.cts";
|
|
3
|
+
import { ConfigOf, ContextOf } from "../persistence/types.d.cts";
|
|
4
|
+
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.d.cts";
|
|
5
5
|
import { Constructor } from "@decaf-ts/decoration";
|
|
6
6
|
export declare class PersistenceService<A extends Adapter<any, any, any, any>> extends ClientBasedService<A[], [
|
|
7
7
|
Constructor<A>,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClientBasedService } from "./services.
|
|
2
|
-
import { Adapter } from "../persistence/Adapter.
|
|
3
|
-
import { ConfigOf, ContextOf } from "../persistence/types.
|
|
4
|
-
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.
|
|
1
|
+
import { ClientBasedService } from "./services.d.mts";
|
|
2
|
+
import { Adapter } from "../persistence/Adapter.d.mts";
|
|
3
|
+
import { ConfigOf, ContextOf } from "../persistence/types.d.mts";
|
|
4
|
+
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.d.mts";
|
|
5
5
|
import { Constructor } from "@decaf-ts/decoration";
|
|
6
6
|
export declare class PersistenceService<A extends Adapter<any, any, any, any>> extends ClientBasedService<A[], [
|
|
7
7
|
Constructor<A>,
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the services functionality, including ModelService, PersistenceService, and services.
|
|
4
4
|
* @module core/services
|
|
5
5
|
*/
|
|
6
|
-
export * from "./ModelService.
|
|
7
|
-
export * from "./PersistenceService.
|
|
8
|
-
export * from "./services.
|
|
6
|
+
export * from "./ModelService.d.cts";
|
|
7
|
+
export * from "./PersistenceService.d.cts";
|
|
8
|
+
export * from "./services.d.cts";
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the services functionality, including ModelService, PersistenceService, and services.
|
|
4
4
|
* @module core/services
|
|
5
5
|
*/
|
|
6
|
-
export * from "./ModelService.
|
|
7
|
-
export * from "./PersistenceService.
|
|
8
|
-
export * from "./services.
|
|
6
|
+
export * from "./ModelService.d.mts";
|
|
7
|
+
export * from "./PersistenceService.d.mts";
|
|
8
|
+
export * from "./services.d.mts";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AllOperationKeys, ContextFlags, EventIds, FlagsOf, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.
|
|
2
|
-
import { Context } from "../persistence/Context.
|
|
3
|
-
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
1
|
+
import type { AllOperationKeys, ContextFlags, EventIds, FlagsOf, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.d.cts";
|
|
2
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
3
|
+
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
import type { Observer } from "../interfaces/Observer.
|
|
6
|
-
import { ObserverHandler } from "../persistence/ObserverHandler.
|
|
5
|
+
import type { Observer } from "../interfaces/Observer.d.cts";
|
|
6
|
+
import { ObserverHandler } from "../persistence/ObserverHandler.d.cts";
|
|
7
7
|
export declare abstract class Service<C extends Context<ContextFlags<any>> = Context<ContextFlags<any>>> extends ContextualLoggedClass<C> implements PersistenceObservable<C>, PersistenceObserver<C> {
|
|
8
8
|
readonly name?: string | undefined;
|
|
9
9
|
protected observers: Observer[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { AllOperationKeys, ContextFlags, EventIds, FlagsOf, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.
|
|
2
|
-
import { Context } from "../persistence/Context.
|
|
3
|
-
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
1
|
+
import type { AllOperationKeys, ContextFlags, EventIds, FlagsOf, ObserverFilter, PersistenceObservable, PersistenceObserver } from "../persistence/types.d.mts";
|
|
2
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
3
|
+
import { ContextualArgs, ContextualizedArgs, ContextualLoggedClass, MaybeContextualArg, MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
import type { Observer } from "../interfaces/Observer.
|
|
6
|
-
import { ObserverHandler } from "../persistence/ObserverHandler.
|
|
5
|
+
import type { Observer } from "../interfaces/Observer.d.mts";
|
|
6
|
+
import { ObserverHandler } from "../persistence/ObserverHandler.d.mts";
|
|
7
7
|
export declare abstract class Service<C extends Context<ContextFlags<any>> = Context<ContextFlags<any>>> extends ContextualLoggedClass<C> implements PersistenceObservable<C>, PersistenceObserver<C> {
|
|
8
8
|
readonly name?: string | undefined;
|
|
9
9
|
protected observers: Observer[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TaskHandler } from "./TaskHandler.
|
|
2
|
-
import { TaskContext } from "./TaskContext.
|
|
3
|
-
import { type Repo } from "../repository/Repository.
|
|
4
|
-
import { TaskModel } from "./models/TaskModel.
|
|
5
|
-
import { Condition } from "../query/Condition.
|
|
1
|
+
import { TaskHandler } from "./TaskHandler.d.cts";
|
|
2
|
+
import { TaskContext } from "./TaskContext.d.cts";
|
|
3
|
+
import { type Repo } from "../repository/Repository.d.cts";
|
|
4
|
+
import { TaskModel } from "./models/TaskModel.d.cts";
|
|
5
|
+
import { Condition } from "../query/Condition.d.cts";
|
|
6
6
|
export type CleanUpTaskInput = {
|
|
7
7
|
successfulExpiry: Date;
|
|
8
8
|
failedExpiry: Date;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TaskHandler } from "./TaskHandler.
|
|
2
|
-
import { TaskContext } from "./TaskContext.
|
|
3
|
-
import { type Repo } from "../repository/Repository.
|
|
4
|
-
import { TaskModel } from "./models/TaskModel.
|
|
5
|
-
import { Condition } from "../query/Condition.
|
|
1
|
+
import { TaskHandler } from "./TaskHandler.d.mts";
|
|
2
|
+
import { TaskContext } from "./TaskContext.d.mts";
|
|
3
|
+
import { type Repo } from "../repository/Repository.d.mts";
|
|
4
|
+
import { TaskModel } from "./models/TaskModel.d.mts";
|
|
5
|
+
import { Condition } from "../query/Condition.d.mts";
|
|
6
6
|
export type CleanUpTaskInput = {
|
|
7
7
|
successfulExpiry: Date;
|
|
8
8
|
failedExpiry: Date;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Context } from "../persistence/Context.
|
|
2
|
-
import { TaskFlags } from "./types.
|
|
3
|
-
import { TaskLogger } from "./logging.
|
|
1
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
2
|
+
import { TaskFlags } from "./types.d.cts";
|
|
3
|
+
import { TaskLogger } from "./logging.d.cts";
|
|
4
4
|
import { DateTarget } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
6
|
-
import { TaskStatus } from "./constants.
|
|
7
|
-
import { TaskStateChangeRequest } from "./TaskStateChangeError.
|
|
8
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
5
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.cts";
|
|
6
|
+
import { TaskStatus } from "./constants.d.cts";
|
|
7
|
+
import { TaskStateChangeRequest } from "./TaskStateChangeError.d.cts";
|
|
8
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.cts";
|
|
9
9
|
export declare class TaskContext extends Context<TaskFlags> {
|
|
10
10
|
get taskId(): string;
|
|
11
11
|
get logger(): TaskLogger<any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Context } from "../persistence/Context.
|
|
2
|
-
import { TaskFlags } from "./types.
|
|
3
|
-
import { TaskLogger } from "./logging.
|
|
1
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
2
|
+
import { TaskFlags } from "./types.d.mts";
|
|
3
|
+
import { TaskLogger } from "./logging.d.mts";
|
|
4
4
|
import { DateTarget } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
6
|
-
import { TaskStatus } from "./constants.
|
|
7
|
-
import { TaskStateChangeRequest } from "./TaskStateChangeError.
|
|
8
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
5
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.mts";
|
|
6
|
+
import { TaskStatus } from "./constants.d.mts";
|
|
7
|
+
import { TaskStateChangeRequest } from "./TaskStateChangeError.d.mts";
|
|
8
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.mts";
|
|
9
9
|
export declare class TaskContext extends Context<TaskFlags> {
|
|
10
10
|
get taskId(): string;
|
|
11
11
|
get logger(): TaskLogger<any>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { TaskModel } from "./models/TaskModel.
|
|
2
|
-
import { Repo } from "../repository/Repository.
|
|
3
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
4
|
-
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.
|
|
5
|
-
import { TaskEventBus } from "./TaskEventBus.
|
|
6
|
-
import { TaskStepResultModel } from "./models/TaskStepResultModel.
|
|
7
|
-
import { TaskLogEntryModel } from "./models/TaskLogEntryModel.
|
|
8
|
-
import { TaskBackoffModel } from "./models/TaskBackoffModel.
|
|
9
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
10
|
-
import { TaskEventType, TaskStatus } from "./constants.
|
|
11
|
-
import { Adapter } from "../persistence/Adapter.
|
|
12
|
-
import { Context } from "../persistence/Context.
|
|
13
|
-
import { ContextOf, FlagsOf } from "../persistence/types.
|
|
1
|
+
import { TaskModel } from "./models/TaskModel.d.cts";
|
|
2
|
+
import { Repo } from "../repository/Repository.d.cts";
|
|
3
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.cts";
|
|
4
|
+
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.d.cts";
|
|
5
|
+
import { TaskEventBus } from "./TaskEventBus.d.cts";
|
|
6
|
+
import { TaskStepResultModel } from "./models/TaskStepResultModel.d.cts";
|
|
7
|
+
import { TaskLogEntryModel } from "./models/TaskLogEntryModel.d.cts";
|
|
8
|
+
import { TaskBackoffModel } from "./models/TaskBackoffModel.d.cts";
|
|
9
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.cts";
|
|
10
|
+
import { TaskEventType, TaskStatus } from "./constants.d.cts";
|
|
11
|
+
import { Adapter } from "../persistence/Adapter.d.cts";
|
|
12
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
13
|
+
import { ContextOf, FlagsOf } from "../persistence/types.d.cts";
|
|
14
14
|
import { LogLevel } from "@decaf-ts/logging";
|
|
15
|
-
import { AbsContextual, ContextualArgs, MaybeContextualArg } from "../utils/ContextualLoggedClass.
|
|
15
|
+
import { AbsContextual, ContextualArgs, MaybeContextualArg } from "../utils/ContextualLoggedClass.d.cts";
|
|
16
16
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
17
|
-
import { TaskContext } from "./TaskContext.
|
|
18
|
-
import { TaskStateChangeRequest } from "./TaskStateChangeError.
|
|
17
|
+
import { TaskContext } from "./TaskContext.d.cts";
|
|
18
|
+
import { TaskStateChangeRequest } from "./TaskStateChangeError.d.cts";
|
|
19
19
|
import { DateTarget } from "@decaf-ts/decorator-validation";
|
|
20
20
|
import { Constructor } from "@decaf-ts/decoration";
|
|
21
|
-
import { TaskEngineConfig, TaskFlags } from "./types.
|
|
22
|
-
import { TaskTracker } from "./TaskTracker.
|
|
21
|
+
import { TaskEngineConfig, TaskFlags } from "./types.d.cts";
|
|
22
|
+
import { TaskTracker } from "./TaskTracker.d.cts";
|
|
23
23
|
import { Lock } from "@decaf-ts/transactional-decorators";
|
|
24
24
|
type ParsedTaskDependency = {
|
|
25
25
|
taskId: string;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { TaskModel } from "./models/TaskModel.
|
|
2
|
-
import { Repo } from "../repository/Repository.
|
|
3
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
4
|
-
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.
|
|
5
|
-
import { TaskEventBus } from "./TaskEventBus.
|
|
6
|
-
import { TaskStepResultModel } from "./models/TaskStepResultModel.
|
|
7
|
-
import { TaskLogEntryModel } from "./models/TaskLogEntryModel.
|
|
8
|
-
import { TaskBackoffModel } from "./models/TaskBackoffModel.
|
|
9
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
10
|
-
import { TaskEventType, TaskStatus } from "./constants.
|
|
11
|
-
import { Adapter } from "../persistence/Adapter.
|
|
12
|
-
import { Context } from "../persistence/Context.
|
|
13
|
-
import { ContextOf, FlagsOf } from "../persistence/types.
|
|
1
|
+
import { TaskModel } from "./models/TaskModel.d.mts";
|
|
2
|
+
import { Repo } from "../repository/Repository.d.mts";
|
|
3
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.mts";
|
|
4
|
+
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.d.mts";
|
|
5
|
+
import { TaskEventBus } from "./TaskEventBus.d.mts";
|
|
6
|
+
import { TaskStepResultModel } from "./models/TaskStepResultModel.d.mts";
|
|
7
|
+
import { TaskLogEntryModel } from "./models/TaskLogEntryModel.d.mts";
|
|
8
|
+
import { TaskBackoffModel } from "./models/TaskBackoffModel.d.mts";
|
|
9
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.mts";
|
|
10
|
+
import { TaskEventType, TaskStatus } from "./constants.d.mts";
|
|
11
|
+
import { Adapter } from "../persistence/Adapter.d.mts";
|
|
12
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
13
|
+
import { ContextOf, FlagsOf } from "../persistence/types.d.mts";
|
|
14
14
|
import { LogLevel } from "@decaf-ts/logging";
|
|
15
|
-
import { AbsContextual, ContextualArgs, MaybeContextualArg } from "../utils/ContextualLoggedClass.
|
|
15
|
+
import { AbsContextual, ContextualArgs, MaybeContextualArg } from "../utils/ContextualLoggedClass.d.mts";
|
|
16
16
|
import { OperationKeys } from "@decaf-ts/db-decorators";
|
|
17
|
-
import { TaskContext } from "./TaskContext.
|
|
18
|
-
import { TaskStateChangeRequest } from "./TaskStateChangeError.
|
|
17
|
+
import { TaskContext } from "./TaskContext.d.mts";
|
|
18
|
+
import { TaskStateChangeRequest } from "./TaskStateChangeError.d.mts";
|
|
19
19
|
import { DateTarget } from "@decaf-ts/decorator-validation";
|
|
20
20
|
import { Constructor } from "@decaf-ts/decoration";
|
|
21
|
-
import { TaskEngineConfig, TaskFlags } from "./types.
|
|
22
|
-
import { TaskTracker } from "./TaskTracker.
|
|
21
|
+
import { TaskEngineConfig, TaskFlags } from "./types.d.mts";
|
|
22
|
+
import { TaskTracker } from "./TaskTracker.d.mts";
|
|
23
23
|
import { Lock } from "@decaf-ts/transactional-decorators";
|
|
24
24
|
type ParsedTaskDependency = {
|
|
25
25
|
taskId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseError } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
3
|
-
import { TaskStatus } from "./constants.
|
|
2
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.cts";
|
|
3
|
+
import { TaskStatus } from "./constants.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* Represents the next action to take after a task error.
|
|
6
6
|
* Used to identify the appropriate response to task failures.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseError } from "@decaf-ts/db-decorators";
|
|
2
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
3
|
-
import { TaskStatus } from "./constants.
|
|
2
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.mts";
|
|
3
|
+
import { TaskStatus } from "./constants.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* Represents the next action to take after a task error.
|
|
6
6
|
* Used to identify the appropriate response to task failures.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
2
|
-
import { Context } from "../persistence/Context.
|
|
3
|
-
import { ObserverHandler } from "../persistence/ObserverHandler.
|
|
4
|
-
import { EventIds, ObserverFilter } from "../persistence/types.
|
|
5
|
-
import { TaskContext } from "./TaskContext.
|
|
6
|
-
import { Observer } from "../interfaces/Observer.
|
|
1
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.cts";
|
|
2
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
3
|
+
import { ObserverHandler } from "../persistence/ObserverHandler.d.cts";
|
|
4
|
+
import { EventIds, ObserverFilter } from "../persistence/types.d.cts";
|
|
5
|
+
import { TaskContext } from "./TaskContext.d.cts";
|
|
6
|
+
import { Observer } from "../interfaces/Observer.d.cts";
|
|
7
7
|
import { Constructor } from "@decaf-ts/decoration";
|
|
8
8
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
9
|
-
import { ContextualArgs } from "../utils/index.
|
|
9
|
+
import { ContextualArgs } from "../utils/index.d.cts";
|
|
10
10
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
11
|
export declare class TaskEventBus extends ObserverHandler<TaskContext> {
|
|
12
12
|
protected readonly listeners: Set<(evt: TaskEventModel) => void>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
2
|
-
import { Context } from "../persistence/Context.
|
|
3
|
-
import { ObserverHandler } from "../persistence/ObserverHandler.
|
|
4
|
-
import { EventIds, ObserverFilter } from "../persistence/types.
|
|
5
|
-
import { TaskContext } from "./TaskContext.
|
|
6
|
-
import { Observer } from "../interfaces/Observer.
|
|
1
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.mts";
|
|
2
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
3
|
+
import { ObserverHandler } from "../persistence/ObserverHandler.d.mts";
|
|
4
|
+
import { EventIds, ObserverFilter } from "../persistence/types.d.mts";
|
|
5
|
+
import { TaskContext } from "./TaskContext.d.mts";
|
|
6
|
+
import { Observer } from "../interfaces/Observer.d.mts";
|
|
7
7
|
import { Constructor } from "@decaf-ts/decoration";
|
|
8
8
|
import { BulkCrudOperationKeys, OperationKeys } from "@decaf-ts/db-decorators";
|
|
9
|
-
import { ContextualArgs } from "../utils/index.
|
|
9
|
+
import { ContextualArgs } from "../utils/index.d.mts";
|
|
10
10
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
11
11
|
export declare class TaskEventBus extends ObserverHandler<TaskContext> {
|
|
12
12
|
protected readonly listeners: Set<(evt: TaskEventModel) => void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Repo } from "../repository/Repository.
|
|
2
|
-
import { ModelService } from "../services/ModelService.
|
|
3
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
1
|
+
import { type Repo } from "../repository/Repository.d.cts";
|
|
2
|
+
import { ModelService } from "../services/ModelService.d.cts";
|
|
3
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.cts";
|
|
4
4
|
export declare class TaskEventService extends ModelService<TaskEventModel> {
|
|
5
5
|
constructor();
|
|
6
6
|
get repo(): Repo<TaskEventModel>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Repo } from "../repository/Repository.
|
|
2
|
-
import { ModelService } from "../services/ModelService.
|
|
3
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
1
|
+
import { type Repo } from "../repository/Repository.d.mts";
|
|
2
|
+
import { ModelService } from "../services/ModelService.d.mts";
|
|
3
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.mts";
|
|
4
4
|
export declare class TaskEventService extends ModelService<TaskEventModel> {
|
|
5
5
|
constructor();
|
|
6
6
|
get repo(): Repo<TaskEventModel>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITaskHandler } from "./types.
|
|
2
|
-
import { AbsContextual, ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
3
|
-
import { TaskContext } from "./TaskContext.
|
|
1
|
+
import { ITaskHandler } from "./types.d.cts";
|
|
2
|
+
import { AbsContextual, ContextualArgs } from "../utils/ContextualLoggedClass.d.cts";
|
|
3
|
+
import { TaskContext } from "./TaskContext.d.cts";
|
|
4
4
|
export declare abstract class TaskHandler<I, O> extends AbsContextual<TaskContext> implements ITaskHandler<I, O> {
|
|
5
5
|
private _type?;
|
|
6
6
|
get type(): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITaskHandler } from "./types.
|
|
2
|
-
import { AbsContextual, ContextualArgs } from "../utils/ContextualLoggedClass.
|
|
3
|
-
import { TaskContext } from "./TaskContext.
|
|
1
|
+
import { ITaskHandler } from "./types.d.mts";
|
|
2
|
+
import { AbsContextual, ContextualArgs } from "../utils/ContextualLoggedClass.d.mts";
|
|
3
|
+
import { TaskContext } from "./TaskContext.d.mts";
|
|
4
4
|
export declare abstract class TaskHandler<I, O> extends AbsContextual<TaskContext> implements ITaskHandler<I, O> {
|
|
5
5
|
private _type?;
|
|
6
6
|
get type(): string;
|