2021-09-15 02:50:55 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
|
2021-09-15 02:50:55 +00:00
|
|
|
"title": "Mongodb datasource",
|
|
|
|
|
"description": "A schema defining mongodb datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "database",
|
2021-09-22 05:13:12 +00:00
|
|
|
"source": {
|
|
|
|
|
"name": "MongoDB",
|
|
|
|
|
"kind": "mongodb",
|
|
|
|
|
"exposedVariables": {
|
2022-02-08 03:14:38 +00:00
|
|
|
"isLoading": false,
|
2021-09-22 05:13:12 +00:00
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
2022-01-27 05:25:16 +00:00
|
|
|
"host": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"connection_type": {
|
|
|
|
|
"type": "options"
|
|
|
|
|
},
|
|
|
|
|
"connection_string": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"encrypted": true
|
2024-11-21 15:45:43 +00:00
|
|
|
},
|
|
|
|
|
"ca_cert": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"client_key": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"client_cert": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"root_cert": {
|
|
|
|
|
"encrypted": true
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|
2021-09-22 05:13:12 +00:00
|
|
|
}
|
|
|
|
|
},
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
2022-01-27 05:25:16 +00:00
|
|
|
"database": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"host": {
|
|
|
|
|
"value": "localhost"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"value": 27017
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"connection_type": {
|
|
|
|
|
"value": "manual"
|
|
|
|
|
},
|
|
|
|
|
"connection_string": {
|
|
|
|
|
"value": ""
|
2024-11-21 15:45:43 +00:00
|
|
|
},
|
|
|
|
|
"tls_certificate": {
|
|
|
|
|
"value": "none"
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|
2021-11-22 08:22:32 +00:00
|
|
|
},
|
2021-09-15 02:50:55 +00:00
|
|
|
"properties": {
|
|
|
|
|
"connection_type": {
|
2024-10-28 17:56:26 +00:00
|
|
|
"label": "Connection type",
|
2022-01-17 07:08:17 +00:00
|
|
|
"key": "connection_type",
|
2021-09-15 02:50:55 +00:00
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for connection_type",
|
2022-01-17 07:08:17 +00:00
|
|
|
"list": [
|
2022-01-27 05:25:16 +00:00
|
|
|
{
|
|
|
|
|
"name": "Manual connection",
|
|
|
|
|
"value": "manual"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Connect using connection string",
|
|
|
|
|
"value": "string"
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"manual": {
|
2024-11-21 15:45:43 +00:00
|
|
|
"tls_certificate": {
|
|
|
|
|
"label": "TLS/SSL Certificate",
|
|
|
|
|
"key": "tls_certificate",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for choosing certificates",
|
|
|
|
|
"list": [
|
|
|
|
|
{ "value": "ca_certificate", "name": "CA certificate" },
|
|
|
|
|
{ "value": "client_certificate", "name": "Client certificate" },
|
|
|
|
|
{ "value": "none", "name": "None" }
|
|
|
|
|
],
|
|
|
|
|
"commonFields":{
|
|
|
|
|
"host": {
|
|
|
|
|
"label": "Host",
|
|
|
|
|
"key": "host",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter host"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"label": "Port",
|
|
|
|
|
"key": "port",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter port"
|
|
|
|
|
},
|
|
|
|
|
"database": {
|
|
|
|
|
"label": "Database Name",
|
|
|
|
|
"key": "database",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Name of the database"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"label": "Username",
|
|
|
|
|
"key": "username",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter username"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"label": "Password",
|
|
|
|
|
"key": "password",
|
|
|
|
|
"type": "password",
|
|
|
|
|
"description": "Enter password"
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
2024-11-21 15:45:43 +00:00
|
|
|
"ca_certificate": {
|
|
|
|
|
"ca_cert": {
|
|
|
|
|
"label": "CA Cert",
|
|
|
|
|
"key": "ca_cert",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter CA certificate"
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
2024-11-21 15:45:43 +00:00
|
|
|
"client_certificate": {
|
|
|
|
|
"client_key": {
|
|
|
|
|
"label": "Client Key",
|
|
|
|
|
"key": "client_key",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter client key"
|
|
|
|
|
},
|
|
|
|
|
"client_cert": {
|
|
|
|
|
"label": "Client Cert",
|
|
|
|
|
"key": "client_cert",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter client certificate"
|
|
|
|
|
},
|
|
|
|
|
"ca_cert": {
|
|
|
|
|
"label": "CA Cert",
|
|
|
|
|
"key": "ca_cert",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter CA certificate"
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"string": {
|
|
|
|
|
"connection_string": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Connection string",
|
|
|
|
|
"key": "connection_string",
|
2021-09-15 02:50:55 +00:00
|
|
|
"type": "text",
|
2023-12-22 11:46:10 +00:00
|
|
|
"encrypted": true,
|
2021-09-15 02:50:55 +00:00
|
|
|
"description": "mongodb+srv://tooljet:<password>@cluster0.i1vq4.mongodb.net/mydb?retryWrites=true&w=majority"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|