2022-01-19 08:40:02 +08:00
|
|
|
from strawberry.tools import create_type
|
|
|
|
|
|
|
|
from .dashboard import (
|
2023-03-19 23:21:32 +08:00
|
|
|
analysis_process_performance,
|
|
|
|
count_analyte_group_by_instrument,
|
2022-01-19 08:40:02 +08:00
|
|
|
count_analyte_group_by_status,
|
2022-11-27 04:32:49 +08:00
|
|
|
count_extras_group_by_status,
|
2023-03-19 23:21:32 +08:00
|
|
|
count_sample_group_by_action,
|
|
|
|
count_sample_group_by_status,
|
|
|
|
count_worksheet_group_by_status,
|
2022-01-19 08:40:02 +08:00
|
|
|
sample_laggards,
|
2023-03-19 23:21:32 +08:00
|
|
|
sample_process_performance,
|
2022-01-19 08:40:02 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
AnalyticsQuery = create_type(
|
|
|
|
"Query",
|
|
|
|
[
|
|
|
|
count_sample_group_by_status,
|
|
|
|
count_sample_group_by_action,
|
|
|
|
count_analyte_group_by_status,
|
|
|
|
count_worksheet_group_by_status,
|
2022-11-27 04:32:49 +08:00
|
|
|
count_extras_group_by_status,
|
2022-01-19 08:40:02 +08:00
|
|
|
count_analyte_group_by_instrument,
|
|
|
|
sample_process_performance,
|
|
|
|
analysis_process_performance,
|
|
|
|
sample_laggards,
|
|
|
|
],
|
|
|
|
)
|