chore: Update objectionjs version to 3
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
61c1f3a300
commit
70bb79ab6c
@@ -2,22 +2,18 @@ import Base from './base';
|
||||
import Flow from './flow';
|
||||
import Connection from './connection';
|
||||
import ExecutionStep from './execution-step';
|
||||
|
||||
enum StepEnumType {
|
||||
'trigger',
|
||||
'action',
|
||||
}
|
||||
import StepEnumType from '../types/step-enum-type';
|
||||
|
||||
class Step extends Base {
|
||||
id!: number;
|
||||
flowId!: number;
|
||||
flowId!: string;
|
||||
key: string;
|
||||
appKey: string;
|
||||
type!: StepEnumType;
|
||||
connectionId: string;
|
||||
status: string;
|
||||
position: number;
|
||||
parameters: string;
|
||||
parameters: Record<string, unknown>;
|
||||
connection?: Connection;
|
||||
flow?: Flow;
|
||||
executionSteps?: [ExecutionStep];
|
||||
@@ -30,14 +26,14 @@ class Step extends Base {
|
||||
|
||||
properties: {
|
||||
id: { type: 'integer' },
|
||||
flowId: { type: 'integer' },
|
||||
flowId: { type: 'string' },
|
||||
key: { type: ['string', null] },
|
||||
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] },
|
||||
parameters: { type: ['object', null] },
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user