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