mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-23 22:47:28 +00:00
* 4810 - add a list messages operation to the Slack plugin * support pagination * update docs * eslint fixes Co-authored-by: Maurits Lourens <maurits.lourens@gmail.com>
85 lines
No EOL
2.2 KiB
JSON
85 lines
No EOL
2.2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "Slack datasource",
|
|
"description": "A schema defining Slack datasource",
|
|
"type": "api",
|
|
"defaults": {},
|
|
"properties": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for mode",
|
|
"list": [
|
|
{
|
|
"name": "List members",
|
|
"value": "list_users"
|
|
},
|
|
{
|
|
"name": "Send message",
|
|
"value": "send_message"
|
|
},
|
|
{
|
|
"name": "List messages from a channel",
|
|
"value": "list_messages"
|
|
}
|
|
]
|
|
},
|
|
"send_message": {
|
|
"channel": {
|
|
"label": "Channel",
|
|
"key": "channel",
|
|
"description": "Enter channel",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter channel id or user id"
|
|
},
|
|
"message": {
|
|
"label": "Message",
|
|
"key": "message",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter message",
|
|
"className": "codehinter-plugins",
|
|
"height": "150px",
|
|
"placeholder": "Enter message"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
} |