2
0

(analytics) Improve analytics graph accuracy

This commit is contained in:
Baptiste Arnaud
2023-06-30 12:13:17 +02:00
parent 55ff944ebb
commit b0f25f301b
28 changed files with 512 additions and 157 deletions

View File

@ -3642,6 +3642,73 @@
}
}
},
"/typebots/{typebotId}/analytics/totalAnswersInBlocks": {
"get": {
"operationId": "analytics-getTotalAnswersInBlocks",
"summary": "List total answers in blocks",
"tags": [
"Analytics"
],
"security": [
{
"Authorization": []
}
],
"parameters": [
{
"name": "typebotId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"totalAnswersInBlocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"blockId": {
"type": "string"
},
"itemId": {
"type": "string"
},
"total": {
"type": "number"
}
},
"required": [
"blockId",
"total"
],
"additionalProperties": false
}
}
},
"required": [
"totalAnswersInBlocks"
],
"additionalProperties": false
}
}
}
},
"default": {
"$ref": "#/components/responses/error"
}
}
}
},
"/workspaces": {
"get": {
"operationId": "workspace-listWorkspaces",
@ -4818,6 +4885,10 @@
"blockId": {
"type": "string"
},
"itemId": {
"type": "string",
"nullable": true
},
"groupId": {
"type": "string"
},
@ -4837,6 +4908,7 @@
"createdAt",
"resultId",
"blockId",
"itemId",
"groupId",
"variableId",
"content",