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