2021-11-17 17:59:00 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
2021-11-17 17:59:00 +00:00
|
|
|
"title": "Slack datasource",
|
|
|
|
|
"description": "A schema defining Slack datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "api",
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {},
|
2021-11-17 17:59:00 +00:00
|
|
|
"properties": {
|
2022-09-26 05:24:12 +00:00
|
|
|
"operation": {
|
|
|
|
|
"label": "Operation",
|
|
|
|
|
"key": "operation",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for mode",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"name": "List members",
|
|
|
|
|
"value": "list_users"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Send message",
|
|
|
|
|
"value": "send_message"
|
2023-01-27 10:56:31 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "List messages from a channel",
|
|
|
|
|
"value": "list_messages"
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"send_message": {
|
|
|
|
|
"channel": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Channel",
|
|
|
|
|
"key": "channel",
|
2022-09-26 05:24:12 +00:00
|
|
|
"description": "Enter channel",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
2022-09-26 05:24:12 +00:00
|
|
|
"lineNumbers": false,
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter channel id or user id"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"message": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Message",
|
|
|
|
|
"key": "message",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
2022-09-26 05:24:12 +00:00
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter message",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"height": "150px",
|
|
|
|
|
"placeholder": "Enter message"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
2023-01-27 10:56:31 +00:00
|
|
|
},
|
|
|
|
|
"list_messages": {
|
|
|
|
|
"channel": {
|
|
|
|
|
"label": "Channel",
|
|
|
|
|
"key": "channel",
|
|
|
|
|
"description": "Enter channel",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter channel id"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"limit": {
|
|
|
|
|
"label": "Limit",
|
|
|
|
|
"key": "limit",
|
|
|
|
|
"description": "Enter limit",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter limit"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"cursor": {
|
|
|
|
|
"label": "Next cursor",
|
|
|
|
|
"key": "cursor",
|
|
|
|
|
"description": "Enter next cursor",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter cursor"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|