@decaf-ts/core 0.23.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
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { type ContextualArgs, type ContextualizedArgs, type MaybeContextualArg, type MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
2
|
-
import { ClientBasedService } from "../services/services.
|
|
3
|
-
import { TaskEngine } from "./TaskEngine.
|
|
4
|
-
import { Adapter } from "../persistence/Adapter.
|
|
5
|
-
import { type AllOperationKeys, type ContextOf, type EventIds, type ObserverFilter } from "../persistence/types.
|
|
1
|
+
import { type ContextualArgs, type ContextualizedArgs, type MaybeContextualArg, type MethodOrOperation } from "../utils/ContextualLoggedClass.d.cts";
|
|
2
|
+
import { ClientBasedService } from "../services/services.d.cts";
|
|
3
|
+
import { TaskEngine } from "./TaskEngine.d.cts";
|
|
4
|
+
import { Adapter } from "../persistence/Adapter.d.cts";
|
|
5
|
+
import { type AllOperationKeys, type ContextOf, type EventIds, type ObserverFilter } from "../persistence/types.d.cts";
|
|
6
6
|
import { type PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
7
|
-
import { OrderDirection } from "../repository/constants.
|
|
8
|
-
import { type Repo } from "../repository/Repository.
|
|
9
|
-
import { TaskModel } from "./models/TaskModel.
|
|
10
|
-
import { type DirectionLimitOffset } from "../query/types.
|
|
7
|
+
import { OrderDirection } from "../repository/constants.d.cts";
|
|
8
|
+
import { type Repo } from "../repository/Repository.d.cts";
|
|
9
|
+
import { TaskModel } from "./models/TaskModel.d.cts";
|
|
10
|
+
import { type DirectionLimitOffset } from "../query/types.d.cts";
|
|
11
11
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
12
|
-
import type { Observer } from "../interfaces/Observer.
|
|
13
|
-
import type { ArrayMode } from "../services/ModelService.
|
|
14
|
-
import { TaskEngineConfig } from "./types.
|
|
15
|
-
import { TaskTracker } from "./TaskTracker.
|
|
16
|
-
import { TaskEventModel } from "./models/index.
|
|
17
|
-
import { SelectSelector, WhereOption } from "../query/index.
|
|
12
|
+
import type { Observer } from "../interfaces/Observer.d.cts";
|
|
13
|
+
import type { ArrayMode } from "../services/ModelService.d.cts";
|
|
14
|
+
import { TaskEngineConfig } from "./types.d.cts";
|
|
15
|
+
import { TaskTracker } from "./TaskTracker.d.cts";
|
|
16
|
+
import { TaskEventModel } from "./models/index.d.cts";
|
|
17
|
+
import { SelectSelector, WhereOption } from "../query/index.d.cts";
|
|
18
18
|
export type TaskServiceConfig<A extends Adapter<any, any, any, any>, T extends TaskEngine<A> = TaskEngine<A>, C extends TaskEngineConfig<A> = TaskEngineConfig<A>> = C & {
|
|
19
19
|
engine?: Constructor<T>;
|
|
20
20
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { type ContextualArgs, type ContextualizedArgs, type MaybeContextualArg, type MethodOrOperation } from "../utils/ContextualLoggedClass.
|
|
2
|
-
import { ClientBasedService } from "../services/services.
|
|
3
|
-
import { TaskEngine } from "./TaskEngine.
|
|
4
|
-
import { Adapter } from "../persistence/Adapter.
|
|
5
|
-
import { type AllOperationKeys, type ContextOf, type EventIds, type ObserverFilter } from "../persistence/types.
|
|
1
|
+
import { type ContextualArgs, type ContextualizedArgs, type MaybeContextualArg, type MethodOrOperation } from "../utils/ContextualLoggedClass.d.mts";
|
|
2
|
+
import { ClientBasedService } from "../services/services.d.mts";
|
|
3
|
+
import { TaskEngine } from "./TaskEngine.d.mts";
|
|
4
|
+
import { Adapter } from "../persistence/Adapter.d.mts";
|
|
5
|
+
import { type AllOperationKeys, type ContextOf, type EventIds, type ObserverFilter } from "../persistence/types.d.mts";
|
|
6
6
|
import { type PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
7
|
-
import { OrderDirection } from "../repository/constants.
|
|
8
|
-
import { type Repo } from "../repository/Repository.
|
|
9
|
-
import { TaskModel } from "./models/TaskModel.
|
|
10
|
-
import { type DirectionLimitOffset } from "../query/types.
|
|
7
|
+
import { OrderDirection } from "../repository/constants.d.mts";
|
|
8
|
+
import { type Repo } from "../repository/Repository.d.mts";
|
|
9
|
+
import { TaskModel } from "./models/TaskModel.d.mts";
|
|
10
|
+
import { type DirectionLimitOffset } from "../query/types.d.mts";
|
|
11
11
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
12
|
-
import type { Observer } from "../interfaces/Observer.
|
|
13
|
-
import type { ArrayMode } from "../services/ModelService.
|
|
14
|
-
import { TaskEngineConfig } from "./types.
|
|
15
|
-
import { TaskTracker } from "./TaskTracker.
|
|
16
|
-
import { TaskEventModel } from "./models/index.
|
|
17
|
-
import { SelectSelector, WhereOption } from "../query/index.
|
|
12
|
+
import type { Observer } from "../interfaces/Observer.d.mts";
|
|
13
|
+
import type { ArrayMode } from "../services/ModelService.d.mts";
|
|
14
|
+
import { TaskEngineConfig } from "./types.d.mts";
|
|
15
|
+
import { TaskTracker } from "./TaskTracker.d.mts";
|
|
16
|
+
import { TaskEventModel } from "./models/index.d.mts";
|
|
17
|
+
import { SelectSelector, WhereOption } from "../query/index.d.mts";
|
|
18
18
|
export type TaskServiceConfig<A extends Adapter<any, any, any, any>, T extends TaskEngine<A> = TaskEngine<A>, C extends TaskEngineConfig<A> = TaskEngineConfig<A>> = C & {
|
|
19
19
|
engine?: Constructor<T>;
|
|
20
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TaskStatus } from "./constants.
|
|
2
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
1
|
+
import { TaskStatus } from "./constants.d.cts";
|
|
2
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.cts";
|
|
3
3
|
export interface TaskStateChangeRequest {
|
|
4
4
|
status: TaskStatus;
|
|
5
5
|
error?: TaskErrorModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TaskStatus } from "./constants.
|
|
2
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
1
|
+
import { TaskStatus } from "./constants.d.mts";
|
|
2
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.mts";
|
|
3
3
|
export interface TaskStateChangeRequest {
|
|
4
4
|
status: TaskStatus;
|
|
5
5
|
error?: TaskErrorModel;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Observer } from "../interfaces/Observer.
|
|
2
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
1
|
+
import { Observer } from "../interfaces/Observer.d.cts";
|
|
2
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.cts";
|
|
3
3
|
import { Logger } from "@decaf-ts/logging";
|
|
4
|
-
import { TaskEventType, TaskStatus } from "./constants.
|
|
5
|
-
import { EventPipe, LogPipe, LogPipeOptions } from "./types.
|
|
6
|
-
import { TaskModel } from "./models/TaskModel.
|
|
7
|
-
import { Context } from "../persistence/index.
|
|
8
|
-
import { TaskEventBus } from "./TaskEventBus.
|
|
9
|
-
import { TaskControlError } from "./TaskErrors.
|
|
4
|
+
import { TaskEventType, TaskStatus } from "./constants.d.cts";
|
|
5
|
+
import { EventPipe, LogPipe, LogPipeOptions } from "./types.d.cts";
|
|
6
|
+
import { TaskModel } from "./models/TaskModel.d.cts";
|
|
7
|
+
import { Context } from "../persistence/index.d.cts";
|
|
8
|
+
import { TaskEventBus } from "./TaskEventBus.d.cts";
|
|
9
|
+
import { TaskControlError } from "./TaskErrors.d.cts";
|
|
10
10
|
export declare class TaskTracker<O = any> implements Observer<[TaskEventModel, Context]> {
|
|
11
11
|
protected bus: TaskEventBus;
|
|
12
12
|
private readonly task;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Observer } from "../interfaces/Observer.
|
|
2
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
1
|
+
import { Observer } from "../interfaces/Observer.d.mts";
|
|
2
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.mts";
|
|
3
3
|
import { Logger } from "@decaf-ts/logging";
|
|
4
|
-
import { TaskEventType, TaskStatus } from "./constants.
|
|
5
|
-
import { EventPipe, LogPipe, LogPipeOptions } from "./types.
|
|
6
|
-
import { TaskModel } from "./models/TaskModel.
|
|
7
|
-
import { Context } from "../persistence/index.
|
|
8
|
-
import { TaskEventBus } from "./TaskEventBus.
|
|
9
|
-
import { TaskControlError } from "./TaskErrors.
|
|
4
|
+
import { TaskEventType, TaskStatus } from "./constants.d.mts";
|
|
5
|
+
import { EventPipe, LogPipe, LogPipeOptions } from "./types.d.mts";
|
|
6
|
+
import { TaskModel } from "./models/TaskModel.d.mts";
|
|
7
|
+
import { Context } from "../persistence/index.d.mts";
|
|
8
|
+
import { TaskEventBus } from "./TaskEventBus.d.mts";
|
|
9
|
+
import { TaskControlError } from "./TaskErrors.d.mts";
|
|
10
10
|
export declare class TaskTracker<O = any> implements Observer<[TaskEventModel, Context]> {
|
|
11
11
|
protected bus: TaskEventBus;
|
|
12
12
|
private readonly task;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaskModel } from "./models/TaskModel.
|
|
2
|
-
import { BackoffStrategy, JitterStrategy, TaskStatus, TaskType } from "./constants.
|
|
3
|
-
import { TaskBackoffModel } from "./models/index.
|
|
4
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
1
|
+
import { TaskModel } from "./models/TaskModel.d.cts";
|
|
2
|
+
import { BackoffStrategy, JitterStrategy, TaskStatus, TaskType } from "./constants.d.cts";
|
|
3
|
+
import { TaskBackoffModel } from "./models/index.d.cts";
|
|
4
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.cts";
|
|
5
5
|
import { Model, ModelArg } from "@decaf-ts/decorator-validation";
|
|
6
6
|
export declare class TaskBackoffBuilder<NESTED extends boolean = false> extends Model {
|
|
7
7
|
baseMs: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TaskModel } from "./models/TaskModel.
|
|
2
|
-
import { BackoffStrategy, JitterStrategy, TaskStatus, TaskType } from "./constants.
|
|
3
|
-
import { TaskBackoffModel } from "./models/index.
|
|
4
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
1
|
+
import { TaskModel } from "./models/TaskModel.d.mts";
|
|
2
|
+
import { BackoffStrategy, JitterStrategy, TaskStatus, TaskType } from "./constants.d.mts";
|
|
3
|
+
import { TaskBackoffModel } from "./models/index.d.mts";
|
|
4
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.mts";
|
|
5
5
|
import { Model, ModelArg } from "@decaf-ts/decorator-validation";
|
|
6
6
|
export declare class TaskBackoffBuilder<NESTED extends boolean = false> extends Model {
|
|
7
7
|
baseMs: number;
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
* @module core/tasks
|
|
5
5
|
*/
|
|
6
6
|
import "../overrides";
|
|
7
|
-
export * from "./models/index.
|
|
8
|
-
export * from "./builder.
|
|
9
|
-
export * from "./CleanUpTask.
|
|
10
|
-
export * from "./constants.
|
|
11
|
-
export * from "./decorators.
|
|
12
|
-
export * from "./logging.
|
|
13
|
-
export * from "./TaskContext.
|
|
14
|
-
export * from "./TaskEngine.
|
|
15
|
-
export * from "./TaskEventBus.
|
|
16
|
-
export * from "./TaskEventService.
|
|
17
|
-
export * from "./TaskHandler.
|
|
18
|
-
export * from "./TaskHandlerRegistry.
|
|
19
|
-
export * from "./TaskService.
|
|
20
|
-
export * from "./TaskTracker.
|
|
21
|
-
export * from "./types.
|
|
22
|
-
export * from "./utils.
|
|
23
|
-
export * from "./TaskErrors.
|
|
7
|
+
export * from "./models/index.d.cts";
|
|
8
|
+
export * from "./builder.d.cts";
|
|
9
|
+
export * from "./CleanUpTask.d.cts";
|
|
10
|
+
export * from "./constants.d.cts";
|
|
11
|
+
export * from "./decorators.d.cts";
|
|
12
|
+
export * from "./logging.d.cts";
|
|
13
|
+
export * from "./TaskContext.d.cts";
|
|
14
|
+
export * from "./TaskEngine.d.cts";
|
|
15
|
+
export * from "./TaskEventBus.d.cts";
|
|
16
|
+
export * from "./TaskEventService.d.cts";
|
|
17
|
+
export * from "./TaskHandler.d.cts";
|
|
18
|
+
export * from "./TaskHandlerRegistry.d.cts";
|
|
19
|
+
export * from "./TaskService.d.cts";
|
|
20
|
+
export * from "./TaskTracker.d.cts";
|
|
21
|
+
export * from "./types.d.cts";
|
|
22
|
+
export * from "./utils.d.cts";
|
|
23
|
+
export * from "./TaskErrors.d.cts";
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
* @module core/tasks
|
|
5
5
|
*/
|
|
6
6
|
import "../overrides";
|
|
7
|
-
export * from "./models/index.
|
|
8
|
-
export * from "./builder.
|
|
9
|
-
export * from "./CleanUpTask.
|
|
10
|
-
export * from "./constants.
|
|
11
|
-
export * from "./decorators.
|
|
12
|
-
export * from "./logging.
|
|
13
|
-
export * from "./TaskContext.
|
|
14
|
-
export * from "./TaskEngine.
|
|
15
|
-
export * from "./TaskEventBus.
|
|
16
|
-
export * from "./TaskEventService.
|
|
17
|
-
export * from "./TaskHandler.
|
|
18
|
-
export * from "./TaskHandlerRegistry.
|
|
19
|
-
export * from "./TaskService.
|
|
20
|
-
export * from "./TaskTracker.
|
|
21
|
-
export * from "./types.
|
|
22
|
-
export * from "./utils.
|
|
23
|
-
export * from "./TaskErrors.
|
|
7
|
+
export * from "./models/index.d.mts";
|
|
8
|
+
export * from "./builder.d.mts";
|
|
9
|
+
export * from "./CleanUpTask.d.mts";
|
|
10
|
+
export * from "./constants.d.mts";
|
|
11
|
+
export * from "./decorators.d.mts";
|
|
12
|
+
export * from "./logging.d.mts";
|
|
13
|
+
export * from "./TaskContext.d.mts";
|
|
14
|
+
export * from "./TaskEngine.d.mts";
|
|
15
|
+
export * from "./TaskEventBus.d.mts";
|
|
16
|
+
export * from "./TaskEventService.d.mts";
|
|
17
|
+
export * from "./TaskHandler.d.mts";
|
|
18
|
+
export * from "./TaskHandlerRegistry.d.mts";
|
|
19
|
+
export * from "./TaskService.d.mts";
|
|
20
|
+
export * from "./TaskTracker.d.mts";
|
|
21
|
+
export * from "./types.d.mts";
|
|
22
|
+
export * from "./utils.d.mts";
|
|
23
|
+
export * from "./TaskErrors.d.mts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyFunction, Logger, LoggingConfig, LogLevel, LogMeta, StringLike } from "@decaf-ts/logging";
|
|
2
|
-
import { EventPipe, LogPipe, LogPipeOptions } from "./types.
|
|
2
|
+
import { EventPipe, LogPipe, LogPipeOptions } from "./types.d.cts";
|
|
3
3
|
export declare class TaskLogger<LOG extends Logger> implements Logger {
|
|
4
4
|
protected logger: Logger;
|
|
5
5
|
protected bufferSize: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyFunction, Logger, LoggingConfig, LogLevel, LogMeta, StringLike } from "@decaf-ts/logging";
|
|
2
|
-
import { EventPipe, LogPipe, LogPipeOptions } from "./types.
|
|
2
|
+
import { EventPipe, LogPipe, LogPipeOptions } from "./types.d.mts";
|
|
3
3
|
export declare class TaskLogger<LOG extends Logger> implements Logger {
|
|
4
4
|
protected logger: Logger;
|
|
5
5
|
protected bufferSize: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { BackoffStrategy, JitterStrategy } from "../constants.
|
|
2
|
+
import { BackoffStrategy, JitterStrategy } from "../constants.d.cts";
|
|
3
3
|
export declare class TaskBackoffModel extends Model {
|
|
4
4
|
strategy: BackoffStrategy;
|
|
5
5
|
baseMs: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { BackoffStrategy, JitterStrategy } from "../constants.
|
|
2
|
+
import { BackoffStrategy, JitterStrategy } from "../constants.d.mts";
|
|
3
3
|
export declare class TaskBackoffModel extends Model {
|
|
4
4
|
strategy: BackoffStrategy;
|
|
5
5
|
baseMs: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { TaskStatus, TaskType } from "../constants.
|
|
3
|
-
import { TaskErrorModel } from "./TaskErrorModel.
|
|
4
|
-
import { TaskBackoffModel } from "./TaskBackoffModel.
|
|
5
|
-
import { TaskStepSpecModel } from "./TaskStepSpecModel.
|
|
6
|
-
import { TaskStepResultModel } from "./TaskStepResultModel.
|
|
7
|
-
import { TaskLogEntryModel } from "./TaskLogEntryModel.
|
|
2
|
+
import { TaskStatus, TaskType } from "../constants.d.cts";
|
|
3
|
+
import { TaskErrorModel } from "./TaskErrorModel.d.cts";
|
|
4
|
+
import { TaskBackoffModel } from "./TaskBackoffModel.d.cts";
|
|
5
|
+
import { TaskStepSpecModel } from "./TaskStepSpecModel.d.cts";
|
|
6
|
+
import { TaskStepResultModel } from "./TaskStepResultModel.d.cts";
|
|
7
|
+
import { TaskLogEntryModel } from "./TaskLogEntryModel.d.cts";
|
|
8
8
|
export declare class TaskModel<INPUT = any, OUTPUT = any> extends Model {
|
|
9
9
|
id: string;
|
|
10
10
|
atomicity: TaskType;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { TaskStatus, TaskType } from "../constants.
|
|
3
|
-
import { TaskErrorModel } from "./TaskErrorModel.
|
|
4
|
-
import { TaskBackoffModel } from "./TaskBackoffModel.
|
|
5
|
-
import { TaskStepSpecModel } from "./TaskStepSpecModel.
|
|
6
|
-
import { TaskStepResultModel } from "./TaskStepResultModel.
|
|
7
|
-
import { TaskLogEntryModel } from "./TaskLogEntryModel.
|
|
2
|
+
import { TaskStatus, TaskType } from "../constants.d.mts";
|
|
3
|
+
import { TaskErrorModel } from "./TaskErrorModel.d.mts";
|
|
4
|
+
import { TaskBackoffModel } from "./TaskBackoffModel.d.mts";
|
|
5
|
+
import { TaskStepSpecModel } from "./TaskStepSpecModel.d.mts";
|
|
6
|
+
import { TaskStepResultModel } from "./TaskStepResultModel.d.mts";
|
|
7
|
+
import { TaskLogEntryModel } from "./TaskLogEntryModel.d.mts";
|
|
8
8
|
export declare class TaskModel<INPUT = any, OUTPUT = any> extends Model {
|
|
9
9
|
id: string;
|
|
10
10
|
atomicity: TaskType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { TaskStatus } from "../constants.
|
|
3
|
-
import { TaskErrorModel } from "./TaskErrorModel.
|
|
2
|
+
import { TaskStatus } from "../constants.d.cts";
|
|
3
|
+
import { TaskErrorModel } from "./TaskErrorModel.d.cts";
|
|
4
4
|
export declare class TaskStepResultModel extends Model {
|
|
5
5
|
status: TaskStatus;
|
|
6
6
|
output?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
-
import { TaskStatus } from "../constants.
|
|
3
|
-
import { TaskErrorModel } from "./TaskErrorModel.
|
|
2
|
+
import { TaskStatus } from "../constants.d.mts";
|
|
3
|
+
import { TaskErrorModel } from "./TaskErrorModel.d.mts";
|
|
4
4
|
export declare class TaskStepResultModel extends Model {
|
|
5
5
|
status: TaskStatus;
|
|
6
6
|
output?: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./TaskBackoffModel.
|
|
2
|
-
export * from "./TaskErrorModel.
|
|
3
|
-
export * from "./TaskEventModel.
|
|
4
|
-
export * from "./TaskIOSerializer.
|
|
5
|
-
export * from "./TaskLogEntryModel.
|
|
6
|
-
export * from "./TaskModel.
|
|
7
|
-
export * from "./TaskStepResultModel.
|
|
8
|
-
export * from "./TaskStepSpecModel.
|
|
1
|
+
export * from "./TaskBackoffModel.d.cts";
|
|
2
|
+
export * from "./TaskErrorModel.d.cts";
|
|
3
|
+
export * from "./TaskEventModel.d.cts";
|
|
4
|
+
export * from "./TaskIOSerializer.d.cts";
|
|
5
|
+
export * from "./TaskLogEntryModel.d.cts";
|
|
6
|
+
export * from "./TaskModel.d.cts";
|
|
7
|
+
export * from "./TaskStepResultModel.d.cts";
|
|
8
|
+
export * from "./TaskStepSpecModel.d.cts";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./TaskBackoffModel.
|
|
2
|
-
export * from "./TaskErrorModel.
|
|
3
|
-
export * from "./TaskEventModel.
|
|
4
|
-
export * from "./TaskIOSerializer.
|
|
5
|
-
export * from "./TaskLogEntryModel.
|
|
6
|
-
export * from "./TaskModel.
|
|
7
|
-
export * from "./TaskStepResultModel.
|
|
8
|
-
export * from "./TaskStepSpecModel.
|
|
1
|
+
export * from "./TaskBackoffModel.d.mts";
|
|
2
|
+
export * from "./TaskErrorModel.d.mts";
|
|
3
|
+
export * from "./TaskEventModel.d.mts";
|
|
4
|
+
export * from "./TaskIOSerializer.d.mts";
|
|
5
|
+
export * from "./TaskLogEntryModel.d.mts";
|
|
6
|
+
export * from "./TaskModel.d.mts";
|
|
7
|
+
export * from "./TaskStepResultModel.d.mts";
|
|
8
|
+
export * from "./TaskStepSpecModel.d.mts";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TaskContext } from "./TaskContext.
|
|
2
|
-
import { TaskLogger } from "./logging.
|
|
1
|
+
import { TaskContext } from "./TaskContext.d.cts";
|
|
2
|
+
import { TaskLogger } from "./logging.d.cts";
|
|
3
3
|
import { LogLevel } from "@decaf-ts/logging";
|
|
4
|
-
import { Adapter, ContextFlags } from "../persistence/index.
|
|
5
|
-
import { ConfOf } from "../persistence/types.
|
|
6
|
-
import { TaskEventBus } from "./TaskEventBus.
|
|
7
|
-
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.
|
|
8
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
9
|
-
import { TaskStatus } from "./constants.
|
|
10
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
11
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
4
|
+
import { Adapter, ContextFlags } from "../persistence/index.d.cts";
|
|
5
|
+
import { ConfOf } from "../persistence/types.d.cts";
|
|
6
|
+
import { TaskEventBus } from "./TaskEventBus.d.cts";
|
|
7
|
+
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.d.cts";
|
|
8
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.cts";
|
|
9
|
+
import { TaskStatus } from "./constants.d.cts";
|
|
10
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.cts";
|
|
11
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.cts";
|
|
12
12
|
export interface ITaskHandler<I = any, O = any> {
|
|
13
13
|
type: string;
|
|
14
14
|
run(input: I, ctx: TaskContext): Promise<O>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TaskContext } from "./TaskContext.
|
|
2
|
-
import { TaskLogger } from "./logging.
|
|
1
|
+
import { TaskContext } from "./TaskContext.d.mts";
|
|
2
|
+
import { TaskLogger } from "./logging.d.mts";
|
|
3
3
|
import { LogLevel } from "@decaf-ts/logging";
|
|
4
|
-
import { Adapter, ContextFlags } from "../persistence/index.
|
|
5
|
-
import { ConfOf } from "../persistence/types.
|
|
6
|
-
import { TaskEventBus } from "./TaskEventBus.
|
|
7
|
-
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.
|
|
8
|
-
import { TaskEventModel } from "./models/TaskEventModel.
|
|
9
|
-
import { TaskStatus } from "./constants.
|
|
10
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
11
|
-
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.
|
|
4
|
+
import { Adapter, ContextFlags } from "../persistence/index.d.mts";
|
|
5
|
+
import { ConfOf } from "../persistence/types.d.mts";
|
|
6
|
+
import { TaskEventBus } from "./TaskEventBus.d.mts";
|
|
7
|
+
import { TaskHandlerRegistry } from "./TaskHandlerRegistry.d.mts";
|
|
8
|
+
import { TaskEventModel } from "./models/TaskEventModel.d.mts";
|
|
9
|
+
import { TaskStatus } from "./constants.d.mts";
|
|
10
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.mts";
|
|
11
|
+
import { TaskStepSpecModel } from "./models/TaskStepSpecModel.d.mts";
|
|
12
12
|
export interface ITaskHandler<I = any, O = any> {
|
|
13
13
|
type: string;
|
|
14
14
|
run(input: I, ctx: TaskContext): Promise<O>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
2
|
-
import { TaskBackoffModel } from "./models/TaskBackoffModel.
|
|
1
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.cts";
|
|
2
|
+
import { TaskBackoffModel } from "./models/TaskBackoffModel.d.cts";
|
|
3
3
|
export declare function computeBackoffMs(attempt: number, cfg: TaskBackoffModel): number;
|
|
4
4
|
export declare function serializeError(err: any): TaskErrorModel;
|
|
5
5
|
export declare function sleep(ms: number): Promise<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TaskErrorModel } from "./models/TaskErrorModel.
|
|
2
|
-
import { TaskBackoffModel } from "./models/TaskBackoffModel.
|
|
1
|
+
import { TaskErrorModel } from "./models/TaskErrorModel.d.mts";
|
|
2
|
+
import { TaskBackoffModel } from "./models/TaskBackoffModel.d.mts";
|
|
3
3
|
export declare function computeBackoffMs(attempt: number, cfg: TaskBackoffModel): number;
|
|
4
4
|
export declare function serializeError(err: any): TaskErrorModel;
|
|
5
5
|
export declare function sleep(ms: number): Promise<unknown>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LoggedClass, Logger } from "@decaf-ts/logging";
|
|
2
2
|
import { BulkCrudOperationKeys, Contextual, OperationKeys } from "@decaf-ts/db-decorators";
|
|
3
|
-
import { Context } from "../persistence/Context.
|
|
4
|
-
import { FlagsOf, LoggerOf } from "../persistence/types.
|
|
3
|
+
import { Context } from "../persistence/Context.d.cts";
|
|
4
|
+
import { FlagsOf, LoggerOf } from "../persistence/types.d.cts";
|
|
5
5
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import { PersistenceKeys } from "../persistence/index.
|
|
7
|
-
import { PreparedStatementKeys } from "../query/index.
|
|
6
|
+
import { PersistenceKeys } from "../persistence/index.d.cts";
|
|
7
|
+
import { PreparedStatementKeys } from "../query/index.d.cts";
|
|
8
8
|
export type ContextualArgs<C extends Context<any>, ARGS extends any[] = any[]> = [...ARGS, C];
|
|
9
9
|
export type MethodOrOperation = ((...args: any[]) => any) | string | OperationKeys | PersistenceKeys | BulkCrudOperationKeys | PreparedStatementKeys;
|
|
10
10
|
export type MaybeContextualArg<C extends Context<any>, ARGS extends any[] = any[]> = any[] | ContextualArgs<C, ARGS>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LoggedClass, Logger } from "@decaf-ts/logging";
|
|
2
2
|
import { BulkCrudOperationKeys, Contextual, OperationKeys } from "@decaf-ts/db-decorators";
|
|
3
|
-
import { Context } from "../persistence/Context.
|
|
4
|
-
import { FlagsOf, LoggerOf } from "../persistence/types.
|
|
3
|
+
import { Context } from "../persistence/Context.d.mts";
|
|
4
|
+
import { FlagsOf, LoggerOf } from "../persistence/types.d.mts";
|
|
5
5
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
6
|
-
import { PersistenceKeys } from "../persistence/index.
|
|
7
|
-
import { PreparedStatementKeys } from "../query/index.
|
|
6
|
+
import { PersistenceKeys } from "../persistence/index.d.mts";
|
|
7
|
+
import { PreparedStatementKeys } from "../query/index.d.mts";
|
|
8
8
|
export type ContextualArgs<C extends Context<any>, ARGS extends any[] = any[]> = [...ARGS, C];
|
|
9
9
|
export type MethodOrOperation = ((...args: any[]) => any) | string | OperationKeys | PersistenceKeys | BulkCrudOperationKeys | PreparedStatementKeys;
|
|
10
10
|
export type MaybeContextualArg<C extends Context<any>, ARGS extends any[] = any[]> = any[] | ContextualArgs<C, ARGS>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "@decaf-ts/decoration";
|
|
2
2
|
import type { ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { HttpVerbs } from "./types.
|
|
3
|
+
import { HttpVerbs } from "./types.d.cts";
|
|
4
4
|
export declare const create: () => (target: any, _propertyKey?: any, descriptor?: any) => any;
|
|
5
5
|
export declare const read: () => (target: any, _propertyKey?: any, descriptor?: any) => any;
|
|
6
6
|
export declare const update: () => (target: any, _propertyKey?: any, descriptor?: any) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructor } from "@decaf-ts/decoration";
|
|
2
2
|
import type { ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { HttpVerbs } from "./types.
|
|
3
|
+
import { HttpVerbs } from "./types.d.mts";
|
|
4
4
|
export declare const create: () => (target: any, _propertyKey?: any, descriptor?: any) => any;
|
|
5
5
|
export declare const read: () => (target: any, _propertyKey?: any, descriptor?: any) => any;
|
|
6
6
|
export declare const update: () => (target: any, _propertyKey?: any, descriptor?: any) => any;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the utils functionality, including the ContextualLoggedClass, decorators, errors, and more.
|
|
4
4
|
* @module core/utils
|
|
5
5
|
*/
|
|
6
|
-
export * from "./ContextualLoggedClass.
|
|
7
|
-
export * from "./decorators.
|
|
8
|
-
export * from "./errors.
|
|
9
|
-
export * from "./utils.
|
|
10
|
-
export * from "./throttling.
|
|
11
|
-
export * from "./types.
|
|
6
|
+
export * from "./ContextualLoggedClass.d.cts";
|
|
7
|
+
export * from "./decorators.d.cts";
|
|
8
|
+
export * from "./errors.d.cts";
|
|
9
|
+
export * from "./utils.d.cts";
|
|
10
|
+
export * from "./throttling.d.cts";
|
|
11
|
+
export * from "./types.d.cts";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @summary This file exports all the necessary components for the utils functionality, including the ContextualLoggedClass, decorators, errors, and more.
|
|
4
4
|
* @module core/utils
|
|
5
5
|
*/
|
|
6
|
-
export * from "./ContextualLoggedClass.
|
|
7
|
-
export * from "./decorators.
|
|
8
|
-
export * from "./errors.
|
|
9
|
-
export * from "./utils.
|
|
10
|
-
export * from "./throttling.
|
|
11
|
-
export * from "./types.
|
|
6
|
+
export * from "./ContextualLoggedClass.d.mts";
|
|
7
|
+
export * from "./decorators.d.mts";
|
|
8
|
+
export * from "./errors.d.mts";
|
|
9
|
+
export * from "./utils.d.mts";
|
|
10
|
+
export * from "./throttling.d.mts";
|
|
11
|
+
export * from "./types.d.mts";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Adapter } from "../persistence/Adapter.
|
|
2
|
-
import { ContextOf } from "../persistence/types.
|
|
3
|
-
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.
|
|
1
|
+
import { Adapter } from "../persistence/Adapter.d.cts";
|
|
2
|
+
import { ContextOf } from "../persistence/types.d.cts";
|
|
3
|
+
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.d.cts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
import { TaskModel } from "../tasks/models/TaskModel.
|
|
6
|
-
import { TaskContext, TaskEngine as TE } from "../tasks/index.
|
|
7
|
-
import { TaskEngineConfig, TaskWorkerThread, WorkerJobState, WorkThreadPoolConfig } from "./types.
|
|
5
|
+
import { TaskModel } from "../tasks/models/TaskModel.d.cts";
|
|
6
|
+
import { TaskContext, TaskEngine as TE } from "../tasks/index.d.cts";
|
|
7
|
+
import { TaskEngineConfig, TaskWorkerThread, WorkerJobState, WorkThreadPoolConfig } from "./types.d.cts";
|
|
8
8
|
export declare class TaskEngine<A extends Adapter<any, any, any, any>> extends TE<A, TaskEngineConfig<A>> {
|
|
9
9
|
protected workerPoolConfig?: WorkThreadPoolConfig;
|
|
10
10
|
protected workerThreads: TaskWorkerThread[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Adapter } from "../persistence/Adapter.
|
|
2
|
-
import { ContextOf } from "../persistence/types.
|
|
3
|
-
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.
|
|
1
|
+
import { Adapter } from "../persistence/Adapter.d.mts";
|
|
2
|
+
import { ContextOf } from "../persistence/types.d.mts";
|
|
3
|
+
import { MaybeContextualArg } from "../utils/ContextualLoggedClass.d.mts";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
-
import { TaskModel } from "../tasks/models/TaskModel.
|
|
6
|
-
import { TaskContext, TaskEngine as TE } from "../tasks/index.
|
|
7
|
-
import { TaskEngineConfig, TaskWorkerThread, WorkerJobState, WorkThreadPoolConfig } from "./types.
|
|
5
|
+
import { TaskModel } from "../tasks/models/TaskModel.d.mts";
|
|
6
|
+
import { TaskContext, TaskEngine as TE } from "../tasks/index.d.mts";
|
|
7
|
+
import { TaskEngineConfig, TaskWorkerThread, WorkerJobState, WorkThreadPoolConfig } from "./types.d.mts";
|
|
8
8
|
export declare class TaskEngine<A extends Adapter<any, any, any, any>> extends TE<A, TaskEngineConfig<A>> {
|
|
9
9
|
protected workerPoolConfig?: WorkThreadPoolConfig;
|
|
10
10
|
protected workerThreads: TaskWorkerThread[];
|