2021-11-17 17:59:00 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
2021-11-17 17:59:00 +00:00
|
|
|
"title": "Airtable datasource",
|
|
|
|
|
"description": "A schema defining Airtable datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "api",
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {},
|
2021-11-17 17:59:00 +00:00
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Operation",
|
|
|
|
|
"key": "operation",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"value": "list_records",
|
|
|
|
|
"name": "List records"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "retrieve_record",
|
|
|
|
|
"name": "Retrieve record"
|
|
|
|
|
},
|
2022-02-08 03:24:50 +00:00
|
|
|
{
|
|
|
|
|
"value": "create_record",
|
|
|
|
|
"name": "Create record"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"value": "update_record",
|
|
|
|
|
"name": "Update record"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "delete_record",
|
|
|
|
|
"name": "Delete record"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"list_records": {
|
|
|
|
|
"base_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Base ID",
|
|
|
|
|
"key": "base_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter base ID",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"table_name": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Table name",
|
|
|
|
|
"key": "table_name",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter table name",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Table name"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"page_size": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Page size",
|
|
|
|
|
"key": "page_size",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter page size",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "10"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"offset": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Offset",
|
|
|
|
|
"key": "offset",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter offset",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "recAOzdIHaRpvRaGE"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"retrieve_record": {
|
|
|
|
|
"base_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Base ID",
|
|
|
|
|
"key": "base_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter base ID",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"table_name": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Table name",
|
|
|
|
|
"key": "table_name",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter table name",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Table_name"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"record_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Record ID",
|
|
|
|
|
"key": "record_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter record id",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "recu9xMnUdr2n2cw8"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
2022-02-08 03:24:50 +00:00
|
|
|
"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\": {} }]"
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-11-17 17:59:00 +00:00
|
|
|
"update_record": {
|
|
|
|
|
"base_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Base ID",
|
|
|
|
|
"key": "base_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter base ID",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"table_name": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Table name",
|
|
|
|
|
"key": "table_name",
|
2021-11-17 17:59:00 +00:00
|
|
|
"lineNumbers": false,
|
|
|
|
|
"type": "codehinter",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter table name",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Table_name"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"record_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Record ID",
|
|
|
|
|
"key": "record_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter record id",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"body": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Body",
|
|
|
|
|
"key": "body",
|
2021-11-17 17:59:00 +00:00
|
|
|
"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": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Base ID",
|
|
|
|
|
"key": "base_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter base ID",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"table_name": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Table name",
|
|
|
|
|
"key": "table_name",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter table name",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Table_name"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"record_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Record ID",
|
|
|
|
|
"key": "record_id",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter record id",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "appwKbrBctcQF9pYr"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|