2023-04-10 09:29:10 +08:00
|
|
|
import gql from 'graphql-tag';
|
2022-02-06 23:56:47 +08:00
|
|
|
|
|
|
|
export const GET_ALL_REFLEX_RULES = gql`
|
2023-04-10 09:29:10 +08:00
|
|
|
query getAllReflexRules {
|
|
|
|
reflexRuleAll {
|
|
|
|
totalCount
|
|
|
|
items {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
createdBy {
|
|
|
|
firstName
|
|
|
|
lastName
|
|
|
|
}
|
|
|
|
}
|
2022-02-06 23:56:47 +08:00
|
|
|
}
|
|
|
|
}
|
2023-04-10 09:29:10 +08:00
|
|
|
`;
|
2022-02-06 23:56:47 +08:00
|
|
|
|
|
|
|
export const GET_EFLEX_RULE_BY_UID = gql`
|
2023-04-10 09:29:10 +08:00
|
|
|
query getReflexRuleByUid($uid: FelicityID!) {
|
|
|
|
reflexRuleByUid(uid: $uid) {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
description
|
|
|
|
reflexActions {
|
|
|
|
uid
|
|
|
|
level
|
|
|
|
description
|
|
|
|
analyses {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
}
|
|
|
|
brains {
|
|
|
|
description
|
|
|
|
analysesValues {
|
|
|
|
analysisUid
|
|
|
|
analysis {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
resultOptions {
|
|
|
|
optionKey
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
operator
|
|
|
|
value
|
|
|
|
}
|
|
|
|
addNew {
|
|
|
|
analysisUid
|
|
|
|
analysis {
|
|
|
|
uid
|
|
|
|
name
|
|
|
|
resultOptions {
|
|
|
|
optionKey
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
count
|
|
|
|
}
|
|
|
|
finalise {
|
|
|
|
analysisUid
|
|
|
|
analysis {
|
|
|
|
name
|
|
|
|
resultOptions {
|
|
|
|
optionKey
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
2022-02-06 23:56:47 +08:00
|
|
|
}
|
2023-04-10 09:29:10 +08:00
|
|
|
createdBy {
|
|
|
|
firstName
|
|
|
|
lastName
|
2022-02-06 23:56:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-10 09:29:10 +08:00
|
|
|
`;
|