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
test(simulator): add cloneObject() helper tests
[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 41bd344ec4da1b2cf27e2051636044df443bab08..215628f79a650aeaf7069aeb4d2a971f79efe7cf 100644
(file)
--- a/
src/types/ocpp/1.6/Transaction.ts
+++ b/
src/types/ocpp/1.6/Transaction.ts
@@
-1,4
+1,4
@@
-import
{ OCPP16MeterValue } from './MeterValues
';
+import
type { JsonObject, OCPP16MeterValue } from '../../internal
';
export enum OCPP16StopTransactionReason {
NONE = '',
export enum OCPP16StopTransactionReason {
NONE = '',
@@
-12,7
+12,7
@@
export enum OCPP16StopTransactionReason {
REMOTE = 'Remote',
SOFT_RESET = 'SoftReset',
UNLOCK_COMMAND = 'UnlockCommand',
REMOTE = 'Remote',
SOFT_RESET = 'SoftReset',
UNLOCK_COMMAND = 'UnlockCommand',
- DE_AUTHORIZED = 'DeAuthorized'
+ DE_AUTHORIZED = 'DeAuthorized'
,
}
export enum OCPP16AuthorizationStatus {
}
export enum OCPP16AuthorizationStatus {
@@
-20,45
+20,45
@@
export enum OCPP16AuthorizationStatus {
BLOCKED = 'Blocked',
EXPIRED = 'Expired',
INVALID = 'Invalid',
BLOCKED = 'Blocked',
EXPIRED = 'Expired',
INVALID = 'Invalid',
- CONCURRENT_TX = 'ConcurrentTx'
+ CONCURRENT_TX = 'ConcurrentTx'
,
}
}
-
export interface IdTagInfo
{
+
interface IdTagInfo extends JsonObject
{
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
-export interface
AuthorizeReques
t {
+export interface
OCPP16AuthorizeRequest extends JsonObjec
t {
idTag: string;
}
idTag: string;
}
-export interface OCPP16AuthorizeResponse {
+export interface OCPP16AuthorizeResponse
extends JsonObject
{
idTagInfo: IdTagInfo;
}
idTagInfo: IdTagInfo;
}
-export interface
StartTransactionReques
t {
+export interface
OCPP16StartTransactionRequest extends JsonObjec
t {
connectorId: number;
idTag: string;
meterStart: number;
connectorId: number;
idTag: string;
meterStart: number;
+ timestamp: Date;
reservationId?: number;
reservationId?: number;
- timestamp: string;
}
}
-export interface OCPP16StartTransactionResponse {
+export interface OCPP16StartTransactionResponse
extends JsonObject
{
idTagInfo: IdTagInfo;
transactionId: number;
}
idTagInfo: IdTagInfo;
transactionId: number;
}
-export interface
StopTransactionReques
t {
+export interface
OCPP16StopTransactionRequest extends JsonObjec
t {
idTag?: string;
meterStop: number;
idTag?: string;
meterStop: number;
- timestamp:
string
;
+ timestamp:
Date
;
transactionId: number;
reason?: OCPP16StopTransactionReason;
transactionData?: OCPP16MeterValue[];
}
transactionId: number;
reason?: OCPP16StopTransactionReason;
transactionData?: OCPP16MeterValue[];
}
-export interface OCPP16StopTransactionResponse {
+export interface OCPP16StopTransactionResponse
extends JsonObject
{
idTagInfo?: IdTagInfo;
}
idTagInfo?: IdTagInfo;
}