feat: Add status to step model and adjust executeFlow accordingly

This commit is contained in:
Faruk AYDIN
2022-02-05 19:15:37 +03:00
committed by Ömer Faruk Aydın
parent 572ad71241
commit e155bb528f
5 changed files with 40 additions and 7 deletions

View File

@@ -14,6 +14,7 @@ class Step extends Base {
appKey: string;
type!: StepEnumType;
connectionId: string;
status: string;
position: number;
parameters: string;
connection?: Connection;
@@ -32,6 +33,7 @@ class Step extends Base {
appKey: { type: ['string', null], minLength: 1, maxLength: 255 },
type: { type: 'string', enum: ['action', 'trigger'] },
connectionId: { type: ['string', null] },
status: { type: 'string', enum: ['incomplete', 'completed'] },
position: { type: 'integer' },
parameters: { type: ['string', null] },
},