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
Add Insomnia UI protocol collection
[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..ca68117d5020c04e3a556e7b58ed4940bdc23e52 100644
(file)
--- a/
src/types/ocpp/1.6/Transaction.ts
+++ b/
src/types/ocpp/1.6/Transaction.ts
@@
-1,5
+1,5
@@
-import
{ JsonType
} from '../../JsonType';
-import { OCPP16MeterValue } from './MeterValues';
+import
type { JsonObject
} from '../../JsonType';
+import
type
{ OCPP16MeterValue } from './MeterValues';
export enum OCPP16StopTransactionReason {
NONE = '',
export enum OCPP16StopTransactionReason {
NONE = '',
@@
-13,7
+13,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,24
+21,24
@@
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 Json
Type
{
+export interface IdTagInfo extends Json
Object
{
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
status: OCPP16AuthorizationStatus;
parentIdTag?: string;
expiryDate?: Date;
}
-export interface
AuthorizeRequest extends JsonType
{
+export interface
OCPP16AuthorizeRequest extends JsonObject
{
idTag: string;
}
idTag: string;
}
-export interface OCPP16AuthorizeResponse extends Json
Type
{
+export interface OCPP16AuthorizeResponse extends Json
Object
{
idTagInfo: IdTagInfo;
}
idTagInfo: IdTagInfo;
}
-export interface
StartTransactionRequest extends JsonType
{
+export interface
OCPP16StartTransactionRequest extends JsonObject
{
connectorId: number;
idTag: string;
meterStart: number;
connectorId: number;
idTag: string;
meterStart: number;
@@
-46,12
+46,12
@@
export interface StartTransactionRequest extends JsonType {
timestamp: string;
}
timestamp: string;
}
-export interface OCPP16StartTransactionResponse extends Json
Type
{
+export interface OCPP16StartTransactionResponse extends Json
Object
{
idTagInfo: IdTagInfo;
transactionId: number;
}
idTagInfo: IdTagInfo;
transactionId: number;
}
-export interface
StopTransactionRequest extends JsonType
{
+export interface
OCPP16StopTransactionRequest extends JsonObject
{
idTag?: string;
meterStop: number;
timestamp: string;
idTag?: string;
meterStop: number;
timestamp: string;
@@
-60,6
+60,6
@@
export interface StopTransactionRequest extends JsonType {
transactionData?: OCPP16MeterValue[];
}
transactionData?: OCPP16MeterValue[];
}
-export interface OCPP16StopTransactionResponse extends Json
Type
{
+export interface OCPP16StopTransactionResponse extends Json
Object
{
idTagInfo?: IdTagInfo;
}
idTagInfo?: IdTagInfo;
}