chore: Adjust create step mutation to work with flows

This commit is contained in:
Faruk AYDIN
2021-11-22 23:26:22 +01:00
committed by Ömer Faruk Aydın
parent 8a7d54bb25
commit f8e823545a
3 changed files with 14 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import Base from './base'
import Flow from './flow'
import Base from './base';
import Flow from './flow';
enum StepEnumType {
'trigger',
@@ -8,6 +8,7 @@ enum StepEnumType {
class Step extends Base {
id!: number
flowId!: number
key!: string
appKey!: string
type!: StepEnumType
@@ -22,6 +23,7 @@ class Step extends Base {
properties: {
id: { type: 'integer' },
flowId: { type: 'integer' },
key: { type: 'string', minLength: 1, maxLength: 255 },
appKey: { type: 'string', minLength: 1, maxLength: 255 },
type: { type: "string", enum: ["action", "trigger"] },