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": "Googlesheets datasource",
|
|
|
|
|
"description": "A schema defining Googlesheets datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "api",
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
|
|
|
|
"operation": "read"
|
|
|
|
|
},
|
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": [
|
2021-12-02 06:55:40 +00:00
|
|
|
{
|
|
|
|
|
"value": "read",
|
|
|
|
|
"name": "Read data from a spreadsheet"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "append",
|
|
|
|
|
"name": "Append data to a spreadsheet"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "info",
|
|
|
|
|
"name": "Get spreadsheet info"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "update",
|
|
|
|
|
"name": "Update data to a spreadsheet"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "delete_row",
|
|
|
|
|
"name": "Delete row from a spreadsheet"
|
|
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"read": {
|
|
|
|
|
"spreadsheet_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Spreadsheet ID",
|
|
|
|
|
"key": "spreadsheet_id",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter spreadsheet_id",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter spreadsheet_id"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"spreadsheet_range": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Range",
|
|
|
|
|
"key": "spreadsheet_range",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2021-11-17 17:59:00 +00:00
|
|
|
"placeholder": "A1:Z500",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter range",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"sheet": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Sheet",
|
|
|
|
|
"key": "sheet",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2021-11-17 17:59:00 +00:00
|
|
|
"placeholder": "Leave blank to use first sheet",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter sheet",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"append": {
|
|
|
|
|
"spreadsheet_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Spreadsheet ID",
|
|
|
|
|
"key": "spreadsheet_id",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter spreadsheet_id",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter spreadsheet_id"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"sheet": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Sheet",
|
|
|
|
|
"key": "sheet",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2021-11-17 17:59:00 +00:00
|
|
|
"placeholder": "Leave blank to use first sheet",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter sheet",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"rows": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Rows",
|
|
|
|
|
"key": "rows",
|
2021-11-17 17:59:00 +00:00
|
|
|
"type": "codehinter",
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter rows",
|
2022-06-01 01:02:02 +00:00
|
|
|
"height": "150px",
|
2022-02-02 16:59:57 +00:00
|
|
|
"placeholder": "Enter rows"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"info": {
|
|
|
|
|
"spreadsheet_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Spreadsheet ID",
|
|
|
|
|
"key": "spreadsheet_id",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter spreadsheet_id",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter spreadsheet_id"
|
|
|
|
|
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"delete_row": {
|
|
|
|
|
"spreadsheet_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Spreadsheet ID",
|
|
|
|
|
"key": "spreadsheet_id",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter spreadsheet_id",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter spreadsheet_id"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"sheet": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "GID",
|
|
|
|
|
"key": "sheet",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter sheet",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter sheet"
|
2021-11-17 17:59:00 +00:00
|
|
|
},
|
|
|
|
|
"row_index": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Delete row number",
|
|
|
|
|
"key": "row_index",
|
2021-11-20 01:34:00 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter row number",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter row number"
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
2021-12-02 06:55:40 +00:00
|
|
|
},
|
|
|
|
|
"update": {
|
|
|
|
|
"spreadsheet_id": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Spreadsheet ID",
|
|
|
|
|
"key": "spreadsheet_id",
|
2021-12-02 06:55:40 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter spreadsheet_id",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter spreadsheet_id"
|
2021-12-02 06:55:40 +00:00
|
|
|
},
|
2022-03-07 08:48:30 +00:00
|
|
|
"spreadsheet_range": {
|
|
|
|
|
"label": "Range",
|
|
|
|
|
"key": "spreadsheet_range",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"placeholder": "A1:Z500",
|
|
|
|
|
"description": "Enter range",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins"
|
|
|
|
|
},
|
2022-02-16 18:42:20 +00:00
|
|
|
"sheet": {
|
|
|
|
|
"label": "Sheet name",
|
|
|
|
|
"key": "sheet",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter sheet name",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Leave blank to use first sheet"
|
|
|
|
|
},
|
2021-12-02 06:55:40 +00:00
|
|
|
"where_field": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Where",
|
|
|
|
|
"key": "where_field",
|
2021-12-02 06:55:40 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter field",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins col-4",
|
|
|
|
|
"placeholder": "Enter field"
|
2021-12-02 06:55:40 +00:00
|
|
|
},
|
|
|
|
|
"where_operation": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Operator",
|
|
|
|
|
"key": "where_operation",
|
2021-12-02 06:55:40 +00:00
|
|
|
"className": "col-4",
|
|
|
|
|
"type": "dropdown",
|
|
|
|
|
"description": "Single select dropdown for where operation",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2021-12-02 06:55:40 +00:00
|
|
|
{
|
|
|
|
|
"value": "===",
|
|
|
|
|
"name": "==="
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"where_value": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Value",
|
|
|
|
|
"key": "where_value",
|
2021-12-02 06:55:40 +00:00
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
2022-02-02 16:59:57 +00:00
|
|
|
"description": "Enter value",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins col-4",
|
2022-02-16 18:42:20 +00:00
|
|
|
"placeholder": "Enter value"
|
2021-12-02 06:55:40 +00:00
|
|
|
},
|
|
|
|
|
"body": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Body",
|
|
|
|
|
"key": "body",
|
2021-12-02 06:55:40 +00:00
|
|
|
"type": "codehinter",
|
2022-06-01 01:02:02 +00:00
|
|
|
"height": "150px",
|
|
|
|
|
"description": "Enter body"
|
2021-12-02 06:55:40 +00:00
|
|
|
}
|
2021-11-17 17:59:00 +00:00
|
|
|
}
|
|
|
|
|
}
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|