mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-28 17:07:22 +00:00
302 lines
8.3 KiB
JSON
302 lines
8.3 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": {
|
|
"cell_format": "json"
|
|
},
|
|
"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"
|
|
},
|
|
"fields": {
|
|
"label": "Fields",
|
|
"key": "fields",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter fields name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "[\"column1\",\"column2\",\"column3\"]"
|
|
},
|
|
"filter_by_formula": {
|
|
"label": "Filter by formula",
|
|
"key": "filter_by_formula",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter formula",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "column1 * column2 > 100"
|
|
},
|
|
"timezone": {
|
|
"label": "Timezone",
|
|
"key": "timezone",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter timezone",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "America/Chicago"
|
|
},
|
|
"user_locale": {
|
|
"label": "User locale",
|
|
"key": "user_locale",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter user locale",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "en-gb"
|
|
},
|
|
"cell_format": {
|
|
"label": "Cell format",
|
|
"key": "cell_format",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter cell format",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "string"
|
|
},
|
|
"view": {
|
|
"label": "View",
|
|
"key": "view",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter view",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "GridView"
|
|
},
|
|
"sort": {
|
|
"label": "Sort",
|
|
"key": "sort",
|
|
"type": "react-component-sort",
|
|
"description": "Enter sort values",
|
|
"buttonText": "Add"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|