mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* ee commit * merge commit * feat: updated openapi operation component * updated query operation sepctype * fix: updated query dropdown style * feat: config dropdown update * feat: add Gmail plugin with API integration and initial setup * refactor: enhance type definitions * refactor: clean up code and refactor variable names * fix: update Gmail OAuth scope to allow full access to Gmail * feat: standardize error handling for Gmail plugin * fix: include oauth_type handling in Gmail plugin for cloud environment * fix: update spec_url for Gmail operations * refactor: remove unused fields in gmail manifest.json * fix: update Content-Type header to application/x-www-form-urlencoded for token requests * feat: add environment variable prefix for Gmail in OAuth handling * fix: remove encryption requirement for client_id in Gmail manifest * fix: update Gmail plugin to use form data for token requests and simplify response handling * fix: add Gmail to OAuth data sources in DataSourceManager * fix: encode path parameters in Gmail plugin URL construction * fix: add back margin to Client ID label in CommonOAuthFields component * fix: adjust width of input field in RenderParameterFields for better alignment * fix: set response type to 'json' in requestOptions for Gmail service --------- Co-authored-by: Devanshu Gupta <devanshuguptaknp@gmail.com>
73 lines
No EOL
1.5 KiB
JSON
73 lines
No EOL
1.5 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
|
|
"title": "Gmail datasource",
|
|
"description": "A schema defining Gmail datasource",
|
|
"type": "api",
|
|
"source": {
|
|
"name": "Gmail",
|
|
"kind": "gmail",
|
|
"exposedVariables": {
|
|
"isLoading": false,
|
|
"data": {},
|
|
"rawData": {}
|
|
},
|
|
"options": {
|
|
"client_id": {
|
|
"type": "string"
|
|
},
|
|
"client_secret": {
|
|
"type": "string",
|
|
"encrypted": true
|
|
},
|
|
"redirect_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"customTesting": true
|
|
},
|
|
"defaults": {
|
|
"redirect_url": {
|
|
"value": "",
|
|
"encrypted": false
|
|
},
|
|
"allowed_auth_types": {
|
|
"value": "oauth2",
|
|
"encrypted": false
|
|
},
|
|
"auth_type": {
|
|
"value": "oauth2"
|
|
},
|
|
"grant_type": {
|
|
"value": "authorization_code"
|
|
},
|
|
"oauth_type": {
|
|
"value": "custom_app"
|
|
},
|
|
"access_token_url": {
|
|
"value": "https://oauth2.googleapis.com/token"
|
|
}
|
|
},
|
|
"properties": {
|
|
"oauth": {
|
|
"key": "oauth",
|
|
"type": "react-component-oauth",
|
|
"description": "OAuth configuration for Gmail",
|
|
"oauth_configs": {
|
|
"allowed_field_groups": {
|
|
"authorization_code": [
|
|
"client_id",
|
|
"client_secret"
|
|
]
|
|
},
|
|
"allowed_auth_types": [
|
|
"oauth2"
|
|
],
|
|
"allowed_grant_types": [
|
|
"authorization_code"
|
|
],
|
|
"allowed_scope_field": false
|
|
}
|
|
}
|
|
},
|
|
"required": []
|
|
} |