mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* Disable resource-name input and change placeholder text in resource-body * Format the placeholder text * Remove space from placeholder
159 lines
No EOL
4.2 KiB
JSON
159 lines
No EOL
4.2 KiB
JSON
|
|
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "Salesforce datasource",
|
|
"description": "A schema defining Salesforce datasource",
|
|
"type": "api",
|
|
"defaults": {},
|
|
"properties": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for operation",
|
|
"list": [
|
|
{
|
|
"value": "soql",
|
|
"name": "SOQL Query"
|
|
},
|
|
{
|
|
"value": "crud",
|
|
"name": "CRUD Action"
|
|
}
|
|
]
|
|
},
|
|
"soql":{
|
|
"language": {
|
|
"label": "Language",
|
|
"key": "language",
|
|
"type": "dropdown",
|
|
"description": "Select the language",
|
|
"list": [
|
|
{
|
|
"value": "soql",
|
|
"name": "SOQL"
|
|
}
|
|
]
|
|
|
|
},
|
|
"query":{
|
|
"label": "Query",
|
|
"key": "soql_query",
|
|
"type": "codehinter",
|
|
"description": "Write SOQL Query",
|
|
"height": "150px"
|
|
}
|
|
},
|
|
"crud":{
|
|
"actiontype":{
|
|
"label": "Action Type",
|
|
"key": "actiontype",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Select the action type",
|
|
"list": [
|
|
{
|
|
"value": "create",
|
|
"name": "Create"
|
|
},
|
|
{
|
|
"value": "retrieve",
|
|
"name": "Retrieve"
|
|
},
|
|
{
|
|
"value": "update",
|
|
"name": "Update"
|
|
},
|
|
{
|
|
"value": "delete",
|
|
"name": "Delete"
|
|
}
|
|
]
|
|
},
|
|
"create": {
|
|
"resource_name": {
|
|
"label": "Resource Name",
|
|
"key": "resource_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Account",
|
|
"disabled": true
|
|
},
|
|
"resource_body": {
|
|
"label": "Resource Body",
|
|
"key": "resource_body",
|
|
"type": "codehinter",
|
|
"lineNumbers": true,
|
|
"placeholder": "{{ {name: “ToolJet”} }}",
|
|
"description": "Enter the resource body",
|
|
"height": "100px"
|
|
}
|
|
},
|
|
"update":{
|
|
"resource_name": {
|
|
"label": "Resource Name",
|
|
"key": "resource_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Account",
|
|
"disabled": true
|
|
},
|
|
"resource_body": {
|
|
"label": "Resource Body",
|
|
"key": "resource_body",
|
|
"type": "codehinter",
|
|
"placeholder": "{{ {Id:”0012F3E4R56487900N”, name: “ToolJet”} }}",
|
|
"description": "Enter the resource body",
|
|
"height": "100px"
|
|
}
|
|
},
|
|
"delete":{
|
|
"resource_name": {
|
|
"label": "Resource Name",
|
|
"key": "resource_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Account",
|
|
"disabled": true
|
|
},
|
|
"resource_id": {
|
|
"label": "Resource ID",
|
|
"key": "resource_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"placeholder": "0012F3E4R56487900N",
|
|
"description": "Enter the resource ID",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins"
|
|
}
|
|
},
|
|
"retrieve":{
|
|
"resource_name": {
|
|
"label": "Resource Name",
|
|
"key": "resource_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Account",
|
|
"disabled": true
|
|
},
|
|
"resource_id": {
|
|
"label": "Resource ID",
|
|
"key": "resource_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"placeholder": "0012F3E4R56487900N",
|
|
"description": "Enter the resource ID",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |