repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: fix README.md formatting
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
ocpp
/
1.6
/
Transaction.ts
diff --git
a/src/types/ocpp/1.6/Transaction.ts
b/src/types/ocpp/1.6/Transaction.ts
index 69aff0e0115b3849bbf9e8b1a8ced5fe6536a8f3..2e6c7289cde3ac8940d605b74bdff41c86b061df 100644
(file)
--- a/
src/types/ocpp/1.6/Transaction.ts
+++ b/
src/types/ocpp/1.6/Transaction.ts
@@
-1,7
+1,7
@@
-import { MeterValue } from './MeterValues';
+import type { OCPP16MeterValue } from './MeterValues.js'
+import type { JsonObject } from '../../JsonType.js'
export enum OCPP16StopTransactionReason {
export enum OCPP16StopTransactionReason {
- NONE = '',
EMERGENCY_STOP = 'EmergencyStop',
EV_DISCONNECTED = 'EVDisconnected',
HARD_RESET = 'HardReset',
EMERGENCY_STOP = 'EmergencyStop',
EV_DISCONNECTED = 'EVDisconnected',
HARD_RESET = 'HardReset',
@@
-23,42
+23,42
@@
export enum OCPP16AuthorizationStatus {
CONCURRENT_TX = 'ConcurrentTx'
}
CONCURRENT_TX = 'ConcurrentTx'
}
-
export interface IdTagInfo
{
- status: OCPP16AuthorizationStatus
;
- parentIdTag?: string
;
- expiryDate?: Date
;
+
interface IdTagInfo extends JsonObject
{
+ status: OCPP16AuthorizationStatus
+ parentIdTag?: string
+ expiryDate?: Date
}
}
-export interface AuthorizeRequest {
- idTag: string;
-
+export interface OCPP16AuthorizeRequest extends JsonObject {
+ idTag: string
}
}
-export interface OCPP16AuthorizeResponse {
- idTagInfo: IdTagInfo;
+
+export interface OCPP16AuthorizeResponse extends JsonObject {
+ idTagInfo: IdTagInfo
}
}
-export interface
StartTransactionReques
t {
- connectorId: number
;
- idTag: string
;
- meterStart: number
;
- reservationId?: number;
- timestamp: string;
+export interface
OCPP16StartTransactionRequest extends JsonObjec
t {
+ connectorId: number
+ idTag: string
+ meterStart: number
+ timestamp: Date
+ reservationId?: number
}
}
-export interface OCPP16StartTransactionResponse {
- idTagInfo: IdTagInfo
;
- transactionId: number
;
+export interface OCPP16StartTransactionResponse
extends JsonObject
{
+ idTagInfo: IdTagInfo
+ transactionId: number
}
}
-export interface
StopTransactionReques
t {
- idTag?: string
;
- meterStop: number
;
- timestamp:
string;
- transactionId: number
;
- reason?: OCPP16StopTransactionReason
;
- transactionData?:
MeterValue[];
+export interface
OCPP16StopTransactionRequest extends JsonObjec
t {
+ idTag?: string
+ meterStop: number
+ timestamp:
Date
+ transactionId: number
+ reason?: OCPP16StopTransactionReason
+ transactionData?:
OCPP16MeterValue[]
}
}
-export interface OCPP16StopTransactionResponse {
- idTagInfo?: IdTagInfo
;
+export interface OCPP16StopTransactionResponse
extends JsonObject
{
+ idTagInfo?: IdTagInfo
}
}