2023-04-19 15:42:57 +00:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
|
|
|
"title": "AWS Textract datasource",
|
|
|
|
|
"description": "A schema defining AWS Textract datasource",
|
|
|
|
|
"type": "api",
|
|
|
|
|
"defaults": {},
|
|
|
|
|
"properties": {
|
|
|
|
|
"operation": {
|
|
|
|
|
"label": "Operation",
|
|
|
|
|
"key": "operation",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for operation",
|
|
|
|
|
"list": [
|
|
|
|
|
{
|
|
|
|
|
"value": "analyze_document",
|
|
|
|
|
"name": "Analyze Document"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "analyze_document_s3",
|
2023-04-21 10:07:47 +00:00
|
|
|
"name": "Analyze document stored in AWS S3"
|
2023-04-19 15:42:57 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"analyze_document": {
|
|
|
|
|
"document": {
|
|
|
|
|
"label": "Document",
|
|
|
|
|
"key": "document",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter document",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter document"
|
2023-04-21 10:05:51 +00:00
|
|
|
},
|
2023-04-25 09:38:38 +00:00
|
|
|
"feature_types": {
|
2023-04-21 10:05:51 +00:00
|
|
|
"label": "Data output",
|
|
|
|
|
"key": "feature_types",
|
|
|
|
|
"type": "checkbox-group",
|
|
|
|
|
"description": "Enter access key",
|
|
|
|
|
"list": [
|
|
|
|
|
{
|
|
|
|
|
"label": "Forms",
|
|
|
|
|
"value": "FORMS"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Tables",
|
|
|
|
|
"value": "TABLES"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Queries",
|
|
|
|
|
"value": "QUERIES"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Signature detection",
|
|
|
|
|
"value": "SIGNATURES"
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-04-19 15:42:57 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"analyze_document_s3": {
|
|
|
|
|
"bucket": {
|
|
|
|
|
"label": "Bucket",
|
|
|
|
|
"key": "bucket",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter bucket",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter bucket"
|
|
|
|
|
},
|
|
|
|
|
"key": {
|
|
|
|
|
"label": "Key",
|
|
|
|
|
"key": "key",
|
|
|
|
|
"type": "codehinter",
|
|
|
|
|
"lineNumbers": false,
|
|
|
|
|
"description": "Enter key",
|
|
|
|
|
"width": "320px",
|
|
|
|
|
"height": "36px",
|
|
|
|
|
"className": "codehinter-plugins",
|
|
|
|
|
"placeholder": "Enter key"
|
2023-04-21 10:07:47 +00:00
|
|
|
},
|
|
|
|
|
"featureTypes": {
|
|
|
|
|
"label": "Data output",
|
|
|
|
|
"key": "feature_types",
|
|
|
|
|
"type": "checkbox-group",
|
|
|
|
|
"description": "Enter access key",
|
|
|
|
|
"list": [
|
|
|
|
|
{
|
|
|
|
|
"label": "Forms",
|
|
|
|
|
"value": "FORMS"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Tables",
|
|
|
|
|
"value": "TABLES"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Queries",
|
|
|
|
|
"value": "QUERIES"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Signature detection",
|
|
|
|
|
"value": "SIGNATURES"
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-04-19 15:42:57 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|