feat: add PowerInput component
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
c864a1062d
commit
d06f21c927
@@ -12,9 +12,7 @@ export default class CreateTweet {
|
||||
accessSecret: connectionData.accessSecret,
|
||||
});
|
||||
|
||||
if (parameters) {
|
||||
this.parameters = JSON.parse(parameters);
|
||||
}
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
async run() {
|
||||
|
@@ -277,7 +277,9 @@
|
||||
"label": "Tweet body",
|
||||
"key": "tweet",
|
||||
"type": "string",
|
||||
"required": true
|
||||
"required": true,
|
||||
"description": "The content of your new tweet.",
|
||||
"variables": true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@@ -54,7 +54,6 @@ const createStepResolver = async (
|
||||
|
||||
const nextStepQueries = nextSteps.map(async (nextStep, index) => {
|
||||
await nextStep.$query().patchAndFetch({
|
||||
...nextStep,
|
||||
position: step.position + index + 1,
|
||||
});
|
||||
});
|
||||
|
@@ -26,7 +26,6 @@ const deleteStepResolver = async (
|
||||
|
||||
const nextStepQueries = nextSteps.map(async (nextStep) => {
|
||||
await nextStep.$query().patch({
|
||||
...nextStep,
|
||||
position: nextStep.position - 1,
|
||||
});
|
||||
});
|
||||
|
@@ -19,10 +19,7 @@ const updateFlowResolver = async (
|
||||
})
|
||||
.throwIfNotFound();
|
||||
|
||||
flow = await flow.$query().patchAndFetch({
|
||||
...flow,
|
||||
...params,
|
||||
});
|
||||
flow = await flow.$query().patchAndFetch(params);
|
||||
|
||||
return flow;
|
||||
};
|
||||
|
@@ -20,7 +20,7 @@ const getStepWithTestExecutionsResolver = async (
|
||||
.withGraphJoined('executionSteps')
|
||||
.select('steps.*', 'executionSteps.data_out as output')
|
||||
.where('flow_id', '=', step.flowId)
|
||||
.andWhere('position', '<=', step.position)
|
||||
.andWhere('position', '<', step.position)
|
||||
.distinctOn('executionSteps.step_id')
|
||||
.orderBy([
|
||||
'executionSteps.step_id',
|
||||
|
@@ -21,7 +21,9 @@ const actionType = new GraphQLObjectType({
|
||||
label: { type: GraphQLString },
|
||||
key: { type: GraphQLString },
|
||||
type: { type: GraphQLString },
|
||||
required: { type: GraphQLBoolean }
|
||||
description: { type: GraphQLString },
|
||||
required: { type: GraphQLBoolean },
|
||||
variables: { type: GraphQLBoolean }
|
||||
}
|
||||
})
|
||||
)
|
||||
|
@@ -10,7 +10,7 @@ class Step extends Base {
|
||||
key: string;
|
||||
appKey: string;
|
||||
type!: StepEnumType;
|
||||
connectionId: string;
|
||||
connectionId?: string;
|
||||
status: string;
|
||||
position: number;
|
||||
parameters: Record<string, unknown>;
|
||||
|
Reference in New Issue
Block a user