Create record action (#8460)

- Add create record action
- Migrate all step name => action in a common folder
- Separate types
This commit is contained in:
Thomas Trompette
2024-11-13 15:21:40 +01:00
committed by GitHub
parent ba79a1d324
commit faeea2b887
27 changed files with 268 additions and 128 deletions

View File

@ -2,8 +2,8 @@ import { Field, InputType } from '@nestjs/graphql';
import graphqlTypeJson from 'graphql-type-json';
import { WorkflowAction } from 'src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type';
import { WorkflowTrigger } from 'src/modules/workflow/workflow-trigger/types/workflow-trigger.type';
import { WorkflowStep } from 'src/modules/workflow/workflow-executor/types/workflow-action.type';
@InputType()
export class ComputeStepOutputSchemaInput {
@ -11,5 +11,5 @@ export class ComputeStepOutputSchemaInput {
description: 'Step JSON format',
nullable: false,
})
step: WorkflowTrigger | WorkflowStep;
step: WorkflowTrigger | WorkflowAction;
}

View File

@ -10,7 +10,7 @@ import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorat
import { UserAuthGuard } from 'src/engine/guards/user-auth.guard';
import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard';
import { WorkflowBuilderWorkspaceService } from 'src/modules/workflow/workflow-builder/workflow-builder.workspace-service';
import { OutputSchema } from 'src/modules/workflow/workflow-executor/types/workflow-step-settings.type';
import { OutputSchema } from 'src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action-settings.type';
@Resolver()
@UseGuards(WorkspaceAuthGuard, UserAuthGuard)