mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-01 11:17:59 +00:00
74 lines
1.4 KiB
JavaScript
74 lines
1.4 KiB
JavaScript
import gql from 'graphql-tag';
|
|
|
|
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) {
|
|
success
|
|
}
|
|
}
|
|
`;
|