Тип запроса query
.
Возвращает список событий с запрошенными параметрами.
Параметры запроса
В теле запроса вводятся необязательные параметры:
Параметр | Тип данных | Описание | Обязательно | Пример |
---|---|---|---|---|
input |
Array | инпут запроса | - | EventInput |
page |
int | номер страницы | - | 2 |
first |
int | количество элементов, которые нужно вывести | - | 2 |
В теле ответа запрашиваются позиции события EventListItem.
Пример запроса
query eventList{
eventList(input:{
start:"2024-02-20 22:00:00"
finish:"2024-03-25 22:00:00"
})
{
data{
timestamp
type
settings{
alias
}
setting{
alias
}
booking{
id
Cost
}
cash_order{
id
type
}
client_session{
id
}
promocode{
title
}
good{
title
}
}
}
}
Пример ответа
{
"data": {
"eventList": {
"data": [
{
"timestamp": "2024-04-18 16:04:47",
"type": "HOST_SESSION_FINISHED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 16:04:47",
"type": "CLIENT_SESSION_FINISHED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": {
"id": 22193682
},
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 15:28:49",
"type": "CLIENT_SESSION_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": {
"id": 22193682
},
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 15:28:40",
"type": "WORKER_AUTHORIZED_FROM_HOST",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 15:28:13",
"type": "HOST_SESSION_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 15:28:12",
"type": "HOST_SESSION_FINISHED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 15:27:51",
"type": "HOST_SESSION_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:33:46",
"type": "HOST_SESSION_FINISHED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:33:46",
"type": "CLIENT_SESSION_FINISHED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": {
"id": 22186587
},
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:17:25",
"type": "CLIENT_SESSION_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": {
"id": 22186587
},
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:17:20",
"type": "WORK_SHIFT_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:17:15",
"type": "WORKER_AUTHORIZED_FROM_BILLING",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:16:42",
"type": "WORKER_AUTHORIZED_FROM_BILLING",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:16:10",
"type": "WORKER_AUTHORIZED_FROM_HOST",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 12:15:56",
"type": "HOST_SESSION_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 10:32:45",
"type": "HOST_SESSION_FINISHED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 09:57:49",
"type": "SHELL_ENABLED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 09:57:49",
"type": "HOST_SESSION_STARTED",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-18 09:45:07",
"type": "WORKER_AUTHORIZED_FROM_BILLING",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-17 22:35:49",
"type": "SEND_HOST_COMMAND",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
},
{
"timestamp": "2024-04-17 22:20:09",
"type": "SEND_HOST_COMMAND",
"settings": null,
"setting": null,
"booking": null,
"cash_order": null,
"client_session": null,
"promocode": null,
"good": null
}
]
}
},
"extensions": {
"x-trace-id": "a73561322801a5a3fa75681cfc54c37c"
}
}
Параметры ответа
В ответе возвращаются список событий и запрошенные по ним позиции EventListItem.