mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-01 11:17:59 +00:00
183 lines
3.4 KiB
JavaScript
183 lines
3.4 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
|
|
model
|
|
alarmsCount
|
|
profile {
|
|
name
|
|
}
|
|
status {
|
|
protocol {
|
|
details {
|
|
reportedIpV4Addr
|
|
reportedMacAddr
|
|
manufacturer
|
|
}
|
|
}
|
|
osPerformance {
|
|
details {
|
|
uptimeInSeconds
|
|
}
|
|
}
|
|
radioUtilization {
|
|
details {
|
|
reportedIpV4Addr
|
|
capacityDetails
|
|
noiseFloorDetails
|
|
}
|
|
}
|
|
clientDetails {
|
|
details {
|
|
numClientsPerRadio
|
|
}
|
|
}
|
|
}
|
|
}
|
|
context {
|
|
lastPage
|
|
cursor
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const FILTER_EQUIPMENT_BULK_EDIT_APS = gql`
|
|
query FilterEquipment($locationIds: [Int], $customerId: Int!, $equipmentType: String) {
|
|
filterEquipment(
|
|
customerId: $customerId
|
|
locationIds: $locationIds
|
|
equipmentType: $equipmentType
|
|
) {
|
|
items {
|
|
name
|
|
id
|
|
locationId
|
|
channel
|
|
details
|
|
}
|
|
context {
|
|
lastPage
|
|
cursor
|
|
maxItemsPerPage
|
|
lastReturnedPageNumber
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
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!, $locationIds: [Int], $cursor: String) {
|
|
filterClientSessions(customerId: $customerId, locationIds: $locationIds, cursor: $cursor) {
|
|
items {
|
|
id
|
|
macAddress
|
|
ipAddress
|
|
hostname
|
|
ssid
|
|
radioType
|
|
signal
|
|
manufacturer
|
|
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
|
|
manufacturer
|
|
equipment {
|
|
name
|
|
}
|
|
details
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const FILTER_SERVICE_METRICS = gql`
|
|
query FilterServiceMetrics(
|
|
$customerId: Int!
|
|
$cursor: String
|
|
$fromTime: Int!
|
|
$toTime: Int!
|
|
$clientMacs: [String]
|
|
$dataTypes: [String]
|
|
) {
|
|
filterServiceMetrics(
|
|
customerId: $customerId
|
|
cursor: $cursor
|
|
fromTime: $fromTime
|
|
toTime: $toTime
|
|
clientMacs: $clientMacs
|
|
dataTypes: $dataTypes
|
|
) {
|
|
items {
|
|
dataType
|
|
createdTimestamp
|
|
rssi
|
|
rxBytes
|
|
txBytes
|
|
}
|
|
context {
|
|
lastPage
|
|
cursor
|
|
}
|
|
}
|
|
}
|
|
`;
|