Feat: @medusajs/workflows (#4553)

feat: medusa workflows
This commit is contained in:
Carlos R. L. Rodrigues
2023-07-25 10:13:14 -03:00
committed by GitHub
parent ae33f4825f
commit f12299deb1
52 changed files with 1358 additions and 331 deletions
+7 -1
View File
@@ -1,5 +1,6 @@
import { MedusaContainer } from "../common"
import { JoinerServiceConfig } from "../joiner"
import { Logger } from "../logger"
import { MedusaContainer } from "../common"
import { RepositoryService } from "../dal"
export type Constructor<T> = new (...args: any[]) => T
@@ -69,6 +70,11 @@ export type ModuleDefinition = {
| ExternalModuleDeclaration
}
export type LoadedModule = unknown & {
__joinerConfig: JoinerServiceConfig
__definition: ModuleDefinition
}
export type LoaderOptions<TOptions = Record<string, unknown>> = {
container: MedusaContainer
options?: TOptions
+1
View File
@@ -8,4 +8,5 @@ export type Context<TManager = unknown> = {
transactionManager?: TManager
isolationLevel?: string
enableNestedTransactions?: boolean
transactionId?: string
}