refactor: Use only arguments for action definitions

This commit is contained in:
Faruk AYDIN
2022-10-31 18:26:58 +01:00
parent bcfc9beb99
commit 1cfe84fc3d
10 changed files with 246 additions and 321 deletions

View File

@@ -4,28 +4,14 @@ export default defineAction({
name: 'Create Tweet',
key: 'createTweet',
description: 'Create a tweet.',
substeps: [
arguments: [
{
key: 'chooseConnection',
name: 'Choose connection',
},
{
key: 'chooseAction',
name: 'Set up action',
arguments: [
{
label: 'Tweet body',
key: 'tweet',
type: 'string' as const,
required: true,
description: 'The content of your new tweet.',
variables: true,
},
],
},
{
key: 'testStep',
name: 'Test action',
label: 'Tweet body',
key: 'tweet',
type: 'string' as const,
required: true,
description: 'The content of your new tweet.',
variables: true,
},
],