mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-22 22:17:55 +00:00
* fix : Preview on parameters is not visible. * fix : data source codehinter breaking * fix : current value copy button.(copying different values) * fix : select suggestions using mouse closes the preview box. * fix : multiline preview * fix: darkmode * fixes: - multi-line suggestions on different line numbers - extended single line editor for json body * cleanup * handle multiple resolver references with hints * fix : codehinter position * fix : data source codehinters * fix : woocommerce * bugfix : bigquery * fix : Selecting options from suggestion cleareing the values from input fielsds. * fix : parmeter list not opening * datasource going back to defaults bug * fix : datasource resetting issue --------- Co-authored-by: arpitnath <arpitnath42@gmail.com>
380 lines
No EOL
11 KiB
JSON
380 lines
No EOL
11 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "BigQuery datasource",
|
|
"description": "A schema defining BigQuery datasource",
|
|
"type": "database",
|
|
"defaults": {},
|
|
"properties": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for operation",
|
|
"list": [
|
|
{
|
|
"value": "query",
|
|
"name": "Query"
|
|
},
|
|
{
|
|
"value": "list_datasets",
|
|
"name": "List Datasets"
|
|
},
|
|
{
|
|
"value": "list_tables",
|
|
"name": "List Tables"
|
|
},
|
|
{
|
|
"value": "create_table",
|
|
"name": "Create Table"
|
|
},
|
|
{
|
|
"value": "delete_table",
|
|
"name": "Delete Table"
|
|
},
|
|
{
|
|
"value": "create_view",
|
|
"name": "Create View"
|
|
},
|
|
{
|
|
"value": "insert_record",
|
|
"name": "Insert Record"
|
|
},
|
|
{
|
|
"value": "delete_record",
|
|
"name": "Delete Record"
|
|
},
|
|
{
|
|
"value": "update_record",
|
|
"name": "Update Record"
|
|
}
|
|
]
|
|
},
|
|
"insert_record": {
|
|
"tableId": {
|
|
"label": "Table id",
|
|
"key": "tableId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table id"
|
|
},
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset"
|
|
},
|
|
"rows": {
|
|
"label": "Rows",
|
|
"key": "rows",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "[{name: 'Tom', age: 30},{name: 'Jane', age: 32}]",
|
|
"description": "Enter rows",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"delete_record": {
|
|
"tableId": {
|
|
"label": "Table id",
|
|
"key": "tableId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table id"
|
|
},
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset"
|
|
},
|
|
"condition": {
|
|
"label": "Condition",
|
|
"key": "condition",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "CustomerName='Alfreds Futterkiste'",
|
|
"description": "Enter condition",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryOptions": {
|
|
"label": "Query options",
|
|
"key": "queryOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ location: 'US', dryRun: true }",
|
|
"description": "Enter query options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryResultsOptions": {
|
|
"label": "Query results options",
|
|
"key": "queryResultsOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ wrapIntegers: true }",
|
|
"description": "Enter Query results options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"create_table": {
|
|
"tableId": {
|
|
"label": "Table id",
|
|
"key": "tableId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table id"
|
|
},
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset"
|
|
},
|
|
"options": {
|
|
"label": "Options",
|
|
"key": "options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{schema: [{name: 'Name', type: 'STRING', mode: 'REQUIRED'},{name: 'Age', type: 'INTEGER'}], location: 'US' }",
|
|
"description": "Enter options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"delete_table": {
|
|
"tableId": {
|
|
"label": "Table id",
|
|
"key": "tableId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table id"
|
|
},
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset id"
|
|
}
|
|
},
|
|
"create_view": {
|
|
"tableId": {
|
|
"label": "Table id",
|
|
"key": "tableId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table id"
|
|
},
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset"
|
|
},
|
|
"view_name": {
|
|
"label": "View name",
|
|
"key": "view_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter view name",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter view name"
|
|
},
|
|
"viewcolumns": {
|
|
"label": "View columns",
|
|
"key": "viewcolumns",
|
|
"type": "codehinter",
|
|
"placeholder": "column1, column2, ... ",
|
|
"description": "Enter viewcolumns",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"condition": {
|
|
"label": "Condition",
|
|
"key": "condition",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "CustomerName='Alfreds Futterkiste'",
|
|
"description": "Enter condition",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryOptions": {
|
|
"label": "Query options",
|
|
"key": "queryOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ location: 'US', dryRun: true }",
|
|
"description": "Enter query options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryResultsOptions": {
|
|
"label": "Query results options",
|
|
"key": "queryResultsOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ wrapIntegers: true }",
|
|
"description": "Enter Query results options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"update_record": {
|
|
"tableId": {
|
|
"label": "Table id",
|
|
"key": "tableId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table id"
|
|
},
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset"
|
|
},
|
|
"columns": {
|
|
"label": "Columns",
|
|
"key": "columns",
|
|
"type": "codehinter",
|
|
"placeholder": "{{({name:'bob',age:30})}}",
|
|
"description": "Enter columns",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"condition": {
|
|
"label": "Condition",
|
|
"key": "condition",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "CustomerName='Alfreds Futterkiste'",
|
|
"description": "Enter condition",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryOptions": {
|
|
"label": "Query options",
|
|
"key": "queryOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ location: 'US', dryRun: true }",
|
|
"description": "Enter query options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryResultsOptions": {
|
|
"label": "Query results options",
|
|
"key": "queryResultsOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ wrapIntegers: true }",
|
|
"description": "Enter Query results options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"list_tables": {
|
|
"datasetId": {
|
|
"label": "Dataset id",
|
|
"key": "datasetId",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter dataset id",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter dataset"
|
|
}
|
|
},
|
|
"query": {
|
|
"query": {
|
|
"label": "Query",
|
|
"key": "query",
|
|
"type": "codehinter",
|
|
"placeholder": "SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` WHERE state = 'TX' LIMIT 100",
|
|
"description": "Enter query",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryOptions": {
|
|
"label": "Query options",
|
|
"key": "queryOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ location: 'US', dryRun: true }",
|
|
"description": "Enter query options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"queryResultsOptions": {
|
|
"label": "Query results options",
|
|
"key": "queryResultsOptions",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ wrapIntegers: true }",
|
|
"description": "Enter Query results options",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
}
|
|
}
|
|
} |