2021-11-17 17:59:00 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/",
|
|
|
|
|
"$id": "https://tooljet.io/dataqueries/Airtable.schema.json",
|
|
|
|
|
"title": "Airtable datasource",
|
|
|
|
|
"description": "A schema defining Airtable datasource",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
|
|
|
|
"$label": "Operation",
|
|
|
|
|
"$key": "operation",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
|
|
|
|
"$options": [
|
|
|
|
|
{ "value": "list_records", "name": "List records" },
|
|
|
|
|
{ "value": "retrieve_record", "name": "Retrieve 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"
|
|
|
|
|
},
|
|
|
|
|
"table_name": {
|
|
|
|
|
"$label": "Table name",
|
|
|
|
|
"$key": "table_name",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter table name"
|
|
|
|
|
},
|
|
|
|
|
"page_size": {
|
|
|
|
|
"$label": "Page size",
|
|
|
|
|
"$key": "page_size",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter page size"
|
|
|
|
|
},
|
|
|
|
|
"offset": {
|
|
|
|
|
"$label": "Offset",
|
|
|
|
|
"$key": "offset",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter offset"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"retrieve_record": {
|
|
|
|
|
"base_id": {
|
|
|
|
|
"$label": "Base ID",
|
|
|
|
|
"$key": "base_id",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter base ID"
|
|
|
|
|
},
|
|
|
|
|
"table_name": {
|
|
|
|
|
"$label": "Table name",
|
|
|
|
|
"$key": "table_name",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter table name"
|
|
|
|
|
},
|
|
|
|
|
"record_id": {
|
|
|
|
|
"$label": "Record ID",
|
|
|
|
|
"$key": "record_id",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter record id"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"update_record": {
|
|
|
|
|
"base_id": {
|
|
|
|
|
"$label": "Base ID",
|
|
|
|
|
"$key": "base_id",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter base ID"
|
|
|
|
|
},
|
|
|
|
|
"table_name": {
|
|
|
|
|
"$label": "Table name",
|
|
|
|
|
"$key": "table_name",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"description": "Enter table name"
|
|
|
|
|
},
|
|
|
|
|
"record_id": {
|
|
|
|
|
"$label": "Record ID",
|
|
|
|
|
"$key": "record_id",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter record id"
|
|
|
|
|
},
|
|
|
|
|
"body": {
|
|
|
|
|
"$label": "Body",
|
|
|
|
|
"$key": "body",
|
|
|
|
|
"type": "codehinter",
|
2021-11-21 04:14:26 +00:00
|
|
|
"description": "Enter body",
|
|
|
|
|
"height": "150px"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete_record": {
|
|
|
|
|
"base_id": {
|
|
|
|
|
"$label": "Base ID",
|
|
|
|
|
"$key": "base_id",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter base ID"
|
|
|
|
|
},
|
|
|
|
|
"table_name": {
|
|
|
|
|
"$label": "Table name",
|
|
|
|
|
"$key": "table_name",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter table name"
|
|
|
|
|
},
|
|
|
|
|
"record_id": {
|
|
|
|
|
"$label": "Record ID",
|
|
|
|
|
"$key": "record_id",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter record id"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|