X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FTransaction.ts;h=49cabf2e2e7bb41660c77e4f6dc7273116d71124;hb=f5a1ff8ce8f87a149791c2c98fe7c5e8a20b5392;hp=ca68117d5020c04e3a556e7b58ed4940bdc23e52;hpb=6c1761d470507ea23d186be61b94ca7375c5144a;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Transaction.ts b/src/types/ocpp/1.6/Transaction.ts index ca68117d..49cabf2e 100644 --- a/src/types/ocpp/1.6/Transaction.ts +++ b/src/types/ocpp/1.6/Transaction.ts @@ -1,8 +1,7 @@ -import type { JsonObject } from '../../JsonType'; -import type { OCPP16MeterValue } from './MeterValues'; +import type { OCPP16MeterValue } from './MeterValues.js'; +import type { JsonObject } from '../../JsonType.js'; export enum OCPP16StopTransactionReason { - NONE = '', EMERGENCY_STOP = 'EmergencyStop', EV_DISCONNECTED = 'EVDisconnected', HARD_RESET = 'HardReset', @@ -24,7 +23,7 @@ export enum OCPP16AuthorizationStatus { CONCURRENT_TX = 'ConcurrentTx', } -export interface IdTagInfo extends JsonObject { +interface IdTagInfo extends JsonObject { status: OCPP16AuthorizationStatus; parentIdTag?: string; expiryDate?: Date; @@ -42,8 +41,8 @@ export interface OCPP16StartTransactionRequest extends JsonObject { connectorId: number; idTag: string; meterStart: number; + timestamp: Date; reservationId?: number; - timestamp: string; } export interface OCPP16StartTransactionResponse extends JsonObject { @@ -54,7 +53,7 @@ export interface OCPP16StartTransactionResponse extends JsonObject { export interface OCPP16StopTransactionRequest extends JsonObject { idTag?: string; meterStop: number; - timestamp: string; + timestamp: Date; transactionId: number; reason?: OCPP16StopTransactionReason; transactionData?: OCPP16MeterValue[];