Commit | Line | Data |
---|---|---|
2896e06d JB |
1 | import type { |
2 | EmptyObject, | |
41189456 | 3 | GenericStatus, |
2896e06d | 4 | JsonObject, |
41189456 | 5 | OCPP16ChargingSchedule, |
2896e06d JB |
6 | OCPPConfigurationKey, |
7 | RegistrationStatusEnumType, | |
8 | } from '../../internal'; | |
f738a0e9 | 9 | |
e3822d6f | 10 | export interface OCPP16HeartbeatResponse extends JsonObject { |
d270cc87 | 11 | currentTime: Date; |
f738a0e9 JB |
12 | } |
13 | ||
9ccca265 | 14 | export enum OCPP16UnlockStatus { |
9ac86a7e JB |
15 | UNLOCKED = 'Unlocked', |
16 | UNLOCK_FAILED = 'UnlockFailed', | |
e7aeea18 | 17 | NOT_SUPPORTED = 'NotSupported', |
9ac86a7e JB |
18 | } |
19 | ||
e3822d6f | 20 | export interface UnlockConnectorResponse extends JsonObject { |
9ccca265 | 21 | status: OCPP16UnlockStatus; |
9ac86a7e JB |
22 | } |
23 | ||
9ccca265 | 24 | export enum OCPP16ConfigurationStatus { |
9ac86a7e JB |
25 | ACCEPTED = 'Accepted', |
26 | REJECTED = 'Rejected', | |
27 | REBOOT_REQUIRED = 'RebootRequired', | |
e7aeea18 | 28 | NOT_SUPPORTED = 'NotSupported', |
9ac86a7e JB |
29 | } |
30 | ||
e3822d6f | 31 | export interface ChangeConfigurationResponse extends JsonObject { |
9ccca265 | 32 | status: OCPP16ConfigurationStatus; |
9ac86a7e | 33 | } |
f738a0e9 | 34 | |
e3822d6f | 35 | export interface OCPP16BootNotificationResponse extends JsonObject { |
d270cc87 JB |
36 | status: RegistrationStatusEnumType; |
37 | currentTime: Date; | |
e4cc41bf | 38 | interval: number; |
f738a0e9 JB |
39 | } |
40 | ||
f22266fd | 41 | export type OCPP16StatusNotificationResponse = EmptyObject; |
f738a0e9 | 42 | |
e3822d6f | 43 | export interface GetConfigurationResponse extends JsonObject { |
f7a1d1a9 | 44 | configurationKey: OCPPConfigurationKey[]; |
f738a0e9 JB |
45 | unknownKey: string[]; |
46 | } | |
8c476a1f | 47 | |
9ccca265 | 48 | export enum OCPP16ChargingProfileStatus { |
8c476a1f JB |
49 | ACCEPTED = 'Accepted', |
50 | REJECTED = 'Rejected', | |
51 | NOT_SUPPORTED = 'NotSupported', | |
52 | } | |
53 | ||
41189456 JB |
54 | export interface OCPP16GetCompositeScheduleResponse extends JsonObject { |
55 | status: GenericStatus; | |
56 | connectorId?: number; | |
57 | scheduleStart?: Date; | |
58 | chargingSchedule?: OCPP16ChargingSchedule; | |
59 | } | |
60 | ||
e3822d6f | 61 | export interface SetChargingProfileResponse extends JsonObject { |
9ccca265 | 62 | status: OCPP16ChargingProfileStatus; |
8c476a1f | 63 | } |
4dff73b0 | 64 | |
9ccca265 | 65 | export enum OCPP16AvailabilityStatus { |
4dff73b0 JB |
66 | ACCEPTED = 'Accepted', |
67 | REJECTED = 'Rejected', | |
e7aeea18 | 68 | SCHEDULED = 'Scheduled', |
4dff73b0 JB |
69 | } |
70 | ||
e3822d6f | 71 | export interface ChangeAvailabilityResponse extends JsonObject { |
9ccca265 | 72 | status: OCPP16AvailabilityStatus; |
4dff73b0 | 73 | } |
edf4bd64 | 74 | |
9ccca265 | 75 | export enum OCPP16ClearChargingProfileStatus { |
edf4bd64 | 76 | ACCEPTED = 'Accepted', |
e7aeea18 | 77 | UNKNOWN = 'Unknown', |
edf4bd64 JB |
78 | } |
79 | ||
e3822d6f | 80 | export interface ClearChargingProfileResponse extends JsonObject { |
9ccca265 | 81 | status: OCPP16ClearChargingProfileStatus; |
edf4bd64 | 82 | } |
47e22477 | 83 | |
b03df580 JB |
84 | export type OCPP16UpdateFirmwareResponse = EmptyObject; |
85 | ||
c9a4f9ea JB |
86 | export type OCPP16FirmwareStatusNotificationResponse = EmptyObject; |
87 | ||
e3822d6f | 88 | export interface GetDiagnosticsResponse extends JsonObject { |
47e22477 JB |
89 | fileName?: string; |
90 | } | |
91 | ||
c9a4f9ea | 92 | export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject; |
802cfa13 JB |
93 | |
94 | export enum OCPP16TriggerMessageStatus { | |
95 | ACCEPTED = 'Accepted', | |
96 | REJECTED = 'Rejected', | |
e7aeea18 | 97 | NOT_IMPLEMENTED = 'NotImplemented', |
802cfa13 JB |
98 | } |
99 | ||
e3822d6f | 100 | export interface OCPP16TriggerMessageResponse extends JsonObject { |
e7aeea18 | 101 | status: OCPP16TriggerMessageStatus; |
802cfa13 | 102 | } |
91a7d3ea JB |
103 | |
104 | export enum OCPP16DataTransferStatus { | |
105 | ACCEPTED = 'Accepted', | |
106 | REJECTED = 'Rejected', | |
107 | UNKNOWN_MESSAGE_ID = 'UnknownMessageId', | |
108 | UNKNOWN_VENDOR_ID = 'UnknownVendorId', | |
109 | } | |
110 | ||
111 | export interface OCPP16DataTransferResponse extends JsonObject { | |
112 | status: OCPP16DataTransferStatus; | |
113 | data?: string; | |
114 | } |