packers_performance_dashboard
Returns a paginated list of packer performance stats for a warehouse. All duration fields are returned in seconds. Results are ordered by score DESC by default. Please note that this query is EXPERIMENTAL and may be changed, renamed, or removed without notice. For that reason, it must not be used for integrations. This query must also be enabled as a feature for the account; otherwise, the API responds with "Feature not enabled".
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
warehouse_id | ID! | Yes | public_api warehouse id | |
date_from | ISODateTime | No | ||
date_to | ISODateTime | No | ||
first | Int | No | Page size (workforce_hero cursor pagination) | |
cursor | String | No | Cursor returned by a previous page | |
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
PackersPerformanceDashboardResult
Query
query packers_performance_dashboard(
$warehouse_id: ID!,
$date_from: ISODateTime,
$date_to: ISODateTime,
$first: Int,
$cursor: String,
$analyze: Boolean
) {
packers_performance_dashboard(
warehouse_id: $warehouse_id,
date_from: $date_from,
date_to: $date_to,
first: $first,
cursor: $cursor,
analyze: $analyze
) {
request_id
complexity
data {
edges {
node {
user_id
worker_name
shipments
units
total_packing_seconds
time_in_job
alerted_time
score
productivity
}
}
page_info {
has_next_page
has_previous_page
start_cursor
end_cursor
}
}
}
}Variables
{
"warehouse_id": "abc123",
"date_from": ISODateTime,
"date_to": ISODateTime,
"first": 987,
"cursor": "abc123",
"analyze": true
}Response
{
"data": {
"packers_performance_dashboard": {
"request_id": "abc123",
"complexity": 987,
"data": PackerPerformancePage
}
}
}