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
Merge dependabot/npm_and_yarn/types/tar-6.1.12 into combined-prs-branch
[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 bf2377778bb21e0c6096cb1f33267672f5fe8444..f9659f695398822e3932197137b8ee581626d6d2 100644
(file)
--- a/
src/types/ocpp/1.6/Transaction.ts
+++ b/
src/types/ocpp/1.6/Transaction.ts
@@
-1,8
+1,7
@@
-import
{ JsonType } from '../../JsonType';
-import
{ OCPP16MeterValue } from './MeterValues';
+import
type { JsonObject } from '../../JsonType.js'
+import
type { OCPP16MeterValue } from './MeterValues.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',
@@
-24,42
+23,42
@@
export enum OCPP16AuthorizationStatus {
CONCURRENT_TX = 'ConcurrentTx'
}
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 Json
Type
{
- idTagInfo: IdTagInfo
;
+export interface OCPP16AuthorizeResponse extends Json
Object
{
+ 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 Json
Type
{
- idTagInfo: IdTagInfo
;
- transactionId: number
;
+export interface OCPP16StartTransactionResponse extends Json
Object
{
+ 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 Json
Type
{
- idTagInfo?: IdTagInfo
;
+export interface OCPP16StopTransactionResponse extends Json
Object
{
+ idTagInfo?: IdTagInfo
}
}