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