X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FTransaction.ts;h=1ce9d987e6b11431904c32137e820983f993e0c8;hb=d4c3e68a1a6321f2f43ef0521e121e827f3eb29b;hp=3dd499c992697fa53da594c9ab3fcb2dcc8d6c98;hpb=ef6fa3fb6f4872fc57bae634ac3edb8164a0bc79;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Transaction.ts b/src/types/ocpp/Transaction.ts index 3dd499c9..1ce9d987 100644 --- a/src/types/ocpp/Transaction.ts +++ b/src/types/ocpp/Transaction.ts @@ -1,29 +1,27 @@ import { OCPP16AuthorizationStatus, - OCPP16AuthorizeRequest, - OCPP16AuthorizeResponse, - OCPP16StartTransactionRequest, - OCPP16StartTransactionResponse, + type OCPP16AuthorizeRequest, + type OCPP16AuthorizeResponse, + type OCPP16StartTransactionRequest, + type OCPP16StartTransactionResponse, OCPP16StopTransactionReason, - OCPP16StopTransactionRequest, - OCPP16StopTransactionResponse, -} from './1.6/Transaction'; - -export type AuthorizationStatus = OCPP16AuthorizationStatus; + type OCPP16StopTransactionRequest, + type OCPP16StopTransactionResponse, +} from '../internal'; export const AuthorizationStatus = { ...OCPP16AuthorizationStatus, -}; +} as const; +export type AuthorizationStatus = OCPP16AuthorizationStatus; export type AuthorizeRequest = OCPP16AuthorizeRequest; export type AuthorizeResponse = OCPP16AuthorizeResponse; -export type StopTransactionReason = OCPP16StopTransactionReason; - export const StopTransactionReason = { ...OCPP16StopTransactionReason, -}; +} as const; +export type StopTransactionReason = OCPP16StopTransactionReason; export type StartTransactionRequest = OCPP16StartTransactionRequest;