Concentrator edit fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Response } from 'express';
|
import { Request, Response } from 'express';
|
||||||
import { AuthenticatedRequest } from '../types';
|
import { AuthenticatedRequest } from '../types';
|
||||||
import * as concentratorService from '../services/concentrator.service';
|
import * as concentratorService from '../services/concentrator.service';
|
||||||
import { CreateConcentratorInput, UpdateConcentratorInput } from '../validators/concentrator.validator';
|
import { CreateConcentratorInput, UpdateConcentratorInput } from '../validators/concentrator.validator';
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import { CreateConcentratorInput, UpdateConcentratorInput } from '../validators/
|
|||||||
*/
|
*/
|
||||||
export type ConcentratorType = 'LORA' | 'LORAWAN' | 'GRANDES';
|
export type ConcentratorType = 'LORA' | 'LORAWAN' | 'GRANDES';
|
||||||
|
|
||||||
|
export type ConcentratorStatus = 'ACTIVE' | 'INACTIVE' | 'MAINTENANCE' | 'OFFLINE';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Concentrator entity interface
|
* Concentrator entity interface
|
||||||
*/
|
*/
|
||||||
@@ -16,7 +18,7 @@ export interface Concentrator {
|
|||||||
project_id: string;
|
project_id: string;
|
||||||
location: string | null;
|
location: string | null;
|
||||||
type: ConcentratorType;
|
type: ConcentratorType;
|
||||||
status: 'online' | 'offline' | 'maintenance' | 'unknown';
|
status: ConcentratorStatus;
|
||||||
ip_address: string | null;
|
ip_address: string | null;
|
||||||
firmware_version: string | null;
|
firmware_version: string | null;
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
Reference in New Issue
Block a user