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