X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConstants.ts;h=45d864754f9198f819698dd4e6e2bccb3310fab7;hb=5a15db9001b93665ab7581d2974c5f01a9e0fbe3;hp=2223c5efc8fc118bb0723f95b1dcdd7edc60a5c3;hpb=46a830d2173d93d4fc5e4bb46fb3591a27fb29dc;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 2223c5ef..45d86475 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -2,7 +2,9 @@ import { type AutomaticTransactionGeneratorConfiguration, type ChargingStationInfo, CurrentType, + type IncomingRequestCommand, OCPPVersion, + type RequestCommand, VendorParametersKey } from '../types/index.js' @@ -77,11 +79,11 @@ export class Constants { static readonly DEFAULT_UI_SERVER_HOST = 'localhost' static readonly DEFAULT_UI_SERVER_PORT = 8080 - static readonly UNKNOWN_COMMAND = 'unknown command' + static readonly UNKNOWN_COMMAND = 'unknown command' as RequestCommand | IncomingRequestCommand static readonly MAX_RANDOM_INTEGER = 281474976710654 - static readonly STOP_CHARGING_STATIONS_TIMEOUT = 120000 // Ms + static readonly STOP_CHARGING_STATIONS_TIMEOUT = 60000 // Ms static readonly EMPTY_FROZEN_OBJECT = Object.freeze({}) static readonly EMPTY_FUNCTION = Object.freeze(() => {