fixed warnings, added unit tests for Dashboard and AddProfile container

This commit is contained in:
Alidev123
2020-08-11 16:52:55 -04:00
parent 9dee5dae32
commit 8a2769b15f
16 changed files with 2909 additions and 263 deletions

View File

@@ -1,5 +1,44 @@
import gql from 'graphql-tag';
export const GET_ALL_ALARMS = gql`
query GetAllAlarms($customerId: ID!, $cursor: String) {
getAllAlarms(customerId: $customerId, cursor: $cursor) {
items {
severity
alarmCode
details
createdTimestamp
equipment {
id
name
}
}
context {
cursor
lastPage
}
}
}
`;
export const GET_ALL_USERS = gql`
query GetAllUsers($customerId: ID!, $cursor: String) {
getAllUsers(customerId: $customerId, cursor: $cursor) {
items {
id
email: username
role
lastModifiedTimestamp
customerId
}
context {
cursor
lastPage
}
}
}
`;
export const GET_ALL_LOCATIONS = gql`
query GetAllLocations($customerId: ID!) {
getAllLocations(customerId: $customerId) {