Update Insomnia UI requests collection export
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
... / ...
CommitLineData
1import type { EmptyObject } from '../../EmptyObject';
2import type { JsonObject } from '../../JsonType';
3import type { OCPPConfigurationKey } from '../Configuration';
4
5export interface OCPP16HeartbeatResponse extends JsonObject {
6 currentTime: string;
7}
8
9export enum OCPP16UnlockStatus {
10 UNLOCKED = 'Unlocked',
11 UNLOCK_FAILED = 'UnlockFailed',
12 NOT_SUPPORTED = 'NotSupported',
13}
14
15export interface UnlockConnectorResponse extends JsonObject {
16 status: OCPP16UnlockStatus;
17}
18
19export enum OCPP16ConfigurationStatus {
20 ACCEPTED = 'Accepted',
21 REJECTED = 'Rejected',
22 REBOOT_REQUIRED = 'RebootRequired',
23 NOT_SUPPORTED = 'NotSupported',
24}
25
26export interface ChangeConfigurationResponse extends JsonObject {
27 status: OCPP16ConfigurationStatus;
28}
29
30export enum OCPP16RegistrationStatus {
31 ACCEPTED = 'Accepted',
32 PENDING = 'Pending',
33 REJECTED = 'Rejected',
34}
35
36export interface OCPP16BootNotificationResponse extends JsonObject {
37 status: OCPP16RegistrationStatus;
38 currentTime: string;
39 interval: number;
40}
41
42export type OCPP16StatusNotificationResponse = EmptyObject;
43
44export interface GetConfigurationResponse extends JsonObject {
45 configurationKey: OCPPConfigurationKey[];
46 unknownKey: string[];
47}
48
49export enum OCPP16ChargingProfileStatus {
50 ACCEPTED = 'Accepted',
51 REJECTED = 'Rejected',
52 NOT_SUPPORTED = 'NotSupported',
53}
54
55export interface SetChargingProfileResponse extends JsonObject {
56 status: OCPP16ChargingProfileStatus;
57}
58
59export enum OCPP16AvailabilityStatus {
60 ACCEPTED = 'Accepted',
61 REJECTED = 'Rejected',
62 SCHEDULED = 'Scheduled',
63}
64
65export interface ChangeAvailabilityResponse extends JsonObject {
66 status: OCPP16AvailabilityStatus;
67}
68
69export enum OCPP16ClearChargingProfileStatus {
70 ACCEPTED = 'Accepted',
71 UNKNOWN = 'Unknown',
72}
73
74export interface ClearChargingProfileResponse extends JsonObject {
75 status: OCPP16ClearChargingProfileStatus;
76}
77
78export interface GetDiagnosticsResponse extends JsonObject {
79 fileName?: string;
80}
81
82export type DiagnosticsStatusNotificationResponse = EmptyObject;
83
84export enum OCPP16TriggerMessageStatus {
85 ACCEPTED = 'Accepted',
86 REJECTED = 'Rejected',
87 NOT_IMPLEMENTED = 'NotImplemented',
88}
89
90export interface OCPP16TriggerMessageResponse extends JsonObject {
91 status: OCPP16TriggerMessageStatus;
92}