repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UI Services: add status notification command
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
ocpp
/
1.6
/
Responses.ts
diff --git
a/src/types/ocpp/1.6/Responses.ts
b/src/types/ocpp/1.6/Responses.ts
index cf0a84ef750d08cd71e3d75f58ae298805e5066a..2acee1ea7f03e7bb8d3b9359da7874c7dd20ae5b 100644
(file)
--- a/
src/types/ocpp/1.6/Responses.ts
+++ b/
src/types/ocpp/1.6/Responses.ts
@@
-1,16
+1,18
@@
-import { OCPPConfigurationKey } from '../Configuration';
+import type { EmptyObject } from '../../EmptyObject';
+import type { JsonObject } from '../../JsonType';
+import type { OCPPConfigurationKey } from '../Configuration';
-export interface
HeartbeatResponse
{
+export interface
OCPP16HeartbeatResponse extends JsonObject
{
currentTime: string;
}
export enum OCPP16UnlockStatus {
UNLOCKED = 'Unlocked',
UNLOCK_FAILED = 'UnlockFailed',
currentTime: string;
}
export enum OCPP16UnlockStatus {
UNLOCKED = 'Unlocked',
UNLOCK_FAILED = 'UnlockFailed',
- NOT_SUPPORTED = 'NotSupported'
+ NOT_SUPPORTED = 'NotSupported'
,
}
}
-export interface UnlockConnectorResponse {
+export interface UnlockConnectorResponse
extends JsonObject
{
status: OCPP16UnlockStatus;
}
status: OCPP16UnlockStatus;
}
@@
-18,29
+20,28
@@
export enum OCPP16ConfigurationStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
REBOOT_REQUIRED = 'RebootRequired',
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
REBOOT_REQUIRED = 'RebootRequired',
- NOT_SUPPORTED = 'NotSupported'
+ NOT_SUPPORTED = 'NotSupported'
,
}
}
-export interface ChangeConfigurationResponse {
+export interface ChangeConfigurationResponse
extends JsonObject
{
status: OCPP16ConfigurationStatus;
}
export enum OCPP16RegistrationStatus {
ACCEPTED = 'Accepted',
PENDING = 'Pending',
status: OCPP16ConfigurationStatus;
}
export enum OCPP16RegistrationStatus {
ACCEPTED = 'Accepted',
PENDING = 'Pending',
- REJECTED = 'Rejected'
+ REJECTED = 'Rejected'
,
}
}
-export interface OCPP16BootNotificationResponse {
+export interface OCPP16BootNotificationResponse
extends JsonObject
{
status: OCPP16RegistrationStatus;
currentTime: string;
interval: number;
}
status: OCPP16RegistrationStatus;
currentTime: string;
interval: number;
}
-// eslint-disable-next-line @typescript-eslint/no-empty-interface
-export interface StatusNotificationResponse {}
+export type OCPP16StatusNotificationResponse = EmptyObject;
-export interface GetConfigurationResponse {
+export interface GetConfigurationResponse
extends JsonObject
{
configurationKey: OCPPConfigurationKey[];
unknownKey: string[];
}
configurationKey: OCPPConfigurationKey[];
unknownKey: string[];
}
@@
-51,42
+52,41
@@
export enum OCPP16ChargingProfileStatus {
NOT_SUPPORTED = 'NotSupported',
}
NOT_SUPPORTED = 'NotSupported',
}
-export interface SetChargingProfileResponse {
+export interface SetChargingProfileResponse
extends JsonObject
{
status: OCPP16ChargingProfileStatus;
}
export enum OCPP16AvailabilityStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
status: OCPP16ChargingProfileStatus;
}
export enum OCPP16AvailabilityStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
- SCHEDULED = 'Scheduled'
+ SCHEDULED = 'Scheduled'
,
}
}
-export interface ChangeAvailabilityResponse {
+export interface ChangeAvailabilityResponse
extends JsonObject
{
status: OCPP16AvailabilityStatus;
}
export enum OCPP16ClearChargingProfileStatus {
ACCEPTED = 'Accepted',
status: OCPP16AvailabilityStatus;
}
export enum OCPP16ClearChargingProfileStatus {
ACCEPTED = 'Accepted',
- UNKNOWN = 'Unknown'
+ UNKNOWN = 'Unknown'
,
}
}
-export interface ClearChargingProfileResponse {
+export interface ClearChargingProfileResponse
extends JsonObject
{
status: OCPP16ClearChargingProfileStatus;
}
status: OCPP16ClearChargingProfileStatus;
}
-export interface GetDiagnosticsResponse {
+export interface GetDiagnosticsResponse
extends JsonObject
{
fileName?: string;
}
fileName?: string;
}
-// eslint-disable-next-line @typescript-eslint/no-empty-interface
-export interface DiagnosticsStatusNotificationResponse {}
+export type DiagnosticsStatusNotificationResponse = EmptyObject;
export enum OCPP16TriggerMessageStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
export enum OCPP16TriggerMessageStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
- NOT_IMPLEMENTED = 'NotImplemented'
+ NOT_IMPLEMENTED = 'NotImplemented'
,
}
}
-export interface OCPP16TriggerMessageResponse {
- status: OCPP16TriggerMessageStatus
+export interface OCPP16TriggerMessageResponse
extends JsonObject
{
+ status: OCPP16TriggerMessageStatus
;
}
}