mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-25 07:27:28 +00:00
227 lines
No EOL
6.2 KiB
JSON
227 lines
No EOL
6.2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "Airtable datasource",
|
|
"description": "A schema defining Airtable datasource",
|
|
"type": "api",
|
|
"defaults": {},
|
|
"properties": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for operation",
|
|
"list": [
|
|
{
|
|
"value": "list_records",
|
|
"name": "List records"
|
|
},
|
|
{
|
|
"value": "retrieve_record",
|
|
"name": "Retrieve record"
|
|
},
|
|
{
|
|
"value": "create_record",
|
|
"name": "Create record"
|
|
},
|
|
{
|
|
"value": "update_record",
|
|
"name": "Update record"
|
|
},
|
|
{
|
|
"value": "delete_record",
|
|
"name": "Delete record"
|
|
}
|
|
]
|
|
},
|
|
"list_records": {
|
|
"base_id": {
|
|
"label": "Base ID",
|
|
"key": "base_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter base ID",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
},
|
|
"table_name": {
|
|
"label": "Table name",
|
|
"key": "table_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Table name"
|
|
},
|
|
"page_size": {
|
|
"label": "Page size",
|
|
"key": "page_size",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter page size",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "10"
|
|
},
|
|
"offset": {
|
|
"label": "Offset",
|
|
"key": "offset",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter offset",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "recAOzdIHaRpvRaGE"
|
|
}
|
|
},
|
|
"retrieve_record": {
|
|
"base_id": {
|
|
"label": "Base ID",
|
|
"key": "base_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter base ID",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
},
|
|
"table_name": {
|
|
"label": "Table name",
|
|
"key": "table_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Table_name"
|
|
},
|
|
"record_id": {
|
|
"label": "Record ID",
|
|
"key": "record_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter record id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "recu9xMnUdr2n2cw8"
|
|
}
|
|
},
|
|
"create_record": {
|
|
"base_id": {
|
|
"label": "Base ID",
|
|
"key": "base_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter base ID",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
},
|
|
"table_name": {
|
|
"label": "Table name",
|
|
"key": "table_name",
|
|
"lineNumbers": false,
|
|
"type": "codehinter",
|
|
"description": "Enter table name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Table_name"
|
|
},
|
|
"body": {
|
|
"label": "Records",
|
|
"key": "body",
|
|
"type": "codehinter",
|
|
"description": "Enter list of records",
|
|
"height": "150px",
|
|
"placeholder": "[{ \"fields\": {} }]"
|
|
}
|
|
},
|
|
"update_record": {
|
|
"base_id": {
|
|
"label": "Base ID",
|
|
"key": "base_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter base ID",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
},
|
|
"table_name": {
|
|
"label": "Table name",
|
|
"key": "table_name",
|
|
"lineNumbers": false,
|
|
"type": "codehinter",
|
|
"description": "Enter table name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Table_name"
|
|
},
|
|
"record_id": {
|
|
"label": "Record ID",
|
|
"key": "record_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter record id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
},
|
|
"body": {
|
|
"label": "Body",
|
|
"key": "body",
|
|
"type": "codehinter",
|
|
"description": "Enter body",
|
|
"height": "150px"
|
|
}
|
|
},
|
|
"delete_record": {
|
|
"base_id": {
|
|
"label": "Base ID",
|
|
"key": "base_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter base ID",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
},
|
|
"table_name": {
|
|
"label": "Table name",
|
|
"key": "table_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Table_name"
|
|
},
|
|
"record_id": {
|
|
"label": "Record ID",
|
|
"key": "record_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter record id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
|
}
|
|
}
|
|
}
|
|
} |