⚡ (analytics) Improve analytics graph accuracy
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user