mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ui.git
				synced 2025-10-30 18:27:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			85 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 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
 | |
|     }
 | |
|   }
 | |
| `;
 | 
