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 13d6df642d365fb2468a6cd97750b9f550f0e4dd..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',
@@
-13,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 {
@@
-21,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 extends JsonType
{
- status: OCPP16AuthorizationStatus
;
- parentIdTag?: string
;
- expiryDate?: Date
;
+
interface IdTagInfo extends JsonObject
{
+ status: OCPP16AuthorizationStatus
+ parentIdTag?: string
+ expiryDate?: Date
}
}
-export interface OCPP16AuthorizeRequest extends Json
Type
{
- idTag: string
;
+export interface OCPP16AuthorizeRequest extends Json
Object
{
+ idTag: string
}
}
-export interface OCPP16AuthorizeResponse extends Json
Type
{
- idTagInfo: IdTagInfo
;
+export interface OCPP16AuthorizeResponse extends Json
Object
{
+ idTagInfo: IdTagInfo
}
}
-export interface OCPP16StartTransactionRequest extends Json
Type
{
- connectorId: number
;
- idTag: string
;
- meterStart: number
;
- reservationId?: number;
- timestamp: string;
+export interface OCPP16StartTransactionRequest extends Json
Object
{
+ 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 OCPP16StopTransactionRequest extends Json
Type
{
- idTag?: string
;
- meterStop: number
;
- timestamp:
string;
- transactionId: number
;
- reason?: OCPP16StopTransactionReason
;
- transactionData?: OCPP16MeterValue[]
;
+export interface OCPP16StopTransactionRequest extends Json
Object
{
+ 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
}
}