Channel field for EquipmentStatus

This commit is contained in:
irtiza-h30
2021-03-03 14:21:03 -05:00
parent 6a2c2900ce
commit 4be5b3e42d
2 changed files with 10 additions and 1 deletions

View File

@@ -397,7 +397,14 @@ const resolvers = {
return dataSources.api.getEquipmentStatus( return dataSources.api.getEquipmentStatus(
customerId, customerId,
[id], [id],
['PROTOCOL', 'OS_PERFORMANCE', 'RADIO_UTILIZATION', 'CLIENT_DETAILS', 'FIRMWARE'] [
'PROTOCOL',
'OS_PERFORMANCE',
'RADIO_UTILIZATION',
'CLIENT_DETAILS',
'FIRMWARE',
'RADIO_CHANNEL',
]
); );
}, },
channel: ({ details }) => { channel: ({ details }) => {
@@ -434,6 +441,7 @@ const resolvers = {
clientDetails: (items) => items.find((i) => i.statusDataType === 'CLIENT_DETAILS') || {}, clientDetails: (items) => items.find((i) => i.statusDataType === 'CLIENT_DETAILS') || {},
firmware: (items) => items.find((i) => i.statusDataType === 'FIRMWARE') || {}, firmware: (items) => items.find((i) => i.statusDataType === 'FIRMWARE') || {},
dashboard: (items) => items.find((i) => i.statusDataType === 'CUSTOMER_DASHBOARD') || {}, dashboard: (items) => items.find((i) => i.statusDataType === 'CUSTOMER_DASHBOARD') || {},
channel: (items) => items.find((i) => i.statusDataType === 'RADIO_CHANNEL') || {},
}, },
Status: { Status: {
detailsJSON: ({ details }) => details || {}, detailsJSON: ({ details }) => details || {},

View File

@@ -191,6 +191,7 @@ const typeDefs = gql`
clientDetails: Status clientDetails: Status
firmware: Status firmware: Status
dashboard: Status dashboard: Status
channel: Status
} }
type Status { type Status {