build: switch to NodeNext module resolution
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
CommitLineData
a6ef1ece
JB
1import type { OCPP16ChargingSchedule } from './ChargingProfile.js';
2import type { EmptyObject } from '../../EmptyObject.js';
3import type { JsonObject } from '../../JsonType.js';
4import type { GenericStatus, RegistrationStatusEnumType } from '../Common.js';
5import type { OCPPConfigurationKey } from '../Configuration.js';
f738a0e9 6
e3822d6f 7export interface OCPP16HeartbeatResponse extends JsonObject {
d270cc87 8 currentTime: Date;
f738a0e9
JB
9}
10
9ccca265 11export enum OCPP16UnlockStatus {
9ac86a7e
JB
12 UNLOCKED = 'Unlocked',
13 UNLOCK_FAILED = 'UnlockFailed',
e7aeea18 14 NOT_SUPPORTED = 'NotSupported',
9ac86a7e
JB
15}
16
e3822d6f 17export interface UnlockConnectorResponse extends JsonObject {
9ccca265 18 status: OCPP16UnlockStatus;
9ac86a7e
JB
19}
20
9ccca265 21export enum OCPP16ConfigurationStatus {
9ac86a7e
JB
22 ACCEPTED = 'Accepted',
23 REJECTED = 'Rejected',
24 REBOOT_REQUIRED = 'RebootRequired',
e7aeea18 25 NOT_SUPPORTED = 'NotSupported',
9ac86a7e
JB
26}
27
e3822d6f 28export interface ChangeConfigurationResponse extends JsonObject {
9ccca265 29 status: OCPP16ConfigurationStatus;
9ac86a7e 30}
f738a0e9 31
e3822d6f 32export interface OCPP16BootNotificationResponse extends JsonObject {
d270cc87
JB
33 status: RegistrationStatusEnumType;
34 currentTime: Date;
e4cc41bf 35 interval: number;
f738a0e9
JB
36}
37
f22266fd 38export type OCPP16StatusNotificationResponse = EmptyObject;
f738a0e9 39
e3822d6f 40export interface GetConfigurationResponse extends JsonObject {
f7a1d1a9 41 configurationKey: OCPPConfigurationKey[];
f738a0e9
JB
42 unknownKey: string[];
43}
8c476a1f 44
9ccca265 45export enum OCPP16ChargingProfileStatus {
8c476a1f
JB
46 ACCEPTED = 'Accepted',
47 REJECTED = 'Rejected',
48 NOT_SUPPORTED = 'NotSupported',
49}
50
41189456
JB
51export interface OCPP16GetCompositeScheduleResponse extends JsonObject {
52 status: GenericStatus;
53 connectorId?: number;
54 scheduleStart?: Date;
55 chargingSchedule?: OCPP16ChargingSchedule;
56}
57
e3822d6f 58export interface SetChargingProfileResponse extends JsonObject {
9ccca265 59 status: OCPP16ChargingProfileStatus;
8c476a1f 60}
4dff73b0 61
9ccca265 62export enum OCPP16AvailabilityStatus {
4dff73b0
JB
63 ACCEPTED = 'Accepted',
64 REJECTED = 'Rejected',
e7aeea18 65 SCHEDULED = 'Scheduled',
4dff73b0
JB
66}
67
366f75f6 68export interface OCPP16ChangeAvailabilityResponse extends JsonObject {
9ccca265 69 status: OCPP16AvailabilityStatus;
4dff73b0 70}
edf4bd64 71
9ccca265 72export enum OCPP16ClearChargingProfileStatus {
edf4bd64 73 ACCEPTED = 'Accepted',
e7aeea18 74 UNKNOWN = 'Unknown',
edf4bd64
JB
75}
76
41f3983a 77export interface OCPP16ClearChargingProfileResponse extends JsonObject {
9ccca265 78 status: OCPP16ClearChargingProfileStatus;
edf4bd64 79}
47e22477 80
b03df580
JB
81export type OCPP16UpdateFirmwareResponse = EmptyObject;
82
c9a4f9ea
JB
83export type OCPP16FirmwareStatusNotificationResponse = EmptyObject;
84
e3822d6f 85export interface GetDiagnosticsResponse extends JsonObject {
47e22477
JB
86 fileName?: string;
87}
88
c9a4f9ea 89export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject;
802cfa13
JB
90
91export enum OCPP16TriggerMessageStatus {
92 ACCEPTED = 'Accepted',
93 REJECTED = 'Rejected',
e7aeea18 94 NOT_IMPLEMENTED = 'NotImplemented',
802cfa13
JB
95}
96
e3822d6f 97export interface OCPP16TriggerMessageResponse extends JsonObject {
e7aeea18 98 status: OCPP16TriggerMessageStatus;
802cfa13 99}
91a7d3ea
JB
100
101export enum OCPP16DataTransferStatus {
102 ACCEPTED = 'Accepted',
103 REJECTED = 'Rejected',
104 UNKNOWN_MESSAGE_ID = 'UnknownMessageId',
105 UNKNOWN_VENDOR_ID = 'UnknownVendorId',
106}
107
108export interface OCPP16DataTransferResponse extends JsonObject {
109 status: OCPP16DataTransferStatus;
110 data?: string;
111}
db652e1e 112
24578c31 113export enum OCPP16ReservationStatus {
db652e1e 114 ACCEPTED = 'Accepted',
24578c31
JB
115 FAULTED = 'Faulted',
116 OCCUPIED = 'Occupied',
db652e1e 117 REJECTED = 'Rejected',
24578c31 118 UNAVAILABLE = 'Unavailable',
66dd3447 119 NOT_SUPPORTED = 'NotSupported',
db652e1e
JB
120}
121
66dd3447 122export interface OCPP16ReserveNowResponse extends JsonObject {
24578c31 123 status: OCPP16ReservationStatus;
db652e1e 124}