chore(workflow-engine): Migrate to DML (#10477)
RESOLVES FRMW-2832 RESOLVES FRMW-2833 **What** Migrate workflow engines to DML. Alos includes and update to the linkable generation which now takes into account id and primary keys to generate the linkable instead of only primary keys
This commit is contained in:
committed by
GitHub
parent
b0448a7c35
commit
0a077d48e1
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
Context,
|
||||
DAL,
|
||||
InferEntityType,
|
||||
InternalModuleDeclaration,
|
||||
ModulesSdkTypes,
|
||||
WorkflowsSdkTypes,
|
||||
@@ -25,9 +26,11 @@ type InjectedDependencies = {
|
||||
}
|
||||
|
||||
export class WorkflowsModuleService<
|
||||
TWorkflowExecution extends WorkflowExecution = WorkflowExecution
|
||||
TWorkflowExecution extends InferEntityType<
|
||||
typeof WorkflowExecution
|
||||
> = InferEntityType<typeof WorkflowExecution>
|
||||
> extends ModulesSdkUtils.MedusaService<{
|
||||
WorkflowExecution: { dto: WorkflowExecution }
|
||||
WorkflowExecution: { dto: InferEntityType<typeof WorkflowExecution> }
|
||||
}>({ WorkflowExecution }) {
|
||||
protected baseRepository_: DAL.RepositoryService
|
||||
protected workflowExecutionService_: ModulesSdkTypes.IMedusaInternalService<TWorkflowExecution>
|
||||
|
||||
Reference in New Issue
Block a user