diff --git a/Projects/Foundations/Schemas/App-Schema/back-learning-session.json b/Projects/Foundations/Schemas/App-Schema/back-learning-session.json index a2aa63be7..86ff90c22 100644 --- a/Projects/Foundations/Schemas/App-Schema/back-learning-session.json +++ b/Projects/Foundations/Schemas/App-Schema/back-learning-session.json @@ -96,7 +96,8 @@ { "name": "socialBots", "type": "node", - "childType": "Social Bots" + "childType": "Social Bots", + "project": "Social-Bots" } ], "propertyNameAtParent": "session" diff --git a/Projects/Foundations/Schemas/App-Schema/backtesting-session.json b/Projects/Foundations/Schemas/App-Schema/backtesting-session.json index f71d6bd28..16ea9027f 100644 --- a/Projects/Foundations/Schemas/App-Schema/backtesting-session.json +++ b/Projects/Foundations/Schemas/App-Schema/backtesting-session.json @@ -105,7 +105,8 @@ { "name": "socialBots", "type": "node", - "childType": "Social Bots" + "childType": "Social Bots", + "project": "Social-Bots" } ], "propertyNameAtParent": "session" diff --git a/Projects/Foundations/Schemas/App-Schema/forward-testing-session.json b/Projects/Foundations/Schemas/App-Schema/forward-testing-session.json index 8a3c088d8..b48af1ee9 100644 --- a/Projects/Foundations/Schemas/App-Schema/forward-testing-session.json +++ b/Projects/Foundations/Schemas/App-Schema/forward-testing-session.json @@ -108,7 +108,8 @@ { "name": "socialBots", "type": "node", - "childType": "Social Bots" + "childType": "Social Bots", + "project": "Social-Bots" } ], "propertyNameAtParent": "session" diff --git a/Projects/Foundations/Schemas/App-Schema/live-learning-session.json b/Projects/Foundations/Schemas/App-Schema/live-learning-session.json index 0f470182a..ba8218d8b 100644 --- a/Projects/Foundations/Schemas/App-Schema/live-learning-session.json +++ b/Projects/Foundations/Schemas/App-Schema/live-learning-session.json @@ -96,7 +96,8 @@ { "name": "socialBots", "type": "node", - "childType": "Social Bots" + "childType": "Social Bots", + "project": "Social-Bots" } ], "propertyNameAtParent": "session" diff --git a/Projects/Foundations/Schemas/App-Schema/live-trading-session.json b/Projects/Foundations/Schemas/App-Schema/live-trading-session.json index d76898c43..a646da3fa 100644 --- a/Projects/Foundations/Schemas/App-Schema/live-trading-session.json +++ b/Projects/Foundations/Schemas/App-Schema/live-trading-session.json @@ -108,7 +108,8 @@ { "name": "socialBots", "type": "node", - "childType": "Social Bots" + "childType": "Social Bots", + "project": "Social-Bots" } ], "propertyNameAtParent": "session" diff --git a/Projects/Foundations/Schemas/App-Schema/paper-trading-session.json b/Projects/Foundations/Schemas/App-Schema/paper-trading-session.json index 88f5ff479..0e440b059 100644 --- a/Projects/Foundations/Schemas/App-Schema/paper-trading-session.json +++ b/Projects/Foundations/Schemas/App-Schema/paper-trading-session.json @@ -108,7 +108,8 @@ { "name": "socialBots", "type": "node", - "childType": "Social Bots" + "childType": "Social Bots", + "project": "Social-Bots" } ], "propertyNameAtParent": "session" diff --git a/Projects/Social-Bots/Schemas/App-Schema/social-bots.json b/Projects/Social-Bots/Schemas/App-Schema/social-bots.json index fb33a5a49..e5fb9417d 100644 --- a/Projects/Social-Bots/Schemas/App-Schema/social-bots.json +++ b/Projects/Social-Bots/Schemas/App-Schema/social-bots.json @@ -22,6 +22,13 @@ "actionFunction": "payload.executeAction", "actionProject": "Foundations" }, + { + "action": "Add UI Object", + "label": "Add Twitter Bot", + "relatedUiObject": "Twitter Bot", + "actionFunction": "payload.executeAction", + "actionProject": "Foundations" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -59,7 +66,14 @@ "childType": "Slack Bot", "autoAdd": true, "project": "Social-Bots" + }, + { + "name": "twitterkBots", + "type": "array", + "childType": "Twitter Bot", + "autoAdd": true, + "project": "Social-Bots" } ], "propertyNameAtParent": "socialBots" -} +} \ No newline at end of file diff --git a/Projects/Social-Bots/Schemas/App-Schema/twitter-bot.json b/Projects/Social-Bots/Schemas/App-Schema/twitter-bot.json new file mode 100644 index 000000000..8d878319c --- /dev/null +++ b/Projects/Social-Bots/Schemas/App-Schema/twitter-bot.json @@ -0,0 +1,58 @@ +{ + "type": "Twitter Bot", + "editors": { + "config": true + }, + "menuItems": [ + { + "action": "Configure", + "actionFunction": "uiObject.configEditor.activate", + "label": "Configure", + "iconPathOn": "configuration", + "iconPathOff": "configuration", + "actionProject": "Foundations" + }, + { + "action": "Add UI Object", + "label": "Add Social Bot Command", + "relatedUiObject": "Social Bot Command", + "actionFunction": "payload.executeAction", + "actionProject": "Foundations" + }, + { + "action": "Send Twitter Test Message", + "label": "Send Twitter Test Message", + "iconPathOn": "test-entity", + "iconPathOff": "test-entity", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction", + "actionProject": "Foundations" + } + ], + "initialValues": { + "config": "{ \n\"botToken\": \"Paste the bot token obtained from Twitter \",\n}" + }, + "addLeftIcons": true, + "level": 3, + "attachingRules": { + "compatibleTypes": "->Social Bots->" + }, + "childrenNodesProperties": [ + { + "name": "socialBotCommand", + "type": "array", + "childType": "Social Bot Command", + "autoAdd": false, + "project": "Social-Bots" + } + ], + "propertyNameAtParent": "twitterBots" +} \ No newline at end of file