-import type ChargingStation from '../../charging-station/ChargingStation';
-import type { JsonType } from '../JsonType';
import type { OCPP16MeterValuesResponse } from './1.6/MeterValues';
import {
OCPP16AvailabilityStatus,
OCPP16TriggerMessageStatus,
OCPP16UnlockStatus,
} from './1.6/Responses';
-import type { OCPP20BootNotificationResponse, OCPP20ClearCacheResponse } from './2.0/Responses';
+import type {
+ OCPP20BootNotificationResponse,
+ OCPP20ClearCacheResponse,
+ OCPP20StatusNotificationResponse,
+} from './2.0/Responses';
import type { ErrorType } from './ErrorType';
import type { MessageType } from './MessageType';
+import type ChargingStation from '../../charging-station/ChargingStation';
+import type { JsonType } from '../JsonType';
export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonType];
export type HeartbeatResponse = OCPP16HeartbeatResponse;
-export type ClearCacheResponse = DefaultResponse | OCPP20ClearCacheResponse;
+export type ClearCacheResponse = GenericResponse | OCPP20ClearCacheResponse;
-export type StatusNotificationResponse = OCPP16StatusNotificationResponse;
+export type StatusNotificationResponse =
+ | OCPP16StatusNotificationResponse
+ | OCPP20StatusNotificationResponse;
export type MeterValuesResponse = OCPP16MeterValuesResponse;
export type FirmwareStatusNotificationResponse = OCPP16FirmwareStatusNotificationResponse;
-export enum DefaultStatus {
+export enum GenericStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
}
-export type DefaultResponse = {
- status: DefaultStatus;
+export type GenericResponse = {
+ status: GenericStatus;
};
export enum RegistrationStatusEnumType {