-import { JsonType } from '../../JsonType';
-import { OCPP16MeterValue } from './MeterValues';
+import type { JsonObject } from '../../JsonType.js'
+import type { OCPP16MeterValue } from './MeterValues.js'
export enum OCPP16StopTransactionReason {
- NONE = '',
EMERGENCY_STOP = 'EmergencyStop',
EV_DISCONNECTED = 'EVDisconnected',
HARD_RESET = 'HardReset',
CONCURRENT_TX = 'ConcurrentTx'
}
-export interface IdTagInfo extends JsonType {
- status: OCPP16AuthorizationStatus;
- parentIdTag?: string;
- expiryDate?: Date;
+interface IdTagInfo extends JsonObject {
+ status: OCPP16AuthorizationStatus
+ parentIdTag?: string
+ expiryDate?: Date
}
-export interface AuthorizeRequest extends JsonType {
- idTag: string;
+export interface OCPP16AuthorizeRequest extends JsonObject {
+ idTag: string
}
-export interface OCPP16AuthorizeResponse extends JsonType {
- idTagInfo: IdTagInfo;
+export interface OCPP16AuthorizeResponse extends JsonObject {
+ idTagInfo: IdTagInfo
}
-export interface StartTransactionRequest extends JsonType {
- connectorId: number;
- idTag: string;
- meterStart: number;
- reservationId?: number;
- timestamp: string;
+export interface OCPP16StartTransactionRequest extends JsonObject {
+ connectorId: number
+ idTag: string
+ meterStart: number
+ timestamp: Date
+ reservationId?: number
}
-export interface OCPP16StartTransactionResponse extends JsonType {
- idTagInfo: IdTagInfo;
- transactionId: number;
+export interface OCPP16StartTransactionResponse extends JsonObject {
+ idTagInfo: IdTagInfo
+ transactionId: number
}
-export interface StopTransactionRequest extends JsonType {
- idTag?: string;
- meterStop: number;
- timestamp: string;
- transactionId: number;
- reason?: OCPP16StopTransactionReason;
- transactionData?: OCPP16MeterValue[];
+export interface OCPP16StopTransactionRequest extends JsonObject {
+ idTag?: string
+ meterStop: number
+ timestamp: Date
+ transactionId: number
+ reason?: OCPP16StopTransactionReason
+ transactionData?: OCPP16MeterValue[]
}
-export interface OCPP16StopTransactionResponse extends JsonType {
- idTagInfo?: IdTagInfo;
+export interface OCPP16StopTransactionResponse extends JsonObject {
+ idTagInfo?: IdTagInfo
}