X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FResponses.ts;h=c57510ae7eaf04ebb71d9c407e9a9007b574a9c3;hb=ebbfbf1c01e010d051956867484b74a94237f546;hp=a3c6672c6561b8fea689179be46e11d9d4690e93;hpb=08f130a055123f5e47c59e1a64875f8cff44d020;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Responses.ts b/src/types/ocpp/Responses.ts index a3c6672c..c57510ae 100644 --- a/src/types/ocpp/Responses.ts +++ b/src/types/ocpp/Responses.ts @@ -1,3 +1,6 @@ +import type ChargingStation from '../../charging-station/ChargingStation'; +import type { JsonType } from '../JsonType'; +import type { OCPP16MeterValuesResponse } from './1.6/MeterValues'; import { OCPP16AvailabilityStatus, OCPP16BootNotificationResponse, @@ -10,12 +13,8 @@ import { OCPP16TriggerMessageStatus, OCPP16UnlockStatus, } from './1.6/Responses'; - -import ChargingStation from '../../charging-station/ChargingStation'; -import { ErrorType } from './ErrorType'; -import { JsonType } from '../JsonType'; -import { MessageType } from './MessageType'; -import { OCPP16MeterValuesResponse } from './1.6/MeterValues'; +import type { ErrorType } from './ErrorType'; +import type { MessageType } from './MessageType'; export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonType]; @@ -40,9 +39,9 @@ export enum DefaultStatus { REJECTED = 'Rejected', } -export interface DefaultResponse { +export type DefaultResponse = { status: DefaultStatus; -} +}; export type RegistrationStatus = OCPP16RegistrationStatus;