2021-12-30 02:33:08 +08:00
|
|
|
import strawberry # noqa
|
2022-01-10 00:00:14 +08:00
|
|
|
from felicity.api.gql.analysis.mutations import AnalysisMutations
|
|
|
|
from felicity.api.gql.analysis.query import AnalysisQuery
|
|
|
|
from felicity.api.gql.audit.query import AuditLogQuery
|
|
|
|
from felicity.api.gql.client.mutations import ClientMutations
|
|
|
|
from felicity.api.gql.client.query import ClientQuery
|
|
|
|
from felicity.api.gql.kanban.mutations import KanBanMutations
|
|
|
|
from felicity.api.gql.kanban.query import KanBanQuery
|
|
|
|
from felicity.api.gql.markdown.mutations import MarkdownMutations
|
|
|
|
from felicity.api.gql.markdown.query import MarkDownQuery
|
|
|
|
from felicity.api.gql.messaging.mutations import MessageMutations
|
|
|
|
from felicity.api.gql.messaging.query import MessageQuery
|
|
|
|
from felicity.api.gql.noticeboard.mutations import NoticeMutations
|
|
|
|
from felicity.api.gql.noticeboard.query import NoticeQuery
|
2022-01-13 05:06:57 +08:00
|
|
|
from felicity.api.gql.notification.query import StreamNotificationQuery
|
2022-01-10 00:00:14 +08:00
|
|
|
from felicity.api.gql.patient.mutations import PatientMutations
|
|
|
|
from felicity.api.gql.patient.query import PatientQuery
|
|
|
|
from felicity.api.gql.setup.mutations import SetupMutations
|
|
|
|
from felicity.api.gql.setup.query import SetupQuery
|
2022-01-13 05:06:57 +08:00
|
|
|
from felicity.api.gql.notification.subscription import StreamSubscription
|
2022-01-10 00:00:14 +08:00
|
|
|
from felicity.api.gql.user.mutations import UserMutations
|
|
|
|
from felicity.api.gql.user.query import UserQuery
|
|
|
|
from felicity.api.gql.worksheet.mutations import WorkSheetMutations
|
|
|
|
from felicity.api.gql.worksheet.query import WorkSheetQuery
|
2022-01-19 08:40:02 +08:00
|
|
|
from felicity.api.gql.analytics.query import AnalyticsQuery
|
2021-09-20 20:18:09 +08:00
|
|
|
|
|
|
|
|
|
|
|
@strawberry.type
|
2021-01-06 19:52:14 +08:00
|
|
|
class Query(
|
2021-09-20 20:18:09 +08:00
|
|
|
SetupQuery,
|
2021-09-21 22:21:45 +08:00
|
|
|
AuditLogQuery,
|
2021-09-20 22:13:21 +08:00
|
|
|
UserQuery,
|
2021-09-21 22:21:45 +08:00
|
|
|
ClientQuery,
|
|
|
|
PatientQuery,
|
|
|
|
AnalysisQuery,
|
|
|
|
WorkSheetQuery,
|
|
|
|
MarkDownQuery,
|
|
|
|
KanBanQuery,
|
2021-12-06 00:37:33 +08:00
|
|
|
MessageQuery,
|
|
|
|
NoticeQuery,
|
2022-01-13 05:06:57 +08:00
|
|
|
StreamNotificationQuery,
|
2022-01-19 08:40:02 +08:00
|
|
|
AnalyticsQuery,
|
2021-04-18 18:37:49 +08:00
|
|
|
):
|
2021-01-06 19:52:14 +08:00
|
|
|
pass
|
|
|
|
|
2021-04-18 18:37:49 +08:00
|
|
|
|
2021-09-22 05:45:15 +08:00
|
|
|
@strawberry.type
|
|
|
|
class Mutation(
|
|
|
|
UserMutations,
|
2021-09-23 05:33:20 +08:00
|
|
|
SetupMutations,
|
2021-09-22 15:34:32 +08:00
|
|
|
ClientMutations,
|
2021-09-22 16:47:24 +08:00
|
|
|
PatientMutations,
|
2021-09-23 05:33:20 +08:00
|
|
|
MarkdownMutations,
|
|
|
|
AnalysisMutations,
|
|
|
|
WorkSheetMutations,
|
|
|
|
KanBanMutations,
|
2021-12-06 00:37:33 +08:00
|
|
|
MessageMutations,
|
|
|
|
NoticeMutations,
|
2021-09-22 05:45:15 +08:00
|
|
|
):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-12-13 00:20:48 +08:00
|
|
|
@strawberry.type
|
2022-01-09 23:59:53 +08:00
|
|
|
class Subscription(StreamSubscription):
|
2021-12-13 00:20:48 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-01-09 23:59:53 +08:00
|
|
|
gql_schema = strawberry.Schema(
|
|
|
|
query=Query, mutation=Mutation, subscription=Subscription
|
|
|
|
)
|