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
refactor(simulator): explicitly export needed types only
[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 13d6df642d365fb2468a6cd97750b9f550f0e4dd..215628f79a650aeaf7069aeb4d2a971f79efe7cf 100644
(file)
--- a/
src/types/ocpp/1.6/Transaction.ts
+++ b/
src/types/ocpp/1.6/Transaction.ts
@@
-1,5
+1,4
@@
-import { JsonType } from '../../JsonType';
-import { OCPP16MeterValue } from './MeterValues';
+import type { JsonObject, OCPP16MeterValue } from '../../internal';
export enum OCPP16StopTransactionReason {
NONE = '',
export enum OCPP16StopTransactionReason {
NONE = '',
@@
-24,42
+23,42
@@
export enum OCPP16AuthorizationStatus {
CONCURRENT_TX = 'ConcurrentTx',
}
CONCURRENT_TX = 'ConcurrentTx',
}
-
export interface IdTagInfo extends JsonType
{
+
interface IdTagInfo extends JsonObject
{
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
-export interface OCPP16AuthorizeRequest extends Json
Type
{
+export interface OCPP16AuthorizeRequest extends Json
Object
{
idTag: string;
}
idTag: string;
}
-export interface OCPP16AuthorizeResponse extends Json
Type
{
+export interface OCPP16AuthorizeResponse extends Json
Object
{
idTagInfo: IdTagInfo;
}
idTagInfo: IdTagInfo;
}
-export interface OCPP16StartTransactionRequest extends Json
Type
{
+export interface OCPP16StartTransactionRequest extends Json
Object
{
connectorId: number;
idTag: string;
meterStart: number;
connectorId: number;
idTag: string;
meterStart: number;
+ timestamp: Date;
reservationId?: number;
reservationId?: number;
- timestamp: string;
}
}
-export interface OCPP16StartTransactionResponse extends Json
Type
{
+export interface OCPP16StartTransactionResponse extends Json
Object
{
idTagInfo: IdTagInfo;
transactionId: number;
}
idTagInfo: IdTagInfo;
transactionId: number;
}
-export interface OCPP16StopTransactionRequest extends Json
Type
{
+export interface OCPP16StopTransactionRequest extends Json
Object
{
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 extends Json
Type
{
+export interface OCPP16StopTransactionResponse extends Json
Object
{
idTagInfo?: IdTagInfo;
}
idTagInfo?: IdTagInfo;
}