X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FRequests.ts;h=e186679f5004938c7662615dfa4fde8d29133300;hb=c0bbb3eaf0c5dc704ea92820a2666a68ffdc27ff;hp=32d9757f4cea58be69ca349976cbc760709933c2;hpb=13a6f27c10768faa05acf33fd8e0637511d49e3e;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Requests.ts b/src/types/ocpp/1.6/Requests.ts index 32d9757f..e186679f 100644 --- a/src/types/ocpp/1.6/Requests.ts +++ b/src/types/ocpp/1.6/Requests.ts @@ -1,3 +1,5 @@ +import type { EmptyObject } from '../../EmptyObject.js' +import type { JsonObject } from '../../JsonType.js' import type { OCPP16ChargePointErrorCode } from './ChargePointErrorCode.js' import type { OCPP16ChargePointStatus } from './ChargePointStatus.js' import type { @@ -7,8 +9,6 @@ import type { } from './ChargingProfile.js' import type { OCPP16StandardParametersKey, OCPP16VendorParametersKey } from './Configuration.js' import type { OCPP16DiagnosticsStatus } from './DiagnosticsStatus.js' -import type { EmptyObject } from '../../EmptyObject.js' -import type { JsonObject } from '../../JsonType.js' export enum OCPP16RequestCommand { BOOT_NOTIFICATION = 'BootNotification', @@ -77,7 +77,7 @@ export interface ChangeConfigurationRequest extends JsonObject { } export interface RemoteStartTransactionRequest extends JsonObject { - connectorId: number + connectorId?: number idTag: string chargingProfile?: OCPP16ChargingProfile } @@ -148,9 +148,9 @@ export enum OCPP16FirmwareStatus { Installed = 'Installed' } -export type OCPP16FirmwareStatusNotificationRequest = { +export interface OCPP16FirmwareStatusNotificationRequest extends JsonObject { status: OCPP16FirmwareStatus -} & JsonObject +} export interface GetDiagnosticsRequest extends JsonObject { location: string