mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 00:12:54 +08:00
78 lines
1.2 KiB
TypeScript
78 lines
1.2 KiB
TypeScript
import gql from 'graphql-tag'
|
|
|
|
|
|
export const SUBSCRIBE_TO_TEST_STREAM = gql`
|
|
subscription getTestingStream {
|
|
testStream {
|
|
uid
|
|
actorUid
|
|
actor{
|
|
uid
|
|
firstName
|
|
lastName
|
|
}
|
|
actionObjectUid
|
|
actionObjectType
|
|
actionObject {
|
|
__typename
|
|
...on SampleType {
|
|
uid
|
|
sampleId
|
|
analysisRequest {
|
|
patientUid
|
|
}
|
|
}
|
|
...on WorkSheetType {
|
|
uid
|
|
worksheetId
|
|
}
|
|
}
|
|
targetUid
|
|
verb
|
|
}
|
|
}`;
|
|
|
|
|
|
export const SUBSCRIBE_TO_ACTIVITY_STREAM = gql`
|
|
subscription getSystemActivity {
|
|
latestActivity {
|
|
uid
|
|
actorUid
|
|
actor{
|
|
uid
|
|
firstName
|
|
lastName
|
|
}
|
|
actionObjectUid
|
|
actionObjectType
|
|
actionObject {
|
|
__typename
|
|
...on SampleType {
|
|
uid
|
|
sampleId
|
|
status
|
|
analysisRequest {
|
|
patientUid
|
|
}
|
|
}
|
|
...on WorkSheetType {
|
|
uid
|
|
worksheetId
|
|
state
|
|
}
|
|
...on AnalysisResultType {
|
|
uid
|
|
sampleUid
|
|
result
|
|
status
|
|
}
|
|
...on ReportMetaType {
|
|
uid
|
|
status
|
|
location
|
|
}
|
|
}
|
|
targetUid
|
|
verb
|
|
}
|
|
}`;
|