36 lines
1.1 KiB
JSON
36 lines
1.1 KiB
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"status": { "type": "string", "enum": ["success", "failed"] },
|
|
"error": { "type": ["string", "null"] },
|
|
"workflowId": { "type": "string" },
|
|
"workflowStatus": { "type": "string" },
|
|
"query": { "type": "string" },
|
|
"country": { "type": "string" },
|
|
"productKeywords": { "type": ["string", "null"] },
|
|
"completedAt": { "type": ["string", "null"] },
|
|
"summary": {
|
|
"type": ["object", "null"],
|
|
"properties": {
|
|
"businesses_count": { "type": "number" },
|
|
"contacts_count": { "type": "number" },
|
|
"businesses_with_reviews": { "type": "number" },
|
|
"businesses_with_email": { "type": "number" }
|
|
}
|
|
},
|
|
"businesses": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"domain": { "type": ["string", "null"] },
|
|
"emails": { "type": "array", "items": { "type": "string" } },
|
|
"reviews_data": { "type": ["string", "null"] }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": ["status", "error", "workflowId", "workflowStatus", "businesses"]
|
|
}
|