import gql from 'graphql-tag'; export const REFRESH_TOKEN = gql` mutation UpdateToken($refreshToken: String!) { updateToken(refreshToken: $refreshToken) { access_token refresh_token expires_in } } `; export const CREATE_LOCATION = gql` mutation CreateLocation( $locationType: String! $customerId: Int! $parentId: Int! $name: String! ) { createLocation( locationType: $locationType customerId: $customerId parentId: $parentId name: $name ) { locationType customerId parentId name } } `; export const UPDATE_LOCATION = gql` mutation UpdateLocation( $id: Int! $locationType: String! $customerId: Int! $parentId: Int! $name: String! $lastModifiedTimestamp: String ) { updateLocation( id: $id locationType: $locationType customerId: $customerId parentId: $parentId name: $name lastModifiedTimestamp: $lastModifiedTimestamp ) { id locationType customerId parentId name lastModifiedTimestamp } } `; export const DELETE_LOCATION = gql` mutation DeleteLocation($id: Int!) { deleteLocation(id: $id) { id } } `; export const UPDATE_EQUIPMENT_BULK = gql` mutation UpdateEquipmentBulk($items: [EquipmentRrmUpdate]) { updateEquipmentBulk(items: $items) { success } } `; export const FILE_UPLOAD = gql` mutation FileUpload($fileName: String, $file: Upload) { fileUpload(fileName: $fileName, file: $file) { fileName baseUrl } } `;