1ccd78e2fa0acbf39b8b586999675dbcc1fc0585
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
1 import type { EmptyObject } from '../../EmptyObject';
2 import type { JsonObject } from '../../JsonType';
3 import type { OCPPConfigurationKey } from '../Configuration';
4 import type { RegistrationStatusEnumType } from '../Responses';
5
6 export interface OCPP16HeartbeatResponse extends JsonObject {
7 currentTime: Date;
8 }
9
10 export enum OCPP16UnlockStatus {
11 UNLOCKED = 'Unlocked',
12 UNLOCK_FAILED = 'UnlockFailed',
13 NOT_SUPPORTED = 'NotSupported',
14 }
15
16 export interface UnlockConnectorResponse extends JsonObject {
17 status: OCPP16UnlockStatus;
18 }
19
20 export enum OCPP16ConfigurationStatus {
21 ACCEPTED = 'Accepted',
22 REJECTED = 'Rejected',
23 REBOOT_REQUIRED = 'RebootRequired',
24 NOT_SUPPORTED = 'NotSupported',
25 }
26
27 export interface ChangeConfigurationResponse extends JsonObject {
28 status: OCPP16ConfigurationStatus;
29 }
30
31 export interface OCPP16BootNotificationResponse extends JsonObject {
32 status: RegistrationStatusEnumType;
33 currentTime: Date;
34 interval: number;
35 }
36
37 export type OCPP16StatusNotificationResponse = EmptyObject;
38
39 export interface GetConfigurationResponse extends JsonObject {
40 configurationKey: OCPPConfigurationKey[];
41 unknownKey: string[];
42 }
43
44 export enum OCPP16ChargingProfileStatus {
45 ACCEPTED = 'Accepted',
46 REJECTED = 'Rejected',
47 NOT_SUPPORTED = 'NotSupported',
48 }
49
50 export interface SetChargingProfileResponse extends JsonObject {
51 status: OCPP16ChargingProfileStatus;
52 }
53
54 export enum OCPP16AvailabilityStatus {
55 ACCEPTED = 'Accepted',
56 REJECTED = 'Rejected',
57 SCHEDULED = 'Scheduled',
58 }
59
60 export interface ChangeAvailabilityResponse extends JsonObject {
61 status: OCPP16AvailabilityStatus;
62 }
63
64 export enum OCPP16ClearChargingProfileStatus {
65 ACCEPTED = 'Accepted',
66 UNKNOWN = 'Unknown',
67 }
68
69 export interface ClearChargingProfileResponse extends JsonObject {
70 status: OCPP16ClearChargingProfileStatus;
71 }
72
73 export type OCPP16UpdateFirmwareResponse = EmptyObject;
74
75 export interface GetDiagnosticsResponse extends JsonObject {
76 fileName?: string;
77 }
78
79 export type DiagnosticsStatusNotificationResponse = EmptyObject;
80
81 export enum OCPP16TriggerMessageStatus {
82 ACCEPTED = 'Accepted',
83 REJECTED = 'Rejected',
84 NOT_IMPLEMENTED = 'NotImplemented',
85 }
86
87 export interface OCPP16TriggerMessageResponse extends JsonObject {
88 status: OCPP16TriggerMessageStatus;
89 }
90
91 export enum OCPP16DataTransferStatus {
92 ACCEPTED = 'Accepted',
93 REJECTED = 'Rejected',
94 UNKNOWN_MESSAGE_ID = 'UnknownMessageId',
95 UNKNOWN_VENDOR_ID = 'UnknownVendorId',
96 }
97
98 export interface OCPP16DataTransferResponse extends JsonObject {
99 status: OCPP16DataTransferStatus;
100 data?: string;
101 }