X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F2.0%2FRequests.ts;h=f075e642f7284f657398f5e3a7a46b0ab7f565db;hb=738acbf767e776699e06239a63cb35558018fcc0;hp=ef7a5161b3797282425947b30d5e0c30c85bddaa;hpb=a223d9be48ad8828e6aef060dd3c45d4f99ea9a9;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/2.0/Requests.ts b/src/types/ocpp/2.0/Requests.ts index ef7a5161..f075e642 100644 --- a/src/types/ocpp/2.0/Requests.ts +++ b/src/types/ocpp/2.0/Requests.ts @@ -1,11 +1,11 @@ +import type { EmptyObject } from '../../EmptyObject.js' +import type { JsonObject } from '../../JsonType.js' import type { BootReasonEnumType, InstallCertificateUseEnumType, OCPP20ConnectorStatusEnumType } from './Common.js' import type { OCPP20SetVariableDataType } from './Variables.js' -import type { EmptyObject } from '../../EmptyObject.js' -import type { JsonObject } from '../../JsonType.js' export enum OCPP20RequestCommand { BOOT_NOTIFICATION = 'BootNotification', @@ -19,40 +19,40 @@ export enum OCPP20IncomingRequestCommand { REQUEST_STOP_TRANSACTION = 'RequestStopTransaction' } -type ModemType = { +interface ModemType extends JsonObject { iccid?: string imsi?: string -} & JsonObject +} -type ChargingStationType = { +interface ChargingStationType extends JsonObject { serialNumber?: string model: string vendorName: string firmwareVersion?: string modem?: ModemType -} & JsonObject +} -export type OCPP20BootNotificationRequest = { +export interface OCPP20BootNotificationRequest extends JsonObject { reason: BootReasonEnumType chargingStation: ChargingStationType -} & JsonObject +} export type OCPP20HeartbeatRequest = EmptyObject export type OCPP20ClearCacheRequest = EmptyObject -export type OCPP20StatusNotificationRequest = { +export interface OCPP20StatusNotificationRequest extends JsonObject { timestamp: Date connectorStatus: OCPP20ConnectorStatusEnumType evseId: number connectorId: number -} & JsonObject +} -export type OCPP20SetVariablesRequest = { +export interface OCPP20SetVariablesRequest extends JsonObject { setVariableData: OCPP20SetVariableDataType[] -} & JsonObject +} -export type OCPP20InstallCertificateRequest = { +export interface OCPP20InstallCertificateRequest extends JsonObject { certificateType: InstallCertificateUseEnumType certificate: string -} & JsonObject +}