Files
wlan-cloud-ui/app/graphql/queries.js
2020-06-11 00:49:04 -04:00

118 lines
2.1 KiB
JavaScript

import gql from 'graphql-tag';
export const GET_ALL_LOCATIONS = gql`
query GetAllLocations($customerId: Int!) {
getAllLocations(customerId: $customerId) {
id
name
parentId
locationType
}
}
`;
export const FILTER_EQUIPMENT = gql`
query FilterEquipment(
$locationIds: [Int]
$customerId: Int!
$equipmentType: String
$cursor: String
) {
filterEquipment(
customerId: $customerId
locationIds: $locationIds
equipmentType: $equipmentType
cursor: $cursor
) {
items {
name
id
locationId
profileId
inventoryId
channel
profile {
name
}
status {
protocol {
details {
reportedIpV4Addr
reportedMacAddr
}
}
osPerformance {
details {
uptimeInSeconds
}
}
radioUtilization {
details {
reportedIpV4Addr
capacityDetails
noiseFloorDetails
}
}
}
}
context {
lastPage
cursor
}
}
}
`;
export const GET_LOCATION = gql`
query GetLocation($id: Int!) {
getLocation(id: $id) {
id
parentId
name
locationType
lastModifiedTimestamp
}
}
`;
export const FILTER_CLIENT_SESSIONS = gql`
query FilterClientSessions($customerId: Int!, $cursor: String) {
getAllClientSessions(customerId: $customerId, cursor: $cursor) {
items {
id
macAddress
ipAddress
hostname
ssid
radioType
signal
equipment {
name
}
}
context {
lastPage
cursor
}
}
}
`;
export const GET_CLIENT_SESSION = gql`
query GetClientSession($customerId: Int!, $macAddress: String!) {
getClientSession(customerId: $customerId, macAddress: $macAddress) {
id
macAddress
ipAddress
hostname
ssid
radioType
signal
equipment {
name
}
details
}
}
`;